Function at 0x401630
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x409008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x158], 0
push str.CC_DEBUG
call fcn.004015a0
add esp, 4
push eax
lea ecx, [ebp - 0x54]
call fcn.004025d0
mov dword [ebp - 0x150], 0
lea ecx, [ebp - 0x54]
call fcn.004024e0
movzx eax, al
test eax, eax
jne 0x4016b3
or dword [ebp - 0x158], 1
push 0x40634c
lea ecx, [ebp - 0x190]
call fcn.004025d0
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.00403600
add esp, 8
movzx edx, al
test edx, edx
je 0x4016b3
mov dword [ebp - 0x164], 1
jmp 0x4016bd
mov dword [ebp - 0x164], 0
mov al, byte [ebp - 0x164]
mov byte [ebp - 0x151], al
mov ecx, dword [ebp - 0x158]
and ecx, 1
je 0x4016e6
and dword [ebp - 0x158], 0xfffffffe
lea ecx, [ebp - 0x190]
call fcn.00402560
movzx edx, byte [ebp - 0x151]
test edx, edx
je 0x401750
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 0x406350
push 0x406354
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
add esp, 0x10
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 0x40635c
push str.CONOUT_
lea ecx, [ebp - 0x150]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
add esp, 0x10
push str._CCAnchor.exe_start__r_n
call fcn.004010d0
add esp, 4
lea edx, [ebp - 0x24]
push edx
call fcn.00401500
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.00402510
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push str.Qt5plugins_
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.004034b0
add esp, 0xc
push eax
push str.QT_PLUGIN_PATH
lea edx, [ebp - 0x9c]
push edx
call fcn.004036b0
add esp, 0xc
lea ecx, [ebp - 0x1a8]
call fcn.00402560
lea ecx, [ebp - 0x9c]
call fcn.00402510
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv]
add esp, 4
test eax, eax
je 0x4017c9
push str.QT_PLUGIN_PATH_env_error._r_n
call fcn.004010d0
add esp, 4
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x160], eax
push 0xb0
lea ecx, [ebp - 0x14c]
call fcn.00401b10
push 1
lea ecx, [ebp - 0x14c]
call fcn.00402380
push str.___m_apps.main_live_client_
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax + edx]
push ecx
push 0x406428
lea edx, [ebp - 0x13c]
push edx
call fcn.004036f0
add esp, 8
push eax
call fcn.004036f0
add esp, 8
push eax
call fcn.004036f0
add esp, 8
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x14c]
call fcn.004022e0
cmp dword [ebp - 8], 1
jle 0x401863
push 0x40642c
lea ecx, [ebp - 0x3c]
call fcn.00402530
cmp dword [ebp - 0x160], 0
je 0x4018d8
mov ecx, dword [ebp - 0x160]
cmp dword [ecx], 0
je 0x4018d8
cmp dword [ebp - 8], 1
jl 0x4018d8
mov dword [ebp - 0x15c], 1
jmp 0x401898
mov edx, dword [ebp - 0x15c]
add edx, 1
mov dword [ebp - 0x15c], edx
mov eax, dword [ebp - 0x15c]
cmp eax, dword [ebp - 8]
jge 0x4018d8
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 0x160]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402530
mov ecx, dword [ebp - 8]
sub ecx, 1
cmp dword [ebp - 0x15c], ecx
je 0x4018d6
push 0x406430
lea ecx, [ebp - 0x3c]
call fcn.00402530
jmp 0x401889
mov edx, dword [ebp - 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402510
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x170], eax
push 0x406434
lea ecx, [ebp - 0x220]
call fcn.004025d0
push eax
lea ecx, [ebp - 0x24]
push ecx
push str.apps_live_client.res_
lea ecx, [ebp - 0x208]
call fcn.004025d0
push eax
lea edx, [ebp - 0x24]
push edx
push str.PYTHONPATH
lea eax, [ebp - 0x1f0]
push eax
call fcn.00403620
add esp, 0xc
push eax
lea ecx, [ebp - 0x1d8]
push ecx
call fcn.004035c0
add esp, 0xc
push eax
lea edx, [ebp - 0x1c0]
push edx
call fcn.00403580
add esp, 0xc
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004035c0
add esp, 0xc
lea ecx, [ebp - 0x1c0]
call fcn.00402560
lea ecx, [ebp - 0x1d8]
call fcn.00402560
lea ecx, [ebp - 0x1f0]
call fcn.00402560
lea ecx, [ebp - 0x208]
call fcn.00402560
lea ecx, [ebp - 0x220]
call fcn.00402560
lea ecx, [ebp - 0x84]
call fcn.00402510
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv]
add esp, 4
push str.python37.dll
lea ecx, [ebp - 0x238]
call fcn.004025d0
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x6c]
push edx
call fcn.00403540
add esp, 0xc
lea ecx, [ebp - 0x238]
call fcn.00402560
mov dword [ebp - 0x174], 0
lea ecx, [ebp - 0x6c]
call fcn.00402510
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], 0
je 0x401a53
push str.Py_MainEx
mov eax, dword [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x401a53
push 0x409018
mov ecx, dword [ebp - 0x170]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [ebp - 0x16c]
add esp, 0xc
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x150], 0
je 0x401a79
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [ebp - 0x178], 0
lea ecx, [ebp - 0x6c]
call fcn.00402560
lea ecx, [ebp - 0x84]
call fcn.00402560
lea ecx, [ebp - 0x3c]
call fcn.00402560
lea ecx, [ebp - 0x14c]
call fcn.00401ae0
lea ecx, [ebp - 0x9c]
call fcn.00402560
lea ecx, [ebp - 0x24]
call fcn.00402560
lea ecx, [ebp - 0x54]
call fcn.00402560
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b24
mov esp, ebp
pop ebp
ret 0x10