Function at 0x4133df
Capabilities:
Accept command line arguments
Get common file path
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, 0x43386c
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x64], esi
mov dword [0x433868], eax
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_InitializeCriticalSection]
push dword [0x433868]
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
push dword [0x433868]
xor edi, edi
mov dword [0x42d54c], edi
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
push 1
push 0x427260
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_SetConsoleCtrlHandler]
push 0x43388c
push 1
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleMode]
push 0x433888
push edi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleMode]
call fcn.0040fa30
call fcn.00413008
mov dword [0x433844], eax
call fcn.0041308c
mov ecx, esi
mov dword [0x433840], eax
call fcn.0041388d
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCommandLineW]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x413488
sub eax, edx
mov ecx, 0x2000
sar eax, 1
inc eax
cmp eax, ecx
ja 0x41f314
mov edx, ecx
lea ecx, [ebp - 0x60]
call fcn.00411c4c
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x41f333
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCommandLineW]
push eax
mov edx, 0x2000
mov ecx, esi
call fcn.00410820
xor eax, eax
mov ecx, 0x443ac0
cmp byte [0x443ccc], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040fba0
test eax, eax
js 0x41f34c
mov ecx, dword [0x443cc8]
test ecx, ecx
je 0x41f365
mov edx, dword [0x443cd0]
push edi
call fcn.00412c1e
call fcn.0040c10f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x41351a
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x64]
push esi
call fcn.00411223
mov eax, dword [0x443cc8]
mov edx, 0x443ac0
mov ecx, eax
test eax, eax
je 0x41f36f
push 0x5c
pop esi
cmp word [ecx], si
mov esi, dword [ebp - 0x60]
je 0x41f376
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
push 0x433850
push eax
mov dword [0x433864], eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetCPInfo]
call fcn.00413630
push 0x20c
push edi
call dword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapAlloc]
mov dword [0x433884], eax
test eax, eax
je 0x4135a2
push 0x104
push eax
call dword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleTitleW]
test eax, eax
je 0x41f3fa
cmp dword [0x443cdc], edi
je 0x41f409
mov eax, dword [ebp - 0x64]
cmp dword [eax + 8], edi
je 0x41f464
push 0x4023f4
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
push 0x4023e8
push eax
mov dword [0x42d0d0], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push 0x4023d4
push dword [0x42d0d0]
mov dword [0x43389c], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push 0x4023bc
push dword [0x42d0d0]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov dword [0x433898], eax
mov eax, dword [ebp - 0x64]
cmp dword [eax], edi
jne 0x413613
cmp dword [eax + 4], edi
jne 0x413613
cmp dword [eax + 8], edi
je 0x413616
xor edi, edi
inc edi
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00416ce0
mov esp, ebp
pop ebp
ret
push edi
push 0x400023df
call fcn.00414802
pop ecx
pop ecx
push edi
call fcn.00413eb0
test eax, eax
je 0x41f321
push 1
call dword [sym.imp.msvcrt.dll_exit]
push edi
push 0x2374
call fcn.00414802
pop ecx
pop ecx
push edi
call fcn.00413eb0
test eax, eax
je 0x41f340
jmp 0x41f32b
push edi
push 0x2374
call fcn.00414802
pop ecx
pop ecx
push edi
call fcn.00413eb0
test eax, eax
je 0x41f359
jmp 0x41f32b
mov ecx, 0x443ac0
jmp 0x413504
mov ecx, edx
jmp 0x413547
mov ecx, eax
test eax, eax
jne 0x41f37e
mov ecx, edx
push 0x5c
pop esi
cmp word [ecx + 2], si
mov esi, dword [ebp - 0x60]
jne 0x413556
cmp byte [0x448528], 0
jne 0x413556
test eax, eax
jne 0x41f3a1
mov eax, edx
push eax
push 1
push 0x400023c8
call fcn.00414802
mov eax, dword [0x443cc8]
add esp, 0xc
test eax, eax
jne 0x41f3bf
mov eax, 0x443ac0
push dword [0x443cd0]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetWindowsDirectoryW]
test eax, eax
je 0x41f3eb
mov ecx, dword [0x443cc8]
test ecx, ecx
jne 0x41f3df
mov ecx, 0x443ac0
xor edx, edx
call fcn.00412904
jmp 0x413556
push edi
call fcn.00413eb0
test eax, eax
je 0x41f3eb
jmp 0x41f32b
mov eax, dword [0x433884]
xor ecx, ecx
mov word [eax], cx
jmp 0x4135a2
xor ecx, ecx
inc ecx
call fcn.0040c43f
test eax, eax
je 0x4135ae
cmp word [0x42d5a8], di
jne 0x41f454
lea eax, [ebp - 0x5c]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetStdHandle]
push eax
call dword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x41f445
mov ax, word [ebp - 0x54]
mov word [0x42d5a8], ax
jmp 0x41f44b
mov ax, word [0x42d5a8]
test ax, ax
je 0x4135ae
mov ecx, dword [0x42d5a8]
call fcn.00427bef
jmp 0x4135ae
call fcn.00426926
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x60], eax
call fcn.00406874
lea eax, [ebp - 0x44]
push eax
push 1
push 0x2350
call fcn.00415469
push 0x40204c
call fcn.0040c37c
mov eax, dword [ebp - 0x60]
add esp, 0x10
test eax, eax
je 0x41f4b2
push eax
push 0x402044
call fcn.0040c37c
push 0x40204c
call fcn.0040c37c
add esp, 0xc
jmp 0x41f4bc
push edi
push 8
call fcn.00414802
pop ecx
pop ecx
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_GlobalFree]
jmp 0x4135ba