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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b961
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x62cf50]
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 0x4399f1
cmp word [eax], 0
je 0x4399f1
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.00418a00
add esp, 4
test al, al
jne 0x439772
xor esi, esi
jmp 0x4399c8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0056aed0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4397e9
cmp eax, 0x104
jae 0x4397e9
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 0x4397d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
jmp 0x43980c
xor eax, eax
mov dword [ebp - 0x220], 0
push eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push 0x5b6ea8
lea ecx, [ebp - 0x230]
call fcn.00409db0
cmp dword [ebp - 0x220], 0
mov byte [ebp - 4], 2
je 0x439987
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 0x439987
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 0x43989a
movups xmm0, xmmword [edi]
mov dword [ebp - 0x234], 7
movups xmmword [ebp - 0x248], xmm0
jmp 0x4398e4
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.00409eb0
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.0056a3d0
mov eax, dword [ebp - 0x264]
add esp, 0xc
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x238], eax
push 0x5c0584
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 7
call fcn.00439a10
push dword [ebp - 0x268]
lea ecx, [ebp - 0x248]
call fcn.00439a10
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.00415060
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 0x439968
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.0040a5e0
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
jmp 0x439989
xor esi, esi
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 9
cmp eax, 8
jb 0x4399ab
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0040a5e0
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 0x4399ed
inc ecx
push ecx
push dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
call fcn.0040a5e0
mov eax, esi
jmp 0x4399f3
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.004016cd
mov esp, ebp
pop ebp
ret