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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cc0f
mov eax, dword fs:[0]
push eax
sub esp, 0xa80
mov eax, dword [0x48d800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa5c], ecx
mov dword [ebp - 0xa58], 0
push 0x5c
push 0x2f
mov ecx, dword [ebp + 8]
call fcn.00404410
push 0x100
lea eax, [ebp - 0x414]
push eax
push 0x100
lea ecx, [ebp - 0x214]
push ecx
push 0x100
lea edx, [ebp - 0x61c]
push edx
push 3
lea eax, [ebp - 0x41c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405060
push eax
call fcn.00428e28
add esp, 0x24
lea ecx, [ebp - 0x41c]
push ecx
call fcn.0042882e
add esp, 4
test eax, eax
jne 0x46896f
lea edx, [ebp - 0x61c]
push edx
lea ecx, [ebp - 0x828]
call fcn.004035e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x824]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x828]
call fcn.004024a0
cmp eax, 2
jle 0x468674
push 3
lea ecx, [ebp - 0xa3c]
push ecx
lea ecx, [ebp - 0x828]
call fcn.00404710
mov dword [ebp - 0xa60], eax
mov edx, dword [ebp - 0xa58]
or edx, 1
mov dword [ebp - 0xa58], edx
push 0x4792dc
mov eax, dword [ebp - 0xa60]
push eax
call fcn.00403850
movzx ecx, al
test ecx, ecx
je 0x468674
mov dword [ebp - 0xa64], 1
jmp 0x46867e
mov dword [ebp - 0xa64], 0
mov dl, byte [ebp - 0xa64]
mov byte [ebp - 0xa35], dl
mov eax, dword [ebp - 0xa58]
and eax, 1
je 0x4686a7
and dword [ebp - 0xa58], 0xfffffffe
lea ecx, [ebp - 0xa3c]
call fcn.00401a90
movzx ecx, byte [ebp - 0xa35]
test ecx, ecx
je 0x468814
lea ecx, [ebp - 0x828]
call fcn.004024a0
cmp eax, 2
jle 0x468713
push 3
lea edx, [ebp - 0xa44]
push edx
lea ecx, [ebp - 0x828]
call fcn.00404710
mov dword [ebp - 0xa68], eax
mov eax, dword [ebp - 0xa58]
or eax, 2
mov dword [ebp - 0xa58], eax
push 0x4792e4
mov ecx, dword [ebp - 0xa68]
push ecx
call fcn.00403850
movzx edx, al
test edx, edx
je 0x468713
mov dword [ebp - 0xa6c], 1
jmp 0x46871d
mov dword [ebp - 0xa6c], 0
mov al, byte [ebp - 0xa6c]
mov byte [ebp - 0xa3d], al
mov ecx, dword [ebp - 0xa58]
and ecx, 2
je 0x468746
and dword [ebp - 0xa58], 0xfffffffd
lea ecx, [ebp - 0xa44]
call fcn.00401a90
movzx edx, byte [ebp - 0xa3d]
test edx, edx
je 0x4687b9
push 0x4792ec
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x828]
call fcn.004024a0
sub eax, 3
push eax
lea eax, [ebp - 0xa48]
push eax
lea ecx, [ebp - 0x828]
call fcn.00404680
mov dword [ebp - 0xa70], eax
mov ecx, dword [ebp - 0xa70]
mov dword [ebp - 0xa74], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xa74]
push edx
lea ecx, [ebp - 0x828]
call fcn.00402480
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa48]
call fcn.00401a90
jmp 0x4686b6
lea eax, [ebp - 0xa34]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0xa34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402d70
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.004043f0
lea edx, [ebp - 0x214]
push edx
mov ecx, dword [ebp + 8]
call fcn.004043d0
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 8]
call fcn.004043d0
lea ecx, [ebp - 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x46895d
lea ecx, [ebp - 0x828]
call fcn.004024a0
test eax, eax
je 0x4688cc
push 0
lea ecx, [ebp - 0x828]
call fcn.00404ac0
movzx edx, ax
cmp edx, 0x5c
jne 0x4688cc
push 0x100
lea eax, [ebp - 0x414]
push eax
push 0x100
lea ecx, [ebp - 0x214]
push ecx
push 0x100
lea edx, [ebp - 0x61c]
push edx
push 3
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x824]
push ecx
call fcn.00428e28
add esp, 0x24
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0xa4c]
push ecx
call fcn.00404840
mov dword [ebp - 0xa78], eax
mov edx, dword [ebp - 0xa78]
mov dword [ebp - 0xa7c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa7c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402480
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4c]
call fcn.00401a90
jmp 0x46895d
mov ecx, dword [ebp + 8]
push ecx
push 0x5c
lea edx, [ebp - 0xa50]
push edx
call fcn.004049a0
mov dword [ebp - 0xa80], eax
mov eax, dword [ebp - 0xa80]
mov dword [ebp - 0xa84], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xa84]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402480
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa50]
call fcn.00401a90
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0xa54]
push ecx
call fcn.00404840
mov dword [ebp - 0xa88], eax
mov edx, dword [ebp - 0xa88]
mov dword [ebp - 0xa8c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xa8c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402480
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa54]
call fcn.00401a90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.00401a90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427b2d
mov esp, ebp
pop ebp
ret 4