Function at 0x404eb0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b13e7
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
push ebx
push esi
push edi
lea edi, [ebp - 0x308]
mov ecx, 0xbf
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x616870]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov esi, esp
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [0x618620]
mov edx, dword [ecx]
mov eax, dword [0x618620]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
cmp esi, esp
call fcn.00544880
mov esi, esp
push 0
lea ecx, [ebp + 8]
call fcn.00412c40
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 0x10]
call eax
cmp esi, esp
call fcn.00544880
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x404f89
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov esi, esp
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 8]
call eax
cmp esi, esp
call fcn.00544880
mov dword [ebp - 0x2f4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00410c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00410c50
mov eax, dword [ebp - 0x2f4]
jmp 0x405334
mov esi, esp
lea eax, [ebp - 0x130]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp esi, esp
call fcn.00544880
lea ecx, [ebp + 0x14]
call fcn.00412c40
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp esi, esp
call fcn.00544880
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
jne 0x40502d
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [edx + 0x14]
call ecx
cmp esi, esp
call fcn.00544880
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov esi, esp
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 8]
call eax
cmp esi, esp
call fcn.00544880
mov dword [ebp - 0x2e8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00410c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00410c50
mov eax, dword [ebp - 0x2e8]
jmp 0x405334
mov esi, esp
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [edx + 0x28]
call ecx
cmp esi, esp
call fcn.00544880
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
jne 0x4050bb
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [edx + 0x14]
call ecx
cmp esi, esp
call fcn.00544880
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov esi, esp
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 8]
call eax
cmp esi, esp
call fcn.00544880
mov dword [ebp - 0x2dc], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00410c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00410c50
mov eax, dword [ebp - 0x2dc]
jmp 0x405334
push 0
push 0
lea ecx, [ebp - 0x190]
call fcn.0040c410
mov byte [ebp - 4], 2
push 3
lea ecx, [ebp - 0x190]
call fcn.0040cb80
mov esi, esp
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp esi, esp
call fcn.00544880
lea ecx, [ebp - 0x190]
call fcn.0040cfd0
lea ecx, [ebp - 0x1b0]
call fcn.00410ac0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c4]
call fcn.00410ac0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1b0]
push eax
lea ecx, [ebp - 0x190]
call fcn.0040d1b0
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x405221
cmp dword [ebp - 0x19c], 1
je 0x40514a
jmp 0x40511a
push 0x5c15c8
lea eax, [ebp - 0x1b0]
push eax
call fcn.004130e0
add esp, 8
test eax, eax
je 0x405164
jmp 0x40511a
lea eax, [ebp - 0x1b0]
push eax
push 0x5c1ae0
lea ecx, [ebp + 0x14]
push ecx
lea edx, [ebp - 0x2d0]
push edx
call fcn.00411250
add esp, 0xc
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x300], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x300]
push ecx
lea edx, [ebp - 0x2bc]
push edx
call fcn.00411160
add esp, 0xc
mov dword [ebp - 0x304], eax
mov eax, dword [ebp - 0x304]
mov dword [ebp - 0x308], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x308]
push ecx
lea ecx, [ebp - 0x1c4]
call fcn.00410f60
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2bc]
call fcn.00410c50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2d0]
call fcn.00410c50
lea ecx, [ebp - 0x1c4]
call fcn.00412c40
mov esi, esp
push eax
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [edx + 0x2c]
call ecx
cmp esi, esp
call fcn.00544880
jmp 0x40511a
mov esi, esp
push 0x405960
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [edx + 0x34]
call ecx
cmp esi, esp
call fcn.00544880
mov dword [ebp - 0x1d0], eax
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [edx + 0x14]
call ecx
cmp esi, esp
call fcn.00544880
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov esi, esp
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 8]
call eax
cmp esi, esp
call fcn.00544880
cmp dword [ebp - 0x1d0], 0
jne 0x4052dc
mov dword [ebp - 0x2a8], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c4]
call fcn.00410c50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1b0]
call fcn.00410c50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x190]
call fcn.0040c670
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00410c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00410c50
mov eax, dword [ebp - 0x2a8]
jmp 0x405334
mov dword [ebp - 0x29c], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c4]
call fcn.00410c50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1b0]
call fcn.00410c50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x190]
call fcn.0040c670
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00410c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00410c50
mov eax, dword [ebp - 0x29c]
push edx
mov ecx, ebp
push eax
lea edx, [0x405370]
call fcn.005448b0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544870
add esp, 0x308
cmp ebp, esp
call fcn.00544880
mov esp, ebp
pop ebp
ret