Function at 0x40e945
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4bd55d
call fcn.00483820
sub esp, 0x30c
mov eax, dword [0x4eec8c]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
push ebx
push ebx
push 6
push ebx
push ebx
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00493db7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0049b86d
mov eax, dword [0x4eec8c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov byte [ebp - 4], 4
cmp eax, ebx
jne 0x40e9b8
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x214]
push eax
mov ecx, esi
call fcn.00409c5d
jmp 0x40e9d0
mov eax, dword [eax]
mov dword [ebp - 0x1a4], 4
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x1ac], eax
cmp dword [ebp + 8], ebx
je 0x40e9dc
or byte [ebp - 0x183], 0x10
call fcn.004018b1
cmp eax, ebx
jne 0x40e9ed
mov dword [ebp - 0x1b4], ebx
jmp 0x40e9f6
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x18]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x188], eax
call fcn.0049bbe3
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x18c], eax
call fcn.00493f19
mov esi, eax
push 0xffffffffffffffff
dec esi
lea ecx, [ebp - 0x10]
neg esi
sbb esi, esi
inc esi
call fcn.0049bc32
cmp esi, ebx
je 0x40eb7e
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0049bc7a
cmp eax, 0xffffffff
jne 0x40eab0
lea eax, [ebp - 0x318]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp eax, ebx
je 0x40eab0
cmp byte [ebp + eax - 0x319], 0x5c
jne 0x40eb19
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0049babc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.0049b8ec
mov byte [ebp - 4], 4
lea ecx, [ebp + 8]
call fcn.0049b7ff
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.0049b8ec
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0049b7ff
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0049b7ff
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x168]
call fcn.0049b7ff
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 1
call fcn.0049710d
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0049b7ff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0049b7ff
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
push 0x4e9540
lea ecx, [ebp + 0x14]
call fcn.0049b86d
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 6
call fcn.0049babc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
push ecx
push eax
lea eax, [ebp + 8]
push eax
call fcn.0049b9e2
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.0049b8ec
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.0049b7ff
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 6
call fcn.0049b7ff
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x14]
jmp 0x40eaab
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0049b7ff
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0049b7ff
mov byte [ebp - 4], 9
jmp 0x40ead8