Function at 0x4087ca
Capabilities:
Accept command line arguments
Get common file path

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, 0x43ba04
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x64], esi
mov dword [0x4315a4], eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
push dword [0x4315a4]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
push dword [0x4315a4]
xor edi, edi
mov dword [0x43159c], edi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
push 1
push 0x427420
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_SetConsoleCtrlHandler]
push 0x43ba20
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 0x43ba1c
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.0040e310
call fcn.0040a9d4
mov dword [0x431594], eax
call fcn.00408b96
mov ecx, esi
mov dword [0x431590], eax
call fcn.00408273
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 0x408873
sub eax, edx
mov ecx, 0x2000
sar eax, 1
inc eax
cmp eax, ecx
ja 0x408b37
mov edx, ecx
lea ecx, [ebp - 0x60]
call fcn.00411a05
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x408b2f
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
push eax
mov edx, 0x2000
mov ecx, esi
call fcn.0040f3a0
xor eax, eax
mov ecx, 0x447bf0
cmp byte [0x447dfc], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040e3f0
test eax, eax
js 0x408b2f
mov ecx, dword [0x447df8]
test ecx, ecx
jne 0x4088f0
mov ecx, 0x447bf0
mov edx, dword [0x447e00]
push edi
call fcn.00408e9e
call fcn.004100e9
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x408906
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x64]
push esi
push 4
pop edx
call fcn.0040a24c
mov eax, dword [0x447df8]
mov edx, 0x447bf0
mov ecx, eax
test eax, eax
jne 0x408934
mov ecx, edx
push 0x5c
pop esi
cmp word [ecx], si
mov esi, dword [ebp - 0x60]
jne 0x4089ab
mov ecx, eax
test eax, eax
jne 0x408947
mov ecx, edx
push 0x5c
pop esi
cmp word [ecx + 2], si
mov esi, dword [ebp - 0x60]
jne 0x4089ab
cmp byte [0x448051], 0
jne 0x4089ab
test eax, eax
jne 0x408962
mov eax, edx
push eax
push 1
push 0x400023c8
call fcn.004078e4
mov eax, dword [0x447df8]
add esp, 0xc
test eax, eax
jne 0x408980
mov eax, 0x447bf0
push dword [0x447e00]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
test eax, eax
je 0x408b44
mov ecx, dword [0x447df8]
test ecx, ecx
jne 0x4089a4
mov ecx, 0x447bf0
xor edx, edx
call fcn.00408bc7
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
push 0x43b9f0
push eax
mov dword [0x4315a0], eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetCPInfo]
call fcn.00408572
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 [0x4315a8], eax
test eax, eax
je 0x4089fd
push 0x104
push eax
call dword [sym.imp.api_ms_win_core_console_l2_2_0.dll_GetConsoleTitleW]
test eax, eax
jne 0x4089fd
mov eax, dword [0x4315a8]
xor ecx, ecx
mov word [eax], cx
cmp dword [0x435758], edi
jne 0x408a51
xor ecx, ecx
inc ecx
call fcn.00409a11
test eax, eax
je 0x408a51
mov cx, word [0x435764]
test cx, cx
jne 0x408a4c
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 0x408a40
mov ax, word [ebp - 0x54]
mov word [0x435764], ax
jmp 0x408a51
mov cx, word [0x435764]
test cx, cx
je 0x408a51
call fcn.00428456
mov eax, dword [ebp - 0x64]
cmp dword [eax + 8], edi
jne 0x408abb
call fcn.00427096
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x60], eax
call fcn.00404d08
lea eax, [ebp - 0x44]
push eax
push 1
push 0x2350
call fcn.004063bd
push 0x401f8c
call fcn.00409950
mov eax, dword [ebp - 0x60]
add esp, 0x10
test eax, eax
je 0x408aa7
push eax
push 0x401f00
call fcn.00409950
push 0x401f8c
call fcn.00409950
add esp, 0xc
jmp 0x408ab1
push edi
push 8
call fcn.004078e4
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]
push 0x402704
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
push 0x403524
push eax
mov dword [0x42d0c8], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push 0x403530
push dword [0x42d0c8]
mov dword [0x4315b8], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push 0x403544
push dword [0x42d0c8]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov dword [0x4315b4], eax
mov eax, dword [ebp - 0x64]
cmp dword [eax], edi
jne 0x408b14
cmp dword [eax + 4], edi
jne 0x408b14
cmp dword [eax + 8], edi
je 0x408b17
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.00416b50
leave
ret
push edi
push 0x2374
jmp 0x408b3d
push edi
push 0x400023df
call fcn.004078e4
pop ecx
pop ecx
xor ecx, ecx
inc ecx
call fcn.00417d28
int3