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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e4fe
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x1a], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406a30
mov ecx, dword [ebp + 8]
call fcn.00406a90
push eax
push 3
call fcn.004017d0
add esp, 8
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jne 0x401092
mov ecx, dword [ebp + 8]
call fcn.00406a90
push eax
push 0
call fcn.004017d0
add esp, 8
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
je 0x401092
mov byte [ebp - 0x19], 1
mov dword [ebp - 0x14], 0xffffffff
cmp dword [ebp + 0x10], 0
je 0x4010af
cmp dword [ebp + 0x10], 4
je 0x4010af
cmp dword [ebp + 0x10], 5
jne 0x4013b2
mov ecx, dword [ebp + 8]
call fcn.00406a90
push eax
push 3
call fcn.004017d0
add esp, 8
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
je 0x4011d6
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.00405c60
mov dword [ebp - 0x20], 0x104
lea ecx, [ebp - 0x24]
call fcn.00406900
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
call fcn.00406ae0
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.00406b40
mov ecx, dword [ebp + 8]
call fcn.00406a90
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406ae0
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00406b40
lea ecx, [ebp - 0x24]
call fcn.00406a90
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 1
lea eax, [ebp - 0xc0]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405da0
mov dword [ebp - 0xc8], eax
push 0x442694
mov ecx, dword [ebp - 0xc8]
push ecx
call fcn.004060c0
add esp, 8
mov byte [ebp - 0xc1], al
lea ecx, [ebp - 0xc0]
call fcn.004069e0
movzx edx, byte [ebp - 0xc1]
test edx, edx
je 0x4011be
push 0x442694
mov ecx, dword [ebp + 8]
call fcn.00405910
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004069e0
jmp 0x401299
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x40128c
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.00405bb0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jle 0x40127d
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405e30
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xcc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.004069e0
mov ecx, dword [ebp + 8]
call fcn.00406a90
push eax
push 3
call fcn.004017d0
add esp, 8
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
je 0x40126e
mov dword [ebp - 0x14], 0
jmp 0x40127b
push 0x442630
mov ecx, dword [ebp + 8]
call fcn.00406a30
jmp 0x40128a
push 0x442630
mov ecx, dword [ebp + 8]
call fcn.00406a30
jmp 0x401299
push 0x442630
mov ecx, dword [ebp + 8]
call fcn.00406a30
cmp dword [ebp - 0x14], 0
jne 0x40132e
cmp dword [ebp + 0x10], 4
jne 0x40132e
push 0
push 0x44268c
mov ecx, dword [ebp + 8]
call fcn.00405b30
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jle 0x401318
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405e30
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xcc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.004069e0
mov dword [ebp - 0x14], 0
jmp 0x40132c
push 0x442630
mov ecx, dword [ebp + 8]
call fcn.00406a30
mov dword [ebp - 0x14], 0xfffffffe
jmp 0x4013ad
cmp dword [ebp - 0x14], 0
jne 0x4013ad
cmp dword [ebp + 0x10], 5
jne 0x4013ad
push 0
push 0x44268c
mov ecx, dword [ebp + 8]
call fcn.00405b30
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jle 0x4013a6
mov esi, dword [ebp - 0x18]
add esi, 1
mov ecx, dword [ebp + 8]
call fcn.00406b20
sub eax, esi
push eax
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405da0
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xcc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb4]
call fcn.004069e0
mov dword [ebp - 0x14], 0
jmp 0x40177e
cmp dword [ebp + 0x10], 1
jne 0x40144b
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x401439
push 0
mov ecx, dword [ebp + 8]
call fcn.00406a90
push eax
lea ecx, [ebp - 0x34]
call fcn.00416fbc
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x34]
call fcn.00417727
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xcc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406a00
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb0]
call fcn.004069e0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00416ad8
jmp 0x401446
push 0x442630
mov ecx, dword [ebp + 8]
call fcn.00406a30
jmp 0x40177e
cmp dword [ebp + 0x10], 2
jne 0x401551
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x40153f
push 0
mov ecx, dword [ebp + 8]
call fcn.00406a90
push eax
lea ecx, [ebp - 0x44]
call fcn.00416fbc
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x44]
call fcn.00417727
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xcc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406a00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xac]
call fcn.004069e0
push 0x2e
mov ecx, dword [ebp + 8]
call fcn.00405bb0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jle 0x401524
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405e30
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0xcc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406a00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa8]
call fcn.004069e0
mov dword [ebp - 0x14], 0
jmp 0x401531
push 0x442630
mov ecx, dword [ebp + 8]
call fcn.00406a30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00416ad8
jmp 0x40154c
push 0x442630
mov ecx, dword [ebp + 8]
call fcn.00406a30
jmp 0x40177e
cmp dword [ebp + 0x10], 3
jne 0x401664
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x401652
push 0
mov ecx, dword [ebp + 8]
call fcn.00406a90
push eax
lea ecx, [ebp - 0x54]
call fcn.00416fbc
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x54]
call fcn.00417727
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0xcc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406a00
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa4]
call fcn.004069e0
push 0x2e
mov ecx, dword [ebp + 8]
call fcn.00405bb0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jle 0x401637
mov esi, dword [ebp - 0x18]
add esi, 1
mov ecx, dword [ebp + 8]
call fcn.00406b20
sub eax, esi
push eax
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405da0
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0xcc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406a00
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa0]
call fcn.004069e0
mov dword [ebp - 0x14], 0
jmp 0x401644
push 0x442630
mov ecx, dword [ebp + 8]
call fcn.00406a30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00416ad8
jmp 0x40165f
push 0x442630
mov ecx, dword [ebp + 8]
call fcn.00406a30
jmp 0x40177e
cmp dword [ebp + 0x10], 6
jne 0x4016e5
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.00405c60
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.00405bb0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jle 0x4016d3
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405e30
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], edx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0xcc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9c]
call fcn.004069e0
jmp 0x4016e0
push 0x442630
mov ecx, dword [ebp + 8]
call fcn.00406a30
jmp 0x40177e
cmp dword [ebp + 0x10], 7
jne 0x401771
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.00405c60
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.00405bb0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jle 0x401762
mov esi, dword [ebp - 0x18]
add esi, 1
mov ecx, dword [ebp + 8]
call fcn.00406b20
sub eax, esi
push eax
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405da0
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0xcc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.004069e0
jmp 0x40176f
push 0x442630
mov ecx, dword [ebp + 8]
call fcn.00406a30
jmp 0x40177e
push 0x442630
mov ecx, dword [ebp + 8]
call fcn.00406a30
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00406b40
jmp 0x4017ab
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret