Advertisement
NWPlayer123

CTRNF CmdArg

Jun 23rd, 2019
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 14.46 KB | None | 0 0
  1. __int64 __fastcall parseCommandLineArgs(int a1, const char **a2)
  2. {
  3.   unsigned int v2; // off
  4.   const char **v3; // x8
  5.   int v4; // w9
  6.   unsigned int v5; // off
  7.   int v6; // w0
  8.   _BYTE *v7; // x9
  9.   __int64 result; // x0
  10.   int v9; // w19
  11.   int v10; // w0
  12.   int v11; // w19
  13.   int v12; // w0
  14.   const char **v13; // [xsp+8h] [xbp-18h]
  15.   const char **v14; // [xsp+8h] [xbp-18h]
  16.  
  17.   v2 = __ldar((unsigned __int8 *)&unk_710499E930);
  18.   v3 = a2;
  19.   v4 = a1;
  20.   if ( !((unsigned __int64)&unk_710499E930 & 1) )
  21.   {
  22.     v13 = a2;
  23.     v9 = a1;
  24.     v10 = sub_710193FC50(&unk_710499E930);
  25.     v3 = v13;
  26.     v4 = v9;
  27.     if ( v10 )
  28.     {
  29.       qword_710499EB68 = (__int64)"-stm";
  30.       qword_710499EB80 = (__int64)"Map(s) being smoke tested";
  31.       qword_710499ED98 = (__int64)"-sth";
  32.       qword_710499EDA0 = (__int64)"--smoketestheroes";
  33.       qword_710499EDB0 = (__int64)"Hero(s) being smoke tested";
  34.       qword_710499EFC8 = (__int64)"-fst";
  35.       qword_710499EFD0 = (__int64)"--finalsmoketest";
  36.       qword_710499EFE0 = (__int64)"Final build smoke test (cruder version of full smoketest)";
  37.       qword_710499F1F8 = (__int64)"-gt";
  38.       qword_710499F210 = (__int64)"Execute Game Engine Tests";
  39.       qword_710499F428 = (__int64)"-cc";
  40.       qword_710499F430 = (__int64)"--codecoverage";
  41.       qword_710499F440 = (__int64)"Run code coverage.";
  42.       qword_710499F658 = (__int64)"-sttr";
  43.       qword_710499F660 = (__int64)"--smoketestthreadedrender";
  44.       qword_710499F670 = (__int64)"Allow threaded render during smoketest (breaks golden images)";
  45.       qword_710499F888 = (__int64)"-sp";
  46.       qword_710499F8A0 = (__int64)"If we want to save our SmokeTest progress";
  47.       qword_710499FAB8 = (__int64)"-dx";
  48.       qword_710499EB70 = (__int64)"--smoketestmap";
  49.       qword_710499FAC0 = (__int64)"--debugxml";
  50.       unk_710499E938 = "-st";
  51.       unk_710499E940 = "--smoketest";
  52.       qword_710499F200 = (__int64)"--gametest";
  53.       qword_710499FAD0 = (__int64)"Load the debug.xml file during smoketest.";
  54.       unk_710499E948 = "Testing";
  55.       unk_710499E950 = "Execute smoketest.";
  56.       dword_710499E958 = 2;
  57.       qword_710499E960 = 0LL;
  58.       byte_710499E968 = 0;
  59.       qword_710499EB78 = (__int64)"Testing";
  60.       dword_710499EB88 = 2;
  61.       qword_710499EB90 = 0LL;
  62.       byte_710499EB98 = 0;
  63.       qword_710499EDA8 = (__int64)"Testing";
  64.       dword_710499EDB8 = 2;
  65.       qword_710499EDC0 = 0LL;
  66.       byte_710499EDC8 = 0;
  67.       qword_710499EFD8 = (__int64)"Testing";
  68.       dword_710499EFE8 = 0;
  69.       qword_710499EFF0 = 0LL;
  70.       byte_710499EFF8 = 0;
  71.       qword_710499F208 = (__int64)"Testing";
  72.       dword_710499F218 = 0;
  73.       qword_710499F220 = 0LL;
  74.       byte_710499F228 = 0;
  75.       qword_710499F438 = (__int64)"Testing";
  76.       dword_710499F448 = 2;
  77.       qword_710499F450 = 0LL;
  78.       byte_710499F458 = 0;
  79.       qword_710499F668 = (__int64)"Testing";
  80.       dword_710499F678 = 0;
  81.       qword_710499F680 = 0LL;
  82.       byte_710499F688 = 0;
  83.       qword_710499F890 = (__int64)"--saveprogress";
  84.       qword_710499F898 = (__int64)"Testing";
  85.       dword_710499F8A8 = 0;
  86.       qword_710499F8B0 = 0LL;
  87.       byte_710499F8B8 = 0;
  88.       qword_710499FAC8 = (__int64)"Testing";
  89.       dword_710499FAD8 = 0;
  90.       qword_710499FAE0 = 0LL;
  91.       *((_BYTE *)&unk_710499E938 + 4528) = 0;
  92.       qword_710499FCE8 = (__int64)"-frh";
  93.       qword_710499FCF0 = (__int64)"--forcereporthandler";
  94.       qword_710499FD00 = (__int64)"Force the report handler callback.";
  95.       qword_710499FCF8 = (__int64)"Testing";
  96.       dword_710499FD08 = 0;
  97.       qword_710499FD10 = 0LL;
  98.       *((_BYTE *)&unk_710499E938 + 5088) = 0;
  99.       qword_710499FF18 = (__int64)"-mm";
  100.       qword_710499FF20 = (__int64)"--memorymonitor";
  101.       qword_710499FF30 = (__int64)"Enable Memory Monitor";
  102.       qword_710499FF28 = (__int64)"Testing";
  103.       dword_710499FF38 = 0;
  104.       qword_710499FF40 = 0LL;
  105.       *((_BYTE *)&unk_710499E938 + 5648) = 0;
  106.       qword_71049A0148 = (__int64)"-sr";
  107.       qword_71049A0150 = (__int64)"--setregistry";
  108.       qword_71049A0160 = (__int64)"Set a registry key";
  109.       qword_71049A0158 = (__int64)"Testing";
  110.       dword_71049A0168 = 2;
  111.       qword_71049A0170 = 0LL;
  112.       *((_BYTE *)&unk_710499E938 + 6208) = 0;
  113.       qword_71049A0378 = (__int64)"-wfdh";
  114.       qword_71049A0380 = (__int64)"--waitForDurangoHost";
  115.       qword_71049A0390 = (__int64)"Spam CTRL-Z at the end of smoketest so that DurangoHost.py can quit gracefully.";
  116.       qword_71049A0388 = (__int64)"Testing";
  117.       dword_71049A0398 = 0;
  118.       qword_71049A03A0 = 0LL;
  119.       *((_BYTE *)&unk_710499E938 + 6768) = 0;
  120.       qword_71049A05A8 = (__int64)"-om";
  121.       qword_71049A05B0 = (__int64)"--overridemap";
  122.       qword_71049A05C0 = (__int64)"Map to use in place of debug map from configuration file.";
  123.       qword_71049A05B8 = (__int64)"Testing";
  124.       dword_71049A05C8 = 2;
  125.       qword_71049A05D0 = 0LL;
  126.       *((_BYTE *)&unk_710499E938 + 7328) = 0;
  127.       qword_71049A07E8 = (__int64)"Testing";
  128.       qword_71049A07D8 = (__int64)"-th";
  129.       qword_71049A07F0 = (__int64)"Set Telemetry host ip during smoke tests (overrides debug settings)";
  130.       qword_71049A07E0 = (__int64)"--telemetryhost";
  131.       dword_71049A07F8 = 2;
  132.       qword_71049A0800 = 0LL;
  133.       *((_BYTE *)&unk_710499E938 + 7888) = 0;
  134.       qword_71049A0A08 = (__int64)"-b";
  135.       qword_71049A0A10 = (__int64)"--build";
  136.       qword_71049A0A20 = (__int64)"Attempt to start and connect to a build server instance just for this process.";
  137.       qword_71049A0A18 = (__int64)"Build";
  138.       dword_71049A0A28 = 0;
  139.       qword_71049A0A30 = 0LL;
  140.       *((_BYTE *)&unk_710499E938 + 8448) = 0;
  141.       qword_71049A0C38 = (__int64)"-bs";
  142.       qword_71049A0C40 = (__int64)"--build-server";
  143.       qword_71049A0C50 = (__int64)"Address and port of a build server (localhost:1000)";
  144.       qword_71049A0C48 = (__int64)"Build";
  145.       dword_71049A0C58 = 2;
  146.       qword_71049A0C60 = 0LL;
  147.       *((_BYTE *)&unk_710499E938 + 9008) = 0;
  148.       qword_71049A0E68 = (__int64)"-ba";
  149.       qword_71049A0E70 = (__int64)"--build-arguments";
  150.       qword_71049A0E80 = (__int64)"Command-line arguments to pass to the build server";
  151.       qword_71049A0E78 = (__int64)"Build";
  152.       dword_71049A0E88 = 2;
  153.       qword_71049A0E90 = 0LL;
  154.       *((_BYTE *)&unk_710499E938 + 9568) = 0;
  155.       qword_71049A1098 = (__int64)"-bfd";
  156.       qword_71049A10A0 = (__int64)"--build-final-data";
  157.       qword_71049A10B0 = (__int64)"Request final data from the build server.";
  158.       qword_71049A10A8 = (__int64)"Build";
  159.       dword_71049A10B8 = 0;
  160.       qword_71049A10C0 = 0LL;
  161.       *((_BYTE *)&unk_710499E938 + 10128) = 0;
  162.       qword_71049A12C8 = (__int64)"-ps4dm";
  163.       qword_71049A12D0 = (__int64)"--ps4developmentmode";
  164.       qword_71049A12E0 = (__int64)"PS4 Development Mode";
  165.       qword_71049A12D8 = (__int64)"Build";
  166.       dword_71049A12E8 = 0;
  167.       qword_71049A12F0 = 0LL;
  168.       *((_BYTE *)&unk_710499E938 + 10688) = 0;
  169.       qword_71049A14F8 = (__int64)"-mmtid";
  170.       qword_71049A1500 = (__int64)"--matchmaking-title-id";
  171.       qword_71049A1510 = (__int64)"The title id to use for online matchmaking";
  172.       qword_71049A1508 = (__int64)"Online";
  173.       dword_71049A1518 = 2;
  174.       qword_71049A1520 = 0LL;
  175.       *((_BYTE *)&unk_710499E938 + 11248) = 0;
  176.       qword_71049A1728 = (__int64)"-pc";
  177.       qword_71049A1730 = (__int64)"--primarycontroller";
  178.       qword_71049A1740 = (__int64)"The primary controller to use [1,2,3,4] when launching into a map.";
  179.       qword_71049A1738 = (__int64)"Misc";
  180.       dword_71049A1748 = 2;
  181.       qword_71049A1750 = 0LL;
  182.       *((_BYTE *)&unk_710499E938 + 11808) = 0;
  183.       qword_71049A1958 = (__int64)"-wd";
  184.       qword_71049A1960 = (__int64)"--windowdatafile";
  185.       qword_71049A1970 = (__int64)"The window settings datafile to use. Defaults to WindowData.igx.";
  186.       qword_71049A1968 = (__int64)"Misc";
  187.       dword_71049A1978 = 2;
  188.       qword_71049A1980 = 0LL;
  189.       *((_BYTE *)&unk_710499E938 + 12368) = 0;
  190.       qword_71049A1B88 = (__int64)"-h";
  191.       qword_71049A1B90 = (__int64)"--host";
  192.       qword_71049A1BA0 = (__int64)"Name of host computer.";
  193.       qword_71049A1B98 = (__int64)"Misc";
  194.       dword_71049A1BA8 = 2;
  195.       qword_71049A1BB0 = 0LL;
  196.       *((_BYTE *)&unk_710499E938 + 12928) = 0;
  197.       qword_71049A1DB8 = (__int64)"-dn";
  198.       qword_71049A1DC0 = (__int64)"--dotnet";
  199.       qword_71049A1DD0 = (__int64)"Port to use for DotNet debugging (7265)";
  200.       qword_71049A1DC8 = (__int64)"Misc";
  201.       dword_71049A1DD8 = 2;
  202.       qword_71049A1DE0 = 0LL;
  203.       *((_BYTE *)&unk_710499E938 + 13488) = 0;
  204.       qword_71049A1FE8 = (__int64)"-wfdd";
  205.       qword_71049A1FF0 = (__int64)"--waitForDotNetDebugger";
  206.       qword_71049A2000 = (__int64)"Wait for the DotNet debugger to fully connect before starting a level.";
  207.       qword_71049A1FF8 = (__int64)"Misc";
  208.       dword_71049A2008 = 0;
  209.       qword_71049A2010 = 0LL;
  210.       *((_BYTE *)&unk_710499E938 + 14048) = 0;
  211.       qword_71049A2218 = (__int64)"-wfvd";
  212.       qword_71049A2220 = (__int64)"--waitForVscDebugger";
  213.       qword_71049A2230 = (__int64)"Wait for the Visual Script debugger to fully connect before starting a level.";
  214.       qword_71049A2228 = (__int64)"Misc";
  215.       dword_71049A2238 = 0;
  216.       qword_71049A2240 = 0LL;
  217.       *((_BYTE *)&unk_710499E938 + 14608) = 0;
  218.       qword_71049A2448 = (__int64)"-gc";
  219.       qword_71049A2450 = (__int64)"--gamecomm";
  220.       qword_71049A2460 = (__int64)"Port to use for Game Communication (30001)";
  221.       qword_71049A2458 = (__int64)"Misc";
  222.       dword_71049A2468 = 2;
  223.       qword_71049A2470 = 0LL;
  224.       *((_BYTE *)&unk_710499E938 + 15168) = 0;
  225.       qword_71049A2678 = (__int64)"-hm";
  226.       qword_71049A2680 = (__int64)"--headlessMode";
  227.       qword_71049A2690 = (__int64)"Run in headless mode.";
  228.       qword_71049A2688 = (__int64)"Misc";
  229.       dword_71049A2698 = 0;
  230.       qword_71049A26A0 = 0LL;
  231.       *((_BYTE *)&unk_710499E938 + 15728) = 0;
  232.       qword_71049A28A8 = (__int64)"-gm";
  233.       qword_71049A28B0 = (__int64)"--gameMode";
  234.       qword_71049A28C0 = (__int64)"Set the game mode.";
  235.       qword_71049A28B8 = (__int64)"Misc";
  236.       dword_71049A28C8 = 2;
  237.       qword_71049A28D0 = 0LL;
  238.       *((_BYTE *)&unk_710499E938 + 16288) = 0;
  239.       qword_71049A2AD8 = (__int64)"-rm";
  240.       qword_71049A2AE0 = (__int64)"--raceMode";
  241.       qword_71049A2AF0 = (__int64)"Set the race mode.";
  242.       qword_71049A2AE8 = (__int64)"Misc";
  243.       *((_DWORD *)&unk_710499E938 + 4208) = 2;
  244.       qword_71049A2B00 = 0LL;
  245.       *((_BYTE *)&unk_710499E938 + 16848) = 0;
  246.       qword_71049A2D08 = (__int64)"-warp";
  247.       qword_71049A2D10 = (__int64)"--dx11warp";
  248.       qword_71049A2D18 = (__int64)"Misc";
  249.       qword_71049A2D20 = (__int64)"Use the DX11 Warp software renderer on Windows platforms.";
  250.       *((_DWORD *)&unk_710499E938 + 4348) = 0;
  251.       qword_71049A2D30 = 0LL;
  252.       *((_BYTE *)&unk_710499E938 + 17408) = 0;
  253.       qword_71049A2F40 = (__int64)"--cutscene-dump-frames";
  254.       qword_71049A2F38 = (__int64)"-cdf";
  255.       qword_71049A2F50 = (__int64)"Dump frames when playing cutscenes.";
  256.       qword_71049A2F48 = (__int64)"Cutscene";
  257.       *((_DWORD *)&unk_710499E938 + 4488) = 0;
  258.       qword_71049A2F60 = 0LL;
  259.       *((_BYTE *)&unk_710499E938 + 17968) = 0;
  260.       qword_71049A3168 = (__int64)"-ca";
  261.       qword_71049A3170 = (__int64)"--cutscene-animation";
  262.       qword_71049A3180 = (__int64)"Play a specific animation in a cutscene after level load.";
  263.       qword_71049A3178 = (__int64)"Cutscene";
  264.       *((_DWORD *)&unk_710499E938 + 4628) = 2;
  265.       qword_71049A3190 = 0LL;
  266.       *((_BYTE *)&unk_710499E938 + 18528) = 0;
  267.       qword_71049A3398 = (__int64)"-cn";
  268.       qword_71049A33A0 = (__int64)"--cutscene";
  269.       qword_71049A33A8 = (__int64)"Cutscene";
  270.       qword_71049A33B0 = (__int64)"Play cutscene immediately after level load.";
  271.       *((_DWORD *)&unk_710499E938 + 4768) = 2;
  272.       qword_71049A33C0 = 0LL;
  273.       *((_BYTE *)&unk_710499E938 + 19088) = 0;
  274.       qword_71049A35C8 = (__int64)"-hdp";
  275.       qword_71049A35D0 = (__int64)"--havok-debugger-port";
  276.       qword_71049A35D8 = (__int64)"Havok";
  277.       qword_71049A35E0 = (__int64)"Which port to use for the havok debugger.";
  278.       *((_DWORD *)&unk_710499E938 + 4908) = 2;
  279.       qword_71049A35F0 = 0LL;
  280.       *((_BYTE *)&unk_710499E938 + 19648) = 0;
  281.       qword_71049A37F8 = (__int64)"-join";
  282.       qword_71049A3800 = (__int64)"--join";
  283.       qword_71049A3808 = (__int64)"Online";
  284.       qword_71049A3810 = (__int64)"Gamertag to auto-join.";
  285.       *((_DWORD *)&unk_710499E938 + 5048) = 2;
  286.       qword_71049A3820 = 0LL;
  287.       *((_BYTE *)&unk_710499E938 + 20208) = 0;
  288.       qword_71049A3A28 = (__int64)"-hmd";
  289.       qword_71049A3A30 = (__int64)"--hostMountDirectory";
  290.       qword_71049A3A38 = (__int64)"NX";
  291.       qword_71049A3A40 = (__int64)"Specify the directory to mount as host device on nx.";
  292.       *((_DWORD *)&unk_710499E938 + 5188) = 2;
  293.       qword_71049A3A50 = 0LL;
  294.       *((_BYTE *)&unk_710499E938 + 20768) = 0;
  295.       qword_71049A3C58 = (__int64)"-loose";
  296.       qword_71049A3C60 = (__int64)"--loose";
  297.       qword_71049A3C70 = (__int64)"Run with loose files.";
  298.       qword_71049A3C68 = (__int64)"Build";
  299.       *((_DWORD *)&unk_710499E938 + 5328) = 0;
  300.       qword_71049A3C80 = 0LL;
  301.       *((_BYTE *)&unk_710499E938 + 21328) = 0;
  302.       qword_71049A3E88 = (__int64)"-ttrsim";
  303.       qword_71049A3E90 = (__int64)"--ttrSimulation";
  304.       qword_71049A3E98 = (__int64)"Simulations";
  305.       qword_71049A3EA0 = (__int64)"Run ai TTR simulation.";
  306.       *((_DWORD *)&unk_710499E938 + 5468) = 0;
  307.       qword_71049A3EB0 = 0LL;
  308.       *((_BYTE *)&unk_710499E938 + 21888) = 0;
  309.       sub_710193FC60(&unk_710499E930);
  310.       v3 = v13;
  311.       v4 = v9;
  312.     }
  313.   }
  314.   v5 = __ldar((unsigned __int8 *)&unk_71049A40B8);
  315.   if ( !((unsigned __int64)&unk_71049A40B8 & 1) )
  316.   {
  317.     v14 = v3;
  318.     v11 = v4;
  319.     v12 = sub_710193FC50(&unk_71049A40B8);
  320.     v3 = v14;
  321.     v4 = v11;
  322.     if ( v12 )
  323.     {
  324.       unk_710499E0E0 = "game";
  325.       unk_710499E0E8 = "Game Engine";
  326.       qword_710499E100 = (__int64)&unk_710499E938;
  327.       dword_710499E108 = 40;
  328.       dword_710499E910 = 0;
  329.       unk_710499E0F0 = off_710493B0B8[0];
  330.       unk_710499E0F8 = off_710493B0B8[0];
  331.       qword_710499E920 = 0LL;
  332.       qword_710499E918 = 0LL;
  333.       sub_710193FC60(&unk_71049A40B8);
  334.       v3 = v14;
  335.       v4 = v11;
  336.     }
  337.   }
  338.   v6 = Core::igCommandLine::parse((Core::igCommandLine *)&unk_710499E0E0, v4, v3, 1);
  339.   v7 = (_BYTE *)off_710493C7A8;
  340.   *off_710493C710 = &unk_710499E0E0;
  341.   *v7 = 1;
  342.   if ( v6 )
  343.     result = 0xFFFFFFFFLL;
  344.   else
  345.     result = 0LL;
  346.   return result;
  347. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement