Function at 0x40d530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424d71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
push 0
push 0
lea ecx, [ebp - 0x94]
call fcn.00406627
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x40d5b9
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x40d595
mov dword [ebp - 0x6c], 0
jmp 0x40d5a4
mov edx, dword [ebp + 0x10]
push edx
call fcn.00418020
add esp, 4
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x94]
call fcn.0040644a
jmp 0x40d60b
lea edx, [ebp - 0x22c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40d60b
movsx eax, byte [ebp - 0x22c]
test eax, eax
jne 0x40d5e3
mov dword [ebp - 0x70], 0
jmp 0x40d5f5
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00418020
add esp, 4
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
push edx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0040644a
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00405ba6
mov byte [ebp - 4], 1
mov edx, dword [0x431750]
mov dword [ebp - 0xa4], edx
cmp dword [0x431754], 0x10
jb 0x40d644
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x68], eax
mov ecx, dword [0x431740]
mov dword [ebp - 0x68], ecx
jmp 0x40d64b
mov dword [ebp - 0x68], 0x431740
mov edx, dword [ebp - 0xa4]
push edx
push 0
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406545
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [0x42b5d4]
je 0x40d82d
cmp dword [ebp - 0x14], 0x10
jb 0x40d68f
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x64], eax
jmp 0x40d695
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x64], ecx
xor edx, edx
shl edx, 0
mov eax, dword [ebp - 0x64]
movsx ecx, byte [eax + edx]
cmp ecx, 0x2f
je 0x40d7c9
cmp dword [ebp - 0x14], 0x10
jb 0x40d6c1
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
jmp 0x40d6c7
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x48], ecx
xor edx, edx
shl edx, 0
mov eax, dword [ebp - 0x48]
movsx ecx, byte [eax + edx]
cmp ecx, 0x5c
je 0x40d7c9
cmp dword [ebp - 0x14], 0x10
jb 0x40d6f3
mov edx, dword [ebp - 0x104]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
jmp 0x40d6f9
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x38], ecx
xor edx, edx
shl edx, 0
mov eax, dword [ebp - 0x38]
movsx ecx, byte [eax + edx]
test ecx, ecx
je 0x40d73e
cmp dword [ebp - 0x14], 0x10
jb 0x40d720
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
jmp 0x40d726
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x50], ecx
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 0x50]
movsx ecx, byte [eax + edx]
cmp ecx, 0x3a
je 0x40d7c9
cmp dword [ebp - 0x80], 0x10
jb 0x40d758
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x40], eax
jmp 0x40d761
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x14], 0x10
jb 0x40d778
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
jmp 0x40d77e
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040d2b0
add esp, 0xc
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00406627
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.00406627
mov eax, dword [ebp + 8]
jmp 0x40daba
cmp dword [ebp - 0x14], 0x10
jb 0x40d7e0
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x60], ecx
jmp 0x40d7e6
lea edx, [ebp - 0x28]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040d1e0
add esp, 8
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00406627
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.00406627
mov eax, dword [ebp + 8]
jmp 0x40daba
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040f270
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd4]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.0040f3c0
mov edx, dword [eax]
mov dword [ebp - 0xa0], edx
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x100]
push edx
lea ecx, [ebp - 0x7c]
call fcn.0040f440
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040f3c0
mov ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
jmp 0x40d898
push 0
lea edx, [ebp - 0xe8]
push edx
lea ecx, [ebp - 0x4c]
call fcn.0040f900
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040f3f0
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040f930
movzx ecx, al
test ecx, ecx
je 0x40da08
cmp dword [ebp - 0x14], 0x10
jb 0x40d8d2
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], eax
jmp 0x40d8d8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x4c]
call fcn.0040f8e0
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x14], 0x10
jb 0x40d8ff
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov dword [ebp - 0x44], edx
jmp 0x40d905
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push str._s__s
lea eax, [ebp - 0xbc]
push eax
call fcn.0040cbc0
add esp, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0xa8], 0x10
jb 0x40d942
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x2c], edx
jmp 0x40d94b
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x2c], eax
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040d000
add esp, 8
movzx edx, al
test edx, edx
je 0x40d9f0
cmp dword [ebp - 0xa8], 0x10
jb 0x40d981
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0x30], ecx
jmp 0x40d98a
lea edx, [ebp - 0xbc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040d1e0
add esp, 8
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0xbc]
call fcn.00406627
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.00406887
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00406627
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.00406627
mov eax, dword [ebp + 8]
jmp 0x40daba
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0xbc]
call fcn.00406627
jmp 0x40d887
mov eax, dword [ebp + 0xc]
push eax
push str.file__s_not_found_in_search_path
lea ecx, [ebp - 0x128]
push ecx
call fcn.0040cbc0
add esp, 0xc
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x14], 0x10
jb 0x40da4f
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov dword [ebp - 0x3c], eax
jmp 0x40da55
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x110]
call fcn.0040b2a0
push 0x42c458
lea eax, [ebp - 0x110]
push eax
call fcn.0041b68d
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x128]
call fcn.00406627
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.00406887
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00406627
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.00406627
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret