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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b28a5
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x100d85c0]
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 - 0x5c], eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x1000b6bb
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x54], eax
mov eax, dword [eax + 0x100b5668]
mov esi, 2
push 0
push 0
push eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
je 0x1000b782
mul esi
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.10087cec
mov esi, eax
add esp, 4
mov dword [ebp - 0x64], esi
push edi
push esi
push dword [ebp - 0x60]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1000b775
mov ecx, esi
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b747
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10006310
test esi, esi
je 0x1000b76d
push esi
call fcn.10087555
add esp, 4
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
jmp 0x1000b79c
test esi, esi
je 0x1000b782
push esi
call fcn.10087555
add esp, 4
xor edi, edi
xorps xmm0, xmm0
mov esi, 7
mov dword [ebp - 0x18], edi
xor eax, eax
mov dword [ebp - 0x14], esi
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
test edi, edi
je 0x1000b896
cmp esi, 7
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x28]
cmova ecx, dword [ebp - 0x28]
cmova edx, dword [ebp - 0x28]
lea eax, [ecx + edi*2]
sub eax, edx
lea ecx, [ebp - 0x40]
sar eax, 1
push eax
push edx
call fcn.1000a830
mov edi, dword [ebp - 0x44]
cmp edi, 2
jb 0x1000b7e8
push 0x100b56c8
lea eax, [ebp - 0x40]
push str.Temp
push eax
call fcn.1000c130
add esp, 0xc
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x70]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x50], xmm0
call fcn.1000b320
mov eax, dword [ebp - 0x70]
add esp, 0xc
test eax, eax
je 0x1000b87a
cmp eax, 1
je 0x1000b87a
test byte [ebp - 0x48], 1
je 0x1000b832
cmp dword [ebp - 0x48], 1
jne 0x1000b87a
cmp dword [ebp - 0x50], 0
setne al
test al, al
jne 0x1000b87a
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x78]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x50], xmm0
call fcn.1000b320
add esp, 0xc
cmp dword [ebp - 0x78], 3
jne 0x1000b87a
test byte [ebp - 0x48], 1
je 0x1000b8eb
cmp dword [ebp - 0x48], 1
jne 0x1000b87a
cmp dword [ebp - 0x50], 0
setne al
test al, al
je 0x1000b8eb
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], 0
cmova eax, dword [ebp - 0x40]
xor ecx, ecx
mov word [eax], cx
mov esi, dword [ebp - 0x14]
jmp 0x1000b899
mov edi, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp esi, 7
jbe 0x1000b8d4
mov ecx, dword [ebp - 0x28]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x1000b8ca
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000baaa
push esi
push ecx
call fcn.100874f4
add esp, 8
mov eax, dword [ebp - 0x54]
inc edi
add eax, 4
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x54], eax
cmp eax, 0x10
jae 0x1000b929
jmp 0x1000b6df
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x1000b929
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000b91f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000baaa
push ecx
push edx
call fcn.100874f4
add esp, 8
cmp dword [ebp - 0x30], 0
jne 0x1000b9f1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, eax
test edi, edi
je 0x1000b980
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.10087cec
mov esi, eax
add esp, 4
mov dword [ebp - 0x64], esi
push edi
push esi
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1000b9a8
mov byte [ebp - 4], al
test esi, esi
je 0x1000b980
push esi
call fcn.10087555
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x58]
test eax, eax
jne 0x1000ba34
test ecx, ecx
je 0x1000ba43
xorps xmm0, xmm0
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
jmp 0x1000ba43
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b9b0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
sar eax, 1
lea ecx, [ebp - 0x40]
push eax
push esi
call fcn.1000a830
push 0x100b56c8
lea eax, [ebp - 0x40]
push str.Temp
push eax
call fcn.1000c130
add esp, 0xc
test esi, esi
je 0x1000b9f1
push esi
call fcn.10087555
add esp, 4
mov eax, dword [ebp - 0x5c]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
movups xmm0, xmmword [ebp - 0x40]
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x30]
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.100874e6
mov esp, ebp
pop ebp
ret
push str.boost::filesystem::temp_directory_path
push ecx
push eax
call fcn.1000d720
add esp, 0xc
mov esi, dword [ebp - 0x5c]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x2c]
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 0x1000baa3
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000ba99
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000baaa
push ecx
push edx
call fcn.100874f4
add esp, 8
mov eax, esi
jmp 0x1000ba19
call fcn.10091fa9
int3