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 [0x42e0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, 0x43ca04
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x64], esi
mov dword [0x4325a4], eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
push dword [0x4325a4]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
push dword [0x4325a4]
xor edi, edi
mov dword [0x43259c], edi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
push 1
push 0x427460
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_SetConsoleCtrlHandler]
push 0x43ca20
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 0x43ca1c
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 [0x432594], eax
call fcn.00408b96
mov ecx, esi
mov dword [0x432590], 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, 0x448bf0
cmp byte [0x448dfc], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040e3f0
test eax, eax
js 0x408b2f
mov ecx, dword [0x448df8]
test ecx, ecx
jne 0x4088f0
mov ecx, 0x448bf0
mov edx, dword [0x448e00]
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 [0x448df8]
mov edx, 0x448bf0
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 [0x449051], 0
jne 0x4089ab
test eax, eax
jne 0x408962
mov eax, edx
push eax
push 1
push 0x400023c8
call fcn.004078e4
mov eax, dword [0x448df8]
add esp, 0xc
test eax, eax
jne 0x408980
mov eax, 0x448bf0
push dword [0x448e00]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
test eax, eax
je 0x408b44
mov ecx, dword [0x448df8]
test ecx, ecx
jne 0x4089a4
mov ecx, 0x448bf0
xor edx, edx
call fcn.00408bc7
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
push 0x43c9f0
push eax
mov dword [0x4325a0], 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 [0x4325a8], 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 [0x4325a8]
xor ecx, ecx
mov word [eax], cx
cmp dword [0x436758], edi
jne 0x408a51
xor ecx, ecx
inc ecx
call fcn.00409a11
test eax, eax
je 0x408a51
mov cx, word [0x436764]
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 [0x436764], ax
jmp 0x408a51
mov cx, word [0x436764]
test cx, cx
je 0x408a51
call fcn.00428496
mov eax, dword [ebp - 0x64]
cmp dword [eax + 8], edi
jne 0x408abb
call fcn.004270d6
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 [0x42e0c8], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push 0x403530
push dword [0x42e0c8]
mov dword [0x4325b8], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push 0x403544
push dword [0x42e0c8]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov dword [0x4325b4], 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.00416b30
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.00417d18
int3