Function at 0x407eca
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x43fa74
mov ebx, ecx
push edi
push eax
mov dword [ebp - 0x64], ebx
mov dword [0x43561c], eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
push dword [0x43561c]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
push dword [0x43561c]
xor edi, edi
mov dword [0x435614], edi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
push 1
push 0x42a9d0
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_SetConsoleCtrlHandler]
push 0x43fa90
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 0x43fa8c
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.0040d220
call fcn.004095ad
mov dword [0x43560c], eax
call fcn.004080b1
mov ecx, ebx
mov dword [0x435608], eax
call fcn.004077c8
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 0x407ddb
sub eax, edx
mov ecx, 0x2000
sar eax, 1
inc eax
cmp eax, ecx
ja 0x408095
mov edx, ecx
lea ecx, [ebp - 0x60]
call fcn.004117c1
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x40808d
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
push eax
mov edx, 0x2000
mov ecx, esi
call fcn.0040dfe0
xor eax, eax
mov ecx, 0x44bc58
cmp byte [0x44be64], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040d300
test eax, eax
js 0x40808d
mov ecx, dword [0x44be60]
test ecx, ecx
jne 0x407e58
mov ecx, 0x44bc58
mov edx, dword [0x44be68]
push edi
call fcn.004083c5
call fcn.0040f0ff
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x407e6e
sub ecx, edx
sar ecx, 1
push ecx
push esi
push 4
pop edx
mov ecx, ebx
call fcn.0040f28e
mov eax, dword [0x44be60]
mov edx, 0x44bc58
mov ecx, eax
test eax, eax
jne 0x407e9b
mov ecx, edx
push 0x5c
pop esi
cmp word [ecx], si
mov esi, dword [ebp - 0x60]
jne 0x407f12
mov ecx, eax
test eax, eax
jne 0x407eae
mov ecx, edx
push 0x5c
pop ebx
cmp word [ecx + 2], bx
mov ebx, dword [ebp - 0x64]
jne 0x407f12
cmp byte [0x44c129], 0
jne 0x407f12
test eax, eax
jne 0x407ec9
mov eax, edx
push eax
push 1
push 0x400023c8
call fcn.004128ff
mov eax, dword [0x44be60]
add esp, 0xc
test eax, eax
jne 0x407ee7
mov eax, 0x44bc58
push dword [0x44be68]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4080a2
mov ecx, dword [0x44be60]
test ecx, ecx
jne 0x407f0b
mov ecx, 0x44bc58
xor edx, edx
call fcn.004080e8
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
push 0x43fa60
push eax
mov dword [0x435618], eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetCPInfo]
call fcn.00407acd
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 [0x435620], eax
test eax, eax
je 0x407f64
push 0x104
push eax
call dword [sym.imp.api_ms_win_core_console_l2_2_0.dll_GetConsoleTitleW]
test eax, eax
jne 0x407f64
mov eax, dword [0x435620]
xor ecx, ecx
mov word [eax], cx
cmp dword [0x4397d0], edi
jne 0x407fb8
xor ecx, ecx
inc ecx
call fcn.00408f90
test eax, eax
je 0x407fb8
mov cx, word [0x4397dc]
test cx, cx
jne 0x407fb3
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 0x407fa7
mov ax, word [ebp - 0x54]
mov word [0x4397dc], ax
jmp 0x407fb8
mov cx, word [0x4397dc]
test cx, cx
je 0x407fb8
call fcn.0042b981
cmp dword [ebx + 8], edi
jne 0x40801b
call fcn.0042a63c
lea ecx, [ebp - 0x44]
mov ebx, eax
call fcn.00404eb6
lea eax, [ebp - 0x44]
push eax
push 1
push 0x2350
call fcn.004156ed
push 0x40208c
call fcn.00408ec2
add esp, 0x10
test ebx, ebx
je 0x408007
push ebx
push 0x4026f0
call fcn.00408ec2
push 0x40208c
call fcn.00408ec2
add esp, 0xc
jmp 0x408011
push edi
push 8
call fcn.004128ff
pop ecx
pop ecx
push ebx
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_GlobalFree]
mov ebx, dword [ebp - 0x64]
push 0x402734
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
push 0x403714
push eax
mov dword [0x4310c8], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push 0x403720
push dword [0x4310c8]
mov dword [0x435630], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push 0x403734
push dword [0x4310c8]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov dword [0x43562c], eax
cmp dword [ebx], edi
jne 0x408071
cmp dword [ebx + 4], edi
jne 0x408071
cmp dword [ebx + 8], edi
je 0x408074
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
pop esi
xor ecx, ebp
pop ebx
call fcn.00417b90
leave
ret
push edi
push 0x2374
jmp 0x40809b
push edi
push 0x400023df
call fcn.004128ff
pop ecx
pop ecx
xor ecx, ecx
inc ecx
call fcn.0041bca5
int3