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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c9aa5
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x78efc4]
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 - 0x70], eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x5ac24b
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x20], 0x6e1454
mov dword [ebp - 0x1c], str.TEMP
mov dword [ebp - 0x18], str.LOCALAPPDATA
mov dword [ebp - 0x14], str.USERPROFILE
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
xor esi, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x54], esi
nop word [eax + eax]
push 0
push 0
push dword [ebp + esi*4 - 0x20]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
je 0x5ac333
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00677c3e
mov esi, eax
add esp, 4
mov dword [ebp - 0x58], esi
mov eax, dword [ebp - 0x54]
push edi
push esi
mov byte [ebp - 4], 1
push dword [ebp + eax*4 - 0x20]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x5ac32a
mov ecx, esi
mov dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5ac300
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x50]
call fcn.0044d800
push esi
call fcn.00677c39
mov esi, dword [ebp - 0x40]
add esp, 4
mov eax, dword [ebp - 0x3c]
jmp 0x5ac34d
push esi
call fcn.00677c39
add esp, 4
xor esi, esi
mov dword [ebp - 0x50], 0
mov eax, 7
mov dword [ebp - 0x40], esi
xor ecx, ecx
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x50], cx
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 2
mov dword [ebp - 0x68], ecx
test esi, esi
je 0x5ac50b
cmp eax, 8
lea edx, [ebp - 0x50]
cmovae edx, ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x58], ecx
cmp esi, ecx
ja 0x5ac39a
cmp ecx, 8
mov dword [ebp - 0x28], esi
lea edi, [ebp - 0x38]
cmovae edi, dword [ebp - 0x38]
add esi, esi
push esi
push edx
push edi
call fcn.00679930
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x5ac441
cmp esi, 0x7ffffffe
ja 0x5ac6fc
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x5ac3ba
mov edi, accept
jmp 0x5ac3d8
mov edx, ecx
mov eax, accept
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x5ac3d0
mov edi, accept
jmp 0x5ac3d8
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x38]
call fcn.0044da00
mov dword [ebp - 0x28], esi
add esi, esi
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x24], edi
mov edi, eax
push edi
mov dword [ebp - 0x78], eax
call fcn.00679930
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0x58]
cmp eax, 8
jb 0x5ac43e
mov ecx, dword [ebp - 0x38]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5ac434
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5ac701
push edx
push ecx
call fcn.006779b1
add esp, 8
mov dword [ebp - 0x38], edi
mov esi, dword [ebp - 0x54]
cmp esi, 2
jb 0x5ac45b
push 0x6e14a4
push str.Temp
lea ecx, [ebp - 0x38]
call fcn.005a9660
lea eax, [ebp - 0x64]
mov dword [ebp - 0x5c], 0
push eax
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x80]
movq qword [ebp - 0x64], xmm0
push eax
call fcn.005abee0
mov eax, dword [ebp - 0x80]
add esp, 0xc
test eax, eax
je 0x5ac4ef
cmp eax, 1
je 0x5ac4ef
test byte [ebp - 0x5c], 1
je 0x5ac4a1
cmp dword [ebp - 0x5c], 1
jne 0x5ac4ef
cmp dword [ebp - 0x64], 0
setne al
test al, al
jne 0x5ac4ef
lea eax, [ebp - 0x64]
mov dword [ebp - 0x5c], 0
push eax
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x88]
movq qword [ebp - 0x64], xmm0
push eax
call fcn.005abee0
add esp, 0xc
cmp dword [ebp - 0x88], 3
jne 0x5ac4ef
test byte [ebp - 0x5c], 1
je 0x5ac5d2
cmp dword [ebp - 0x5c], 1
jne 0x5ac4ef
cmp dword [ebp - 0x64], 0
setne al
test al, al
je 0x5ac5d2
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], 0
cmovae eax, dword [ebp - 0x38]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x68]
jmp 0x5ac50e
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x5ac549
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5ac53f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5ac701
push edx
push ecx
call fcn.006779b1
add esp, 8
inc esi
mov dword [ebp - 0x54], esi
cmp esi, 4
jb 0x5ac290
cmp dword [ebp - 0x28], 0
jne 0x5ac654
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, eax
test edi, edi
je 0x5ac5aa
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00677c3e
mov esi, eax
add esp, 4
mov dword [ebp - 0x58], esi
push edi
push esi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x5ac619
push esi
mov byte [ebp - 4], al
call fcn.00677c39
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x6c]
test eax, eax
jne 0x5ac697
test ecx, ecx
je 0x5ac6a6
xorps xmm0, xmm0
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
jmp 0x5ac6a6
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x5ac556
mov ecx, dword [ebp - 0x68]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5ac60a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5ac701
push edx
push ecx
call fcn.006779b1
add esp, 8
jmp 0x5ac556
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5ac620
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x38]
call fcn.0044d800
push 0x6e14a4
push str.Temp
lea ecx, [ebp - 0x38]
call fcn.005a9660
push esi
call fcn.00677c39
add esp, 4
mov eax, dword [ebp - 0x70]
movups xmm0, xmmword [ebp - 0x38]
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x28]
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.006773ff
mov esp, ebp
pop ebp
ret
push str.boost::filesystem::temp_directory_path
push ecx
push eax
call fcn.005ad540
add esp, 0xc
mov esi, dword [ebp - 0x70]
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp edx, 8
jb 0x5ac6f8
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5ac6ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5ac701
push edx
push ecx
call fcn.006779b1
add esp, 8
mov eax, esi
jmp 0x5ac67c
call fcn.00447ce0
call fcn.00682da2
int3