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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435d35
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4430a4]
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 - 0x58], eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x20], 0x439a54
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
push 0
push 0
push dword [ebp + esi*4 - 0x20]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
je 0x431378
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042da81
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 0x43136f
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431345
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x50]
call fcn.00420080
push esi
call fcn.0042da8a
mov esi, dword [ebp - 0x40]
add esp, 4
mov eax, dword [ebp - 0x3c]
jmp 0x431392
push esi
call fcn.0042da8a
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 - 0x5c], ecx
test esi, esi
je 0x4314f4
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 0x4313df
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 sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x431461
cmp esi, 0x7ffffffe
ja 0x431712
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4313ff
mov edi, 0x7ffffffe
jmp 0x43141d
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x431415
mov edi, 0x7ffffffe
jmp 0x43141d
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x38]
call fcn.0041f750
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 sub.VCRUNTIME140.dll_memcpy
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0x58]
cmp eax, 8
jb 0x43145e
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.0042eb90
mov dword [ebp - 0x38], edi
mov esi, dword [ebp - 0x54]
cmp esi, 2
jb 0x431476
push str.Temp
lea ecx, [ebp - 0x38]
call fcn.0042efa0
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 0
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 0x6c], 0
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x68], 0x4396b0
push eax
call fcn.00431060
mov eax, dword [ebp - 0x80]
add esp, 0xc
test eax, eax
je 0x4314d8
cmp eax, 1
je 0x4314d8
cmp dword [ebp - 0x70], 0
jne 0x4314d8
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00431060
add esp, 0xc
cmp dword [ebp - 0x88], 3
jne 0x4314d8
cmp dword [ebp - 0x70], 0
je 0x4315ce
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 - 0x5c]
jmp 0x4314f7
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x43153a
lea edx, [eax*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 4
cmp edx, 0x1000
jb 0x43152c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4316fb
push edx
push ecx
call fcn.0042d3d2
add esp, 8
mov byte [ebp - 4], 0
inc esi
mov dword [ebp - 0x54], esi
cmp esi, 4
jb 0x4312d8
cmp dword [ebp - 0x28], 0
jne 0x431651
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, eax
test edi, edi
je 0x43159f
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042da81
mov esi, eax
add esp, 4
mov dword [ebp - 0x58], esi
push edi
push esi
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x43161d
push esi
mov byte [ebp - 4], al
call fcn.0042da8a
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x431694
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4316a5
mov dword [eax], 0
mov byte [eax + 4], 0
mov dword [eax + 8], 0x4396b0
jmp 0x4316a5
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x431547
mov ecx, dword [ebp - 0x5c]
lea edx, [eax*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x43160a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4316fb
push edx
push ecx
call fcn.0042d3d2
add esp, 8
mov byte [ebp - 4], 0
jmp 0x431547
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431622
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x38]
call fcn.00420080
push str.Temp
lea ecx, [ebp - 0x38]
call fcn.0042efa0
push esi
call fcn.0042da8a
add esp, 4
mov eax, dword [ebp - 0x64]
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.0042d3e0
mov esp, ebp
pop ebp
ret
push str.boost::filesystem::temp_directory_path
push dword [ebp - 0x60]
push eax
call fcn.00432360
add esp, 0xc
mov esi, dword [ebp - 0x64]
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp edx, 8
jb 0x43170b
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
mov dword [ebp - 4], 5
cmp edx, 0x1000
jb 0x431701
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x431701
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042d3d2
add esp, 8
mov eax, esi
jmp 0x431679
call fcn.00401490
int3