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

Disassembly:
push 0xffffffffffffffff
push 0x4746aa
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 0x438bef
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 0x438be7
lea ecx, [esp + 0x10]
call fcn.004441e1
test eax, eax
jne 0x438be7
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.00438ad0
add esp, 4
lea ecx, [esp + 8]
mov byte [esp + 0x15c], 2
call fcn.00462898
test esi, esi
jne 0x438b54
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 0x438cdd
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 0x438cc4
lea ecx, [esp + 0x2c]
call fcn.004441e1
test eax, eax
jne 0x438cc4
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
push str..csv
lea ecx, [esp + 0xc]
call fcn.00461725
cmp eax, 0xffffffff
jne 0x438ca9
push str..CSV
lea ecx, [esp + 0xc]
call fcn.00461725
cmp eax, 0xffffffff
je 0x438cc4
mov eax, dword [0x4c5c90]
lea ecx, [esp + 8]
push ecx
push eax
mov ecx, 0x4c5c88
call fcn.004620d5
inc dword [0x4c5c84]
lea ecx, [esp + 8]
mov byte [esp + 0x15c], 2
call fcn.00462898
test esi, esi
jne 0x438c19
lea ecx, [esp + 0x10]
call fcn.00443fb0
lea ecx, [esp + 0x2c]
call fcn.00443fb0
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [0x4c5c84]
mov byte [esp + 0x15c], 1
test eax, eax
lea ecx, [esp + 0x2c]
je 0x438d55
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