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

Disassembly:
push 0xffffffffffffffff
push 0x46fb3a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x160], 0
call fcn.00443f37
lea ecx, [esp + 0x30]
mov byte [esp + 0x160], 1
call fcn.00443f37
lea eax, [esp + 0x50]
mov byte [esp + 0x160], 2
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x168]
push ecx
call fcn.0044c30f
add esp, 4
lea ecx, [esp + 0x14]
push 0
push 0x48b638
call fcn.00443ffa
test eax, eax
je 0x407e01
mov bl, 3
lea ecx, [esp + 0x14]
call fcn.0044421a
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
mov edi, eax
call dword [edx + 0x38]
test eax, eax
je 0x407df9
lea ecx, [esp + 0x14]
call fcn.004441e1
test eax, eax
jne 0x407df9
mov eax, dword [0x48fb24]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], bl
push ecx
lea ecx, [esp + 0x18]
call fcn.004442e9
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 4
call fcn.004629d1
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], bl
call fcn.00462898
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.0046260d
mov ecx, esi
call fcn.00407ce0
lea ecx, [esp + 0xc]
mov byte [esp + 0x160], 2
call fcn.00462898
test edi, edi
jne 0x407d67
mov eax, dword [esp + 0x168]
push eax
call fcn.0044c30f
add esp, 4
lea ecx, [esp + 0x30]
push 0
push 0x48b638
call fcn.00443ffa
test eax, eax
je 0x407ef5
mov bl, 5
lea ecx, [esp + 0x30]
call fcn.0044421a
mov ecx, dword [0x48fb24]
mov edi, eax
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x30]
push 0x10
lea ecx, [esp + 0x34]
mov byte [esp + 0x164], bl
call dword [edx + 0x38]
test eax, eax
jne 0x407edc
lea ecx, [esp + 0x30]
call fcn.004441e1
test eax, eax
jne 0x407edc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
call fcn.004442e9
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 6
call fcn.004629d1
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], bl
call fcn.00462898
push str..csv
lea ecx, [esp + 0x10]
call fcn.00461725
cmp eax, 0xffffffff
jne 0x407ebf
push str..CSV
lea ecx, [esp + 0x10]
call fcn.00461725
cmp eax, 0xffffffff
je 0x407edc
mov eax, dword [esi + 0xbc]
lea ecx, [esi + 0xb4]
lea edx, [esp + 0xc]
push edx
push eax
call fcn.004620d5
inc dword [esi + 0xc8]
lea ecx, [esp + 0xc]
mov byte [esp + 0x160], 2
call fcn.00462898
test edi, edi
jne 0x407e2b
lea ecx, [esp + 0x14]
call fcn.00443fb0
lea ecx, [esp + 0x30]
call fcn.00443fb0
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esi + 0xc8]
mov byte [esp + 0x160], 1
test eax, eax
lea ecx, [esp + 0x30]
je 0x407f59
call fcn.00443f74
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 0
call fcn.00443f74
lea ecx, [esp + 0x168]
mov dword [esp + 0x160], 0xffffffff
call fcn.00462898
mov al, 1
jmp 0x407f88
call fcn.00443f74
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 0
call fcn.00443f74
lea ecx, [esp + 0x168]
mov dword [esp + 0x160], 0xffffffff
call fcn.00462898
xor al, al
mov ecx, dword [esp + 0x158]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x158
ret 4