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

Disassembly:
push 0xffffffffffffffff
push 0x46fada
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 0x407b31
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 0x407b29
lea ecx, [esp + 0x14]
call fcn.004441e1
test eax, eax
jne 0x407b29
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.00407a10
lea ecx, [esp + 0xc]
mov byte [esp + 0x160], 2
call fcn.00462898
test edi, edi
jne 0x407a97
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 0x407c29
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 0x407bfd
lea ecx, [esp + 0x30]
call fcn.004441e1
test eax, eax
jne 0x407bfd
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
mov eax, dword [esi + 0xbc]
lea ecx, [esi + 0xb4]
lea edx, [esp + 0xc]
push edx
push eax
call fcn.004620d5
mov edx, dword [esi + 0xc8]
inc edx
mov dword [esi + 0xc8], edx
mov cl, byte [0x493bac]
test cl, cl
mov eax, edx
je 0x407bfd
cmp eax, dword [0x493ba8]
ja 0x407c18
lea ecx, [esp + 0xc]
mov byte [esp + 0x160], 2
call fcn.00462898
test edi, edi
jne 0x407b5b
jmp 0x407c29
lea ecx, [esp + 0xc]
mov byte [esp + 0x160], 2
call fcn.00462898
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 0x407c8d
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 0x407cbc
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