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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5579e1
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x5c7cec]
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 - 0x264], eax
test eax, eax
je 0x436c7e
cmp word [eax], 0
je 0x436c7e
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.00415b30
add esp, 4
test al, al
jne 0x43694f
lea ecx, [ebp - 0x260]
xor esi, esi
call fcn.00408e50
mov eax, esi
jmp 0x436c80
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005290f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4369c9
cmp eax, 0x104
jae 0x4369c9
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4369b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
jmp 0x4369ec
xor eax, eax
mov dword [ebp - 0x238], 0
push eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
push 0x569908
lea ecx, [ebp - 0x248]
call fcn.00408740
cmp dword [ebp - 0x238], 0
mov byte [ebp - 4], 1
je 0x436c62
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x436c62
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
mov esi, dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x268], eax
cmp esi, 8
jae 0x436a8e
movups xmm0, xmmword [eax]
mov edi, 7
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x26c], edi
movups xmmword [ebp - 0x230], xmm0
jmp 0x436b20
mov edi, esi
mov eax, 0x7ffffffe
or edi, 7
cmp edi, eax
cmova edi, eax
mov dword [ebp - 0x26c], edi
lea eax, [edi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x436ab5
or ecx, 0xffffffff
jmp 0x436abd
cmp ecx, 0x1000
jb 0x436ae4
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.00406909
add esp, 4
test eax, eax
je 0x436c9b
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x436af7
test ecx, ecx
je 0x436af5
push ecx
call fcn.00406909
add esp, 4
mov ecx, eax
jmp 0x436af7
xor ecx, ecx
lea eax, [esi*2 + 2]
mov dword [ebp - 0x230], ecx
push eax
push dword [ebp - 0x268]
push ecx
call fcn.005285f0
add esp, 0xc
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x220], esi
mov eax, edi
mov byte [ebp - 4], 2
sub eax, esi
cmp eax, 1
jb 0x436b71
cmp dword [ebp - 0x26c], 8
lea edi, [esi + 1]
mov eax, dword [ebp - 0x270]
lea esi, [ebp - 0x230]
cmovae esi, dword [ebp - 0x230]
push 2
push 0x56999c
mov dword [ebp - 0x220], edi
lea eax, [esi + eax*2]
push eax
call fcn.00528b70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x436b92
push 1
push 0x56999c
mov byte [ebp - 0x268], 0
lea ecx, [ebp - 0x230]
push dword [ebp - 0x268]
push 1
call fcn.0040cdf0
mov edx, dword [ebp - 0x264]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436ba0
mov eax, dword [ebp - 0x21c]
sub ecx, esi
mov esi, dword [ebp - 0x220]
sub eax, esi
sar ecx, 1
mov dword [ebp - 0x264], esi
cmp ecx, eax
ja 0x436c03
cmp dword [ebp - 0x21c], 8
lea edi, [esi + ecx]
lea eax, [ecx + ecx]
mov dword [ebp - 0x220], edi
push eax
mov eax, dword [ebp - 0x264]
lea esi, [ebp - 0x230]
cmovae esi, dword [ebp - 0x230]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.00528b70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x436c1e
push ecx
push edx
mov byte [ebp - 0x264], 0
push dword [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040cdf0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00413ea0
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]
lea ecx, [ebp - 0x230]
call fcn.00408e50
jmp 0x436c64
xor esi, esi
lea ecx, [ebp - 0x248]
call fcn.00408e50
lea ecx, [ebp - 0x260]
call fcn.00408e50
mov eax, esi
jmp 0x436c80
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.0040154f
mov esp, ebp
pop ebp
ret
call fcn.0052cae1
int3