Function at 0x413d27
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, 0x43385c
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x64], esi
mov dword [0x433858], eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
push dword [0x433858]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
push dword [0x433858]
xor edi, edi
mov dword [0x42d544], edi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
push 1
push 0x426d90
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_SetConsoleCtrlHandler]
push 0x43387c
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 0x433878
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.004106c0
call fcn.00413aae
mov dword [0x433834], eax
call fcn.00413b2c
mov ecx, esi
mov dword [0x433830], eax
call fcn.004141dd
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x413dd0
sub eax, edx
mov ecx, 0x2000
sar eax, 1
inc eax
cmp eax, ecx
ja 0x41e043
mov edx, ecx
lea ecx, [ebp - 0x60]
call fcn.00412a7c
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x41e062
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
push eax
mov edx, 0x2000
mov ecx, esi
call fcn.00411040
xor eax, eax
mov ecx, 0x443ab0
cmp byte [0x443cbc], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.00410c70
test eax, eax
js 0x41e07b
mov ecx, dword [0x443cb8]
test ecx, ecx
je 0x41e094
mov edx, dword [0x443cc0]
push edi
call fcn.004136cb
call fcn.0040cea9
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x413e62
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x64]
push esi
call fcn.0040d3f4
mov eax, dword [0x443cb8]
mov edx, 0x443ab0
mov ecx, eax
test eax, eax
je 0x41e09e
push 0x5c
pop esi
cmp word [ecx], si
mov esi, dword [ebp - 0x60]
je 0x41e0a5
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
push 0x433840
push eax
mov dword [0x433854], eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetCPInfo]
call fcn.00413f80
push 0x20c
push edi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov dword [0x433874], eax
test eax, eax
je 0x413eea
push 0x104
push eax
call dword [sym.imp.api_ms_win_core_console_l2_2_0.dll_GetConsoleTitleW]
test eax, eax
je 0x41e129
cmp dword [0x443ccc], edi
je 0x41e138
mov eax, dword [ebp - 0x64]
cmp dword [eax + 8], edi
je 0x41e193
push 0x402268
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
push 0x40225c
push eax
mov dword [0x42d0d0], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push 0x402248
push dword [0x42d0d0]
mov dword [0x43388c], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push 0x402230
push dword [0x42d0d0]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov dword [0x433888], eax
mov eax, dword [ebp - 0x64]
cmp dword [eax], edi
jne 0x413f5b
cmp dword [eax + 4], edi
jne 0x413f5b
cmp dword [eax + 8], edi
je 0x413f5e
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.00416fd0
mov esp, ebp
pop ebp
ret
push edi
push 0x400023df
call fcn.0040c5a2
pop ecx
pop ecx
push edi
call fcn.00414b60
test eax, eax
je 0x41e050
push 1
call dword [sym.imp.msvcrt.dll_exit]
push edi
push 0x2374
call fcn.0040c5a2
pop ecx
pop ecx
push edi
call fcn.00414b60
test eax, eax
je 0x41e06f
jmp 0x41e05a
push edi
push 0x2374
call fcn.0040c5a2
pop ecx
pop ecx
push edi
call fcn.00414b60
test eax, eax
je 0x41e088
jmp 0x41e05a
mov ecx, 0x443ab0
jmp 0x413e4c
mov ecx, edx
jmp 0x413e8f
mov ecx, eax
test eax, eax
jne 0x41e0ad
mov ecx, edx
push 0x5c
pop esi
cmp word [ecx + 2], si
mov esi, dword [ebp - 0x60]
jne 0x413e9e
cmp byte [0x448528], 0
jne 0x413e9e
test eax, eax
jne 0x41e0d0
mov eax, edx
push eax
push 1
push 0x400023c8
call fcn.0040c5a2
mov eax, dword [0x443cb8]
add esp, 0xc
test eax, eax
jne 0x41e0ee
mov eax, 0x443ab0
push dword [0x443cc0]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
test eax, eax
je 0x41e11a
mov ecx, dword [0x443cb8]
test ecx, ecx
jne 0x41e10e
mov ecx, 0x443ab0
xor edx, edx
call fcn.004133fc
jmp 0x413e9e
push edi
call fcn.00414b60
test eax, eax
je 0x41e11a
jmp 0x41e05a
mov eax, dword [0x433874]
xor ecx, ecx
mov word [eax], cx
jmp 0x413eea
xor ecx, ecx
inc ecx
call fcn.0041269c
test eax, eax
je 0x413ef6
cmp word [0x42d5a0], di
jne 0x41e183
lea eax, [ebp - 0x5c]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
push eax
call dword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x41e174
mov ax, word [ebp - 0x54]
mov word [0x42d5a0], ax
jmp 0x41e17a
mov ax, word [0x42d5a0]
test ax, ax
je 0x413ef6
mov ecx, dword [0x42d5a0]
call fcn.00427df1
jmp 0x413ef6
call fcn.00426456
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x60], eax
call fcn.0040443c
lea eax, [ebp - 0x44]
push eax
push 1
push 0x2350
call fcn.0040c108
push 0x401eb4
call fcn.004125d9
mov eax, dword [ebp - 0x60]
add esp, 0x10
test eax, eax
je 0x41e1e1
push eax
push 0x402520
call fcn.004125d9
push 0x401eb4
call fcn.004125d9
add esp, 0xc
jmp 0x41e1eb
push edi
push 8
call fcn.0040c5a2
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 0x413f02