Function at 0x563ba0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57fd85
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5df440]
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]
xorps xmm0, xmm0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x6c], 0x5a75e0
mov dword [ebp - 0x68], str.TEMP
mov dword [ebp - 0x64], str.LOCALAPPDATA
mov dword [ebp - 0x60], str.USERPROFILE
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
xor edi, edi
push 0
push 0
push dword [ebp + edi*4 - 0x6c]
mov esi, 2
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x563cb3
xor ecx, ecx
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005141ef
mov esi, eax
add esp, 4
mov dword [ebp - 0x50], esi
push dword [ebp - 0x4c]
mov byte [ebp - 4], 1
push esi
push dword [ebp + edi*4 - 0x6c]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x563caa
mov ecx, esi
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x563c80
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00447d68
push esi
call fcn.00513976
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov edx, dword [ebp - 0x30]
jmp 0x563ccd
push esi
call fcn.00513976
add esp, 4
xor edx, edx
xorps xmm0, xmm0
mov ecx, 7
mov dword [ebp - 0x30], edx
xor eax, eax
mov dword [ebp - 0x2c], ecx
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 2
test edx, edx
je 0x563d66
cmp ecx, 7
lea eax, [ebp - 0x40]
push edx
cmova eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.004aa60d
cmp edi, 2
jb 0x563cff
push str.Temp
lea ecx, [ebp - 0x28]
call fcn.00561a20
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00563a10
mov eax, dword [ebp - 0x78]
add esp, 0xc
test eax, eax
je 0x563d4c
cmp eax, 1
je 0x563d4c
cmp dword [ebp - 0x5c], 0
jne 0x563d4c
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00563a10
add esp, 0xc
cmp dword [ebp - 0x80], 3
jne 0x563d4c
cmp dword [ebp - 0x5c], 0
je 0x563dac
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmova eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x563da1
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x563d97
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x563f2a
push ecx
push edx
call fcn.00513968
add esp, 8
inc edi
cmp edi, 4
jae 0x563db8
jmp 0x563c15
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00451620
cmp dword [ebp - 0x18], 0
jne 0x563e6f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, eax
test edi, edi
je 0x563e0c
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005141ef
mov esi, eax
add esp, 4
mov dword [ebp - 0x50], esi
push edi
push esi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x563e3b
push esi
mov byte [ebp - 4], al
call fcn.00513976
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x563eb2
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x563ec3
mov dword [eax], 0
mov byte [eax + 4], 0
mov dword [eax + 8], 0x58f050
jmp 0x563ec3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x563e40
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004aa60d
push str.Temp
lea ecx, [ebp - 0x28]
call fcn.00561a20
push esi
call fcn.00513976
add esp, 4
mov eax, dword [ebp - 0x48]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
movups xmm0, xmmword [ebp - 0x28]
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
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.00513cac
mov esp, ebp
pop ebp
ret
push str.boost::filesystem::temp_directory_path
push dword [ebp - 0x44]
push eax
call fcn.005647e0
add esp, 0xc
mov esi, dword [ebp - 0x48]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x14]
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp ecx, 7
jbe 0x563f23
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x563f19
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x563f2a
push ecx
push edx
call fcn.00513968
add esp, 8
mov eax, esi
jmp 0x563e97
call fcn.0051a096
int3