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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5648ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xabc
mov dword [ebp - 0xaa4], ecx
mov dword [ebp - 0x210], 1
push 0x5c
push 0x2f
mov ecx, dword [ebp + 8]
call fcn.0054a484
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xa70], ecx
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x610]
push ecx
lea edx, [ebp - 0x618]
push edx
mov eax, dword [ebp - 0xa70]
push eax
call fcn.00537d2a
add esp, 0x14
lea ecx, [ebp - 0x618]
push ecx
call fcn.005377e7
add esp, 4
test eax, eax
jne 0x41928b
lea edx, [ebp - 0x610]
push edx
lea ecx, [ebp - 0x824]
call fcn.0054d39c
mov dword [ebp - 4], 0
lea eax, [ebp - 0x820]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [ebp - 0x824]
mov edx, dword [ecx - 8]
mov dword [ebp - 0xa74], edx
cmp dword [ebp - 0xa74], 2
jle 0x418f5d
push 2
lea eax, [ebp - 0xa34]
push eax
lea ecx, [ebp - 0x824]
call fcn.0054a76e
mov dword [ebp - 0xa7c], eax
push 0x5a95c4
mov ecx, dword [ebp - 0xa7c]
mov edx, dword [ecx]
push edx
call fcn.00537cf5
add esp, 8
mov dword [ebp - 0xa78], eax
xor eax, eax
cmp dword [ebp - 0xa78], 0
sete al
mov byte [ebp - 0xa30], al
lea ecx, [ebp - 0xa34]
call fcn.0054d328
mov ecx, dword [ebp - 0xa30]
and ecx, 0xff
test ecx, ecx
je 0x418f5d
jmp 0x419279
mov edx, dword [ebp - 0x824]
mov eax, dword [edx - 8]
mov dword [ebp - 0xa80], eax
cmp dword [ebp - 0xa80], 2
jle 0x41912b
push 3
lea ecx, [ebp - 0xa3c]
push ecx
lea ecx, [ebp - 0x824]
call fcn.0054a76e
mov dword [ebp - 0xa88], eax
push 0x5a95cc
mov edx, dword [ebp - 0xa88]
mov eax, dword [edx]
push eax
call fcn.00537cf5
add esp, 8
mov dword [ebp - 0xa84], eax
xor ecx, ecx
cmp dword [ebp - 0xa84], 0
sete cl
mov byte [ebp - 0xa38], cl
lea ecx, [ebp - 0xa3c]
call fcn.0054d328
mov edx, dword [ebp - 0xa38]
and edx, 0xff
test edx, edx
je 0x41912b
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax - 8]
mov dword [ebp - 0xa8c], ecx
cmp dword [ebp - 0xa8c], 2
jle 0x4190d0
push 3
lea edx, [ebp - 0xa44]
push edx
lea ecx, [ebp - 0x824]
call fcn.0054a76e
mov dword [ebp - 0xa94], eax
push 0x5a95d4
mov eax, dword [ebp - 0xa94]
mov ecx, dword [eax]
push ecx
call fcn.00537cf5
add esp, 8
mov dword [ebp - 0xa90], eax
xor edx, edx
cmp dword [ebp - 0xa90], 0
sete dl
mov byte [ebp - 0xa40], dl
lea ecx, [ebp - 0xa44]
call fcn.0054d328
mov eax, dword [ebp - 0xa40]
and eax, 0xff
test eax, eax
je 0x4190d0
push 0x5a95dc
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 0x824]
mov edx, dword [ecx - 8]
mov dword [ebp - 0xa98], edx
mov eax, dword [ebp - 0xa98]
sub eax, 3
push eax
lea ecx, [ebp - 0xa48]
push ecx
lea ecx, [ebp - 0x824]
call fcn.0054a6f2
mov dword [ebp - 0xaa8], eax
mov edx, dword [ebp - 0xaa8]
mov dword [ebp - 0xaac], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xaac]
push eax
lea ecx, [ebp - 0x824]
call fcn.0054d46f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa48]
call fcn.0054d328
jmp 0x418fe0
lea ecx, [ebp - 0xa2c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [ebp - 0xa2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0054d4bf
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.0054d740
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0054d719
lea ecx, [ebp - 0x410]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0054d719
lea edx, [ebp - 0x820]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x419279
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax - 8]
mov dword [ebp - 0xa9c], ecx
cmp dword [ebp - 0xa9c], 0
je 0x4191e8
xor edx, edx
shl edx, 1
mov eax, dword [ebp - 0x824]
mov cx, word [eax + edx]
mov word [ebp - 0xaa0], cx
mov edx, dword [ebp - 0xaa0]
and edx, 0xffff
cmp edx, 0x5c
jne 0x4191e8
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x610]
push edx
lea eax, [ebp - 0x618]
push eax
lea ecx, [ebp - 0x820]
push ecx
call fcn.00537d2a
add esp, 0x14
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x618]
push eax
lea ecx, [ebp - 0xa4c]
push ecx
call fcn.0054d641
mov dword [ebp - 0xab0], eax
mov edx, dword [ebp - 0xab0]
mov dword [ebp - 0xab4], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xab4]
push eax
mov ecx, dword [ebp + 8]
call fcn.0054d46f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4c]
call fcn.0054d328
jmp 0x419279
mov ecx, dword [ebp + 8]
push ecx
push 0x5c
lea edx, [ebp - 0xa50]
push edx
call fcn.0054a38a
mov dword [ebp - 0xab8], eax
mov eax, dword [ebp - 0xab8]
mov dword [ebp - 0xabc], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xabc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0054d46f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa50]
call fcn.0054d328
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x820]
push eax
lea ecx, [ebp - 0xa54]
push ecx
call fcn.0054d641
mov dword [ebp - 0xac0], eax
mov edx, dword [ebp - 0xac0]
mov dword [ebp - 0xac4], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xac4]
push eax
mov ecx, dword [ebp + 8]
call fcn.0054d46f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa54]
call fcn.0054d328
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x824]
call fcn.0054d328
lea ecx, [ebp - 0x610]
push ecx
lea ecx, [ebp - 0xa5c]
call fcn.0054d39c
mov dword [ebp - 4], 5
lea edx, [ebp - 0xa5c]
push edx
mov ecx, dword [ebp - 0xaa4]
call fcn.004193d1
test eax, eax
je 0x41936e
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xa64]
call fcn.0054d39c
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa64]
push ecx
mov ecx, dword [ebp - 0xaa4]
call fcn.004193d1
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0xa60], al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa64]
call fcn.0054d328
mov edx, dword [ebp - 0xa60]
and edx, 0xff
test edx, edx
jne 0x41936e
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0xa6c]
call fcn.0054d39c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa6c]
push ecx
mov ecx, dword [ebp - 0xaa4]
call fcn.004193d1
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0xa68], al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa6c]
call fcn.0054d328
mov edx, dword [ebp - 0xa68]
and edx, 0xff
test edx, edx
jne 0x41936e
mov dword [ebp - 0xac8], 0
jmp 0x419378
mov dword [ebp - 0xac8], 1
mov al, byte [ebp - 0xac8]
mov byte [ebp - 0xa58], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa5c]
call fcn.0054d328
mov ecx, dword [ebp - 0xa58]
and ecx, 0xff
test ecx, ecx
je 0x4193bb
mov ecx, dword [ebp - 0xaa4]
call fcn.00418cd8
mov dword [ebp - 0x210], 0
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4