Function at 0x407439
Capabilities:
Get common file path

Disassembly:
mov eax, 0x416933
call fcn.00415f10
sub esp, 0x1cc
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esi
push esi
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x68], 0xf
call fcn.004031b2
lea eax, [ebp - 0x1d8]
push eax
push 0x104
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x407489
lea eax, [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x80]
call fcn.00403063
push dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
call fcn.00402f56
lea ebx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004046ad
cmp eax, 0xffffffff
je 0x407541
xor edi, edi
mov eax, ebx
call fcn.0040468b
cmp byte [eax], 0x2f
je 0x407527
mov eax, ebx
call fcn.0040468b
cmp byte [eax], 0x5c
je 0x407527
mov eax, ebx
call fcn.0040468b
xor ebx, ebx
cmp byte [eax], bl
je 0x4074de
inc edi
lea eax, [ebp - 0x30]
call fcn.0040468b
cmp byte [eax], 0x3a
je 0x407529
cmp dword [ebp - 0x68], 0x10
mov ecx, dword [ebp - 0x7c]
jae 0x4074ea
lea ecx, [ebp - 0x7c]
cmp dword [ebp - 0x18], 0x10
mov esi, dword [ebp - 0x2c]
jae 0x4074f6
lea esi, [ebp - 0x2c]
push dword [ebp + 8]
call fcn.004072f7
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00403082
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.00403082
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
xor ebx, ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x407535
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.00407266
pop ecx
jmp 0x4074fe
push dword [ebp + 0x10]
lea eax, [ebp - 0x48]
push eax
call fcn.004084ec
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
mov esi, eax
cmp eax, dword [ebp - 0x38]
jbe 0x407560
call fcn.0040af86
mov eax, dword [ebp - 0x48]
push esi
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
call fcn.004049e5
mov esi, dword [ebp - 0x3c]
cmp esi, dword [ebp - 0x38]
jbe 0x407582
call fcn.0040af86
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 0x3c], esi
jbe 0x407598
call fcn.0040af86
mov eax, dword [ebp - 0x14]
xor ebx, ebx
cmp eax, ebx
je 0x4075a6
cmp eax, dword [ebp - 0x48]
je 0x4075ab
call fcn.0040af86
cmp dword [ebp - 0x10], esi
je 0x40765f
cmp dword [ebp - 0x18], 0x10
mov edi, dword [ebp - 0x2c]
jae 0x4075c0
lea edi, [ebp - 0x2c]
lea esi, [ebp - 0x14]
call fcn.004088a0
cmp dword [eax + 0x18], 0x10
jb 0x4075d3
mov eax, dword [eax + 4]
jmp 0x4075d6
add eax, 4
push edi
push eax
lea eax, [ebp - 0x64]
push str._s__s
push eax
call fcn.00406f28
add esp, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
jae 0x4075f9
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00407150
pop ecx
pop ecx
test al, al
jne 0x407628
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00403082
lea edi, [ebp - 0x88]
lea esi, [ebp - 0x14]
call fcn.004088c8
jmp 0x40758b
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
jae 0x407634
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 8]
call fcn.00407266
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00403082
lea esi, [ebp - 0x48]
call fcn.00404ac0
push dword [ebp - 0x48]
call fcn.0040afa1
jmp 0x4074fe
push dword [ebp + 0xc]
lea eax, [ebp - 0xcc]
push str.file__s_not_found_in_search_path
push eax
call fcn.00406f28
add esp, 0xc
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 0x10
jb 0x407685
mov eax, dword [eax + 4]
jmp 0x407688
add eax, 4
push eax
lea ecx, [ebp - 0x64]
call fcn.00402f56
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xb0]
push eax
mov byte [ebp - 4], 5
call fcn.00406086
push 0x41b534
lea eax, [ebp - 0xb0]
push eax
call fcn.0040f648
int3