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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b7a3
mov eax, dword fs:[0]
push eax
sub esp, 0x284
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 edi, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x288], edi
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [ebp - 0x290], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x284], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x28c], eax
test eax, eax
je 0x469a60
mov edi, eax
lea eax, [ebp - 0x264]
push eax
call fcn.00469a90
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.005290f0
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
test eax, eax
je 0x469700
xor eax, eax
lea ecx, [ebp - 0x21c]
mov word [ebp - 0x24c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4696e7
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
jmp 0x46970f
xor eax, eax
push eax
mov word [ebp - 0x24c], ax
push 0x569908
lea ecx, [ebp - 0x24c]
call fcn.00408740
mov dword [ebp - 0x284], 5
mov eax, dword [esi + 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x280], 0
test eax, eax
je 0x4697f0
cmp dword [esi + 0x14], 8
jb 0x469745
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x24c]
call fcn.0040cd80
cmp dword [ebp - 0x23c], 0
mov dword [ebp - 0x280], 0
je 0x4697f0
lea eax, [ebp - 0x270]
mov dword [ebp - 0x268], 0
xorps xmm0, xmm0
push 1
push eax
movq qword [ebp - 0x270], xmm0
call fcn.00469b70
add esp, 8
test eax, eax
je 0x4697f0
cmp dword [ebp - 0x238], 8
lea ecx, [ebp - 0x270]
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4697d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x280], 0
cmp eax, 0xb7
jne 0x4697da
mov dword [ebp - 0x280], 1
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x4697f0
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [eax + eax]
cmp word [edi], 0
je 0x469a0d
mov ecx, edi
mov dword [ebp - 0x224], 0
xor eax, eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469820
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x234]
call fcn.00408740
cmp dword [ebp - 0x254], 0
mov byte [ebp - 4], 3
je 0x46999b
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x234]
push 4
push 0x5699f8
push 0
push dword [ebp - 0x224]
cmp esi, 8
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.0040f0b0
add esp, 0x14
test eax, eax
jne 0x4698ad
cmp dword [ebp - 0x280], eax
je 0x4698ad
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x27c]
push 0x5699f8
push eax
call fcn.00410490
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 4
jmp 0x469951
push 5
push 0x569a04
push 0
push dword [ebp - 0x224]
cmp esi, 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.0040f0b0
add esp, 0x14
test eax, eax
jne 0x469904
cmp dword [ebp - 0x280], eax
je 0x469904
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x27c]
push 0x569a04
push eax
call fcn.00410490
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 5
jmp 0x469951
push 0xd
push str.LOCALAPPDATA
push 0
push dword [ebp - 0x224]
cmp esi, 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.0040f0b0
add esp, 0x14
test eax, eax
jne 0x46999b
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x27c]
push str.LOCALAPPDATA
push eax
call fcn.00410490
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x234]
cmp eax, esi
je 0x46998c
mov ecx, eax
call fcn.00408df0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x234], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x224], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 3
call fcn.00408e50
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x288]
call fcn.00469d10
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2]
add edi, 2
mov edx, dword [ebp - 0x220]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x469a01
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4699f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x469a7d
push edx
push ecx
call fcn.004097e6
add esp, 8
mov byte [ebp - 4], 2
test edi, edi
jne 0x4697f0
mov edi, dword [ebp - 0x288]
xor eax, eax
mov word [ebp - 0x27e], ax
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x469a2f
xor ecx, ecx
mov word [eax], cx
add dword [edi + 4], 2
jmp 0x469a3e
lea ecx, [ebp - 0x27e]
push ecx
push eax
mov ecx, edi
call fcn.00469db0
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea ecx, [ebp - 0x24c]
call fcn.00408e50
lea ecx, [ebp - 0x264]
call fcn.00408e50
mov eax, edi
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