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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56de11
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x268], eax
test eax, eax
je 0x42ef61
cmp word [eax], 0
je 0x42ef61
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x260]
push eax
call fcn.00415a80
add esp, 4
test al, al
jne 0x42ece2
xor esi, esi
jmp 0x42ef38
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0053f340
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42ed59
cmp eax, 0x104
jae 0x42ed59
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ed40
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
jmp 0x42ed7c
xor eax, eax
mov dword [ebp - 0x220], 0
push eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push 0x586454
lea ecx, [ebp - 0x230]
call fcn.00408f30
cmp dword [ebp - 0x220], 0
mov byte [ebp - 4], 2
je 0x42eef7
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x42eef7
cmp dword [ebp - 0x21c], 8
lea edi, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
cmovae edi, dword [ebp - 0x230]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x264], eax
cmp eax, 8
jae 0x42ee0a
movups xmm0, xmmword [edi]
mov dword [ebp - 0x234], 7
movups xmmword [ebp - 0x248], xmm0
jmp 0x42ee54
mov esi, eax
lea ecx, [ebp - 0x248]
mov eax, 0x7ffffffe
or esi, 7
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00409030
mov ecx, eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x248], ecx
lea eax, [eax*2 + 2]
push eax
push edi
push ecx
call fcn.0053e840
mov eax, dword [ebp - 0x264]
add esp, 0xc
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x238], eax
push 0x58f23c
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 7
call fcn.0042ef80
push dword [ebp - 0x268]
lea ecx, [ebp - 0x248]
call fcn.0042ef80
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.00413f10
cmp dword [ebp - 0x24c], 8
mov esi, eax
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 8
cmp eax, 8
jb 0x42eed8
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
jmp 0x42eef9
xor esi, esi
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 9
cmp eax, 8
jb 0x42ef1b
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 4], 0xa
cmp ecx, 8
jb 0x42ef5d
inc ecx
push ecx
push dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
call fcn.0040a2e0
mov eax, esi
jmp 0x42ef63
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret