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

Disassembly:
push 0xffffffffffffffff
push 0x47464a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x15c], 0
call fcn.00443f37
lea ecx, [esp + 0x2c]
mov byte [esp + 0x15c], 1
call fcn.00443f37
lea eax, [esp + 0x4c]
mov byte [esp + 0x15c], 2
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x164]
push ecx
call fcn.0044c30f
add esp, 4
lea ecx, [esp + 0x10]
push 0
push 0x48b638
call fcn.00443ffa
test eax, eax
je 0x43890f
mov bl, 3
lea ecx, [esp + 0x10]
call fcn.0044421a
mov edx, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
mov esi, eax
call dword [edx + 0x38]
test eax, eax
je 0x438907
lea ecx, [esp + 0x10]
call fcn.004441e1
test eax, eax
jne 0x438907
mov eax, dword [0x48fb24]
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], bl
push ecx
lea ecx, [esp + 0x14]
call fcn.004442e9
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x160], 4
call fcn.004629d1
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], bl
call fcn.00462898
push ecx
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call fcn.0046260d
call fcn.004387f0
add esp, 4
lea ecx, [esp + 8]
mov byte [esp + 0x15c], 2
call fcn.00462898
test esi, esi
jne 0x438874
mov eax, dword [esp + 0x164]
push eax
call fcn.0044c30f
add esp, 4
lea ecx, [esp + 0x2c]
push 0
push 0x48b638
call fcn.00443ffa
test eax, eax
je 0x438a05
mov bl, 5
lea ecx, [esp + 0x2c]
call fcn.0044421a
mov ecx, dword [0x48fb24]
mov esi, eax
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x2c]
push 0x10
lea ecx, [esp + 0x30]
mov byte [esp + 0x160], bl
call dword [edx + 0x38]
test eax, eax
jne 0x4389d9
lea ecx, [esp + 0x2c]
call fcn.004441e1
test eax, eax
jne 0x4389d9
lea eax, [esp + 0xc]
lea ecx, [esp + 0x2c]
push eax
call fcn.004442e9
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x160], 6
call fcn.004629d1
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], bl
call fcn.00462898
mov eax, dword [0x4c5c90]
lea ecx, [esp + 8]
push ecx
push eax
mov ecx, 0x4c5c88
call fcn.004620d5
mov ecx, dword [0x4c5c84]
mov al, byte [0x493bac]
inc ecx
test al, al
mov dword [0x4c5c84], ecx
je 0x4389d9
mov eax, dword [0x493ba8]
mov edx, ecx
cmp edx, eax
ja 0x4389f4
lea ecx, [esp + 8]
mov byte [esp + 0x15c], 2
call fcn.00462898
test esi, esi
jne 0x438939
jmp 0x438a05
lea ecx, [esp + 8]
mov byte [esp + 0x15c], 2
call fcn.00462898
lea ecx, [esp + 0x10]
call fcn.00443fb0
lea ecx, [esp + 0x2c]
call fcn.00443fb0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [0x4c5c84]
mov byte [esp + 0x15c], 1
test eax, eax
lea ecx, [esp + 0x2c]
je 0x438a7d
call fcn.00443f74
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 0
call fcn.00443f74
lea ecx, [esp + 0x164]
mov dword [esp + 0x15c], 0xffffffff
call fcn.00462898
mov al, 1
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x158
ret
call fcn.00443f74
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 0
call fcn.00443f74
lea ecx, [esp + 0x164]
mov dword [esp + 0x15c], 0xffffffff
call fcn.00462898
mov ecx, dword [esp + 0x154]
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
add esp, 0x158
ret