Function at 0x5e3ee0
Capabilities:
Create directory
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x641718
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x6ccc30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x29c], esi
mov dword [ebp - 0x28c], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x28c], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x298], eax
test eax, eax
je 0x5e45d8
mov dword [ebp - 0x284], eax
lea eax, [ebp - 0x268]
push eax
call fcn.005e4630
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.0061e8c0
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
test eax, eax
je 0x5e3fee
xor eax, eax
lea ecx, [ebp - 0x21c]
mov word [ebp - 0x250], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5e3fd5
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
jmp 0x5e3ffd
xor eax, eax
push eax
mov word [ebp - 0x250], ax
push 0x64cb78
lea ecx, [ebp - 0x250]
call fcn.005d2810
mov eax, 5
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x288], eax
mov eax, dword [edi + 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x290], 0
test eax, eax
je 0x5e40e0
cmp dword [edi + 0x14], 8
jb 0x5e403a
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x250]
call fcn.005d7ff0
cmp dword [ebp - 0x240], 0
mov dword [ebp - 0x290], 0
je 0x5e40e0
lea eax, [ebp - 0x274]
mov dword [ebp - 0x26c], 0
xorps xmm0, xmm0
push 1
push eax
movq qword [ebp - 0x274], xmm0
call fcn.005e4780
add esp, 8
test eax, eax
je 0x5e40e0
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x274]
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5e40c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x290], 0
cmp eax, 0xb7
jne 0x5e40cf
mov dword [ebp - 0x290], 1
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x5e40e0
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x284]
cmp word [edi], 0
je 0x5e453d
mov ecx, edi
mov dword [ebp - 0x228], 0
xor eax, eax
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5e4112
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x238]
call fcn.005d2810
cmp dword [ebp - 0x258], 0
mov byte [ebp - 4], 3
je 0x5e442f
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push 4
cmovae eax, dword [ebp - 0x238]
push 0x64cb7c
push 0
push dword [ebp - 0x228]
push eax
call fcn.005d6c50
add esp, 0x14
test eax, eax
jne 0x5e423b
cmp dword [ebp - 0x290], eax
je 0x5e423b
mov ecx, dword [ebp - 0x240]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x5e45f5
lfence
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
push ecx
cmovae eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x280]
push eax
push 4
push str.TMP
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x284]
call fcn.005dfdc0
mov eax, dword [ebp - 0x288]
or eax, 8
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x5e4204
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.005d31d0
movups xmm0, xmmword [ebp - 0x280]
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [ebp - 0x270]
movq qword [ebp - 0x228], xmm0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 7
jmp 0x5e4422
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push 5
cmovae eax, dword [ebp - 0x238]
push 0x64cb94
push 0
push dword [ebp - 0x228]
push eax
call fcn.005d6c50
add esp, 0x14
test eax, eax
jne 0x5e4337
cmp dword [ebp - 0x290], eax
je 0x5e4337
mov ecx, dword [ebp - 0x240]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 5
jb 0x5e45f5
lfence
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
push ecx
cmovae eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x280]
push eax
push 5
push 0x64cba0
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x284]
call fcn.005dfdc0
mov eax, dword [ebp - 0x288]
or eax, 0x10
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x5e4300
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.005d31d0
movups xmm0, xmmword [ebp - 0x280]
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [ebp - 0x270]
movq qword [ebp - 0x228], xmm0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 7
jmp 0x5e4422
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push 0xd
cmovae eax, dword [ebp - 0x238]
push 0x64cbac
push 0
push dword [ebp - 0x228]
push eax
call fcn.005d6c50
add esp, 0x14
test eax, eax
jne 0x5e442f
mov ecx, dword [ebp - 0x258]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0xd
jb 0x5e45f5
lfence
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
push ecx
cmovae eax, dword [ebp - 0x268]
lea ecx, [ebp - 0x280]
push eax
push 0xd
push str.LOCALAPPDATA
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x284]
call fcn.005dfdc0
mov eax, dword [ebp - 0x288]
or eax, 0x20
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 8
cmp eax, 8
jb 0x5e43f0
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.005d31d0
movups xmm0, xmmword [ebp - 0x280]
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [ebp - 0x270]
movq qword [ebp - 0x228], xmm0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 7
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0x280], ax
cmp dword [ebp - 0x228], 0
je 0x5e44d6
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
mov ecx, dword [ebp - 0x228]
lea edi, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
cmovae edi, dword [ebp - 0x238]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x294], eax
cmp edi, eax
je 0x5e44a5
mov cx, word [edi]
mov eax, dword [esi + 4]
mov word [ebp - 0x220], cx
cmp eax, dword [esi + 8]
je 0x5e448b
mov word [eax], cx
add dword [esi + 4], 2
jmp 0x5e449a
lea ecx, [ebp - 0x220]
push ecx
push eax
mov ecx, esi
call fcn.005e4a20
add edi, 2
cmp edi, dword [ebp - 0x294]
jne 0x5e4470
xor eax, eax
mov word [ebp - 0x220], ax
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x5e44c1
xor ecx, ecx
mov word [eax], cx
add dword [esi + 4], 2
jmp 0x5e44d0
lea ecx, [ebp - 0x220]
push ecx
push eax
mov ecx, esi
call fcn.005e4a20
mov edi, dword [ebp - 0x284]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x224]
mov byte [ebp - 4], 2
lea edi, [edi + eax*2]
add edi, 2
mov dword [ebp - 0x284], edi
cmp edx, 8
jb 0x5e4535
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 0xa
cmp edx, 0x1000
jb 0x5e4527
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5e45fa
push edx
push ecx
call fcn.005d319e
add esp, 8
mov byte [ebp - 4], 2
test edi, edi
jne 0x5e40e6
xor eax, eax
mov word [ebp - 0x220], ax
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x5e4559
xor ecx, ecx
mov word [eax], cx
add dword [esi + 4], 2
jmp 0x5e4568
lea ecx, [ebp - 0x220]
push ecx
push eax
mov ecx, esi
call fcn.005e4a20
push dword [ebp - 0x298]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [ebp - 0x23c]
mov byte [ebp - 4], 0xb
cmp eax, 8
jb 0x5e4596
inc eax
lea ecx, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
call fcn.005d31d0
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 4], 0xc
cmp ecx, 8
jb 0x5e45d8
inc ecx
push ecx
push dword [ebp - 0x268]
lea ecx, [ebp - 0x268]
call fcn.005d31d0
mov eax, esi
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.005ce525
mov esp, ebp
pop ebp
ret
call fcn.005e8c90
call fcn.006207e0
int3