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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e01e6
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x51b170]
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 - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa4], eax
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x24], 0x4e7560
mov dword [ebp - 0x20], str.TEMP
mov dword [ebp - 0x1c], str.LOCALAPPDATA
mov dword [ebp - 0x18], str.USERPROFILE
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov dword [ebp - 4], eax
mov esi, 0x4e7560
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x85]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push eax
lea ecx, [ebp - 0xb0]
call fcn.004559e0
mov edi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xac]
mov byte [ebp - 4], 1
cmp edi, eax
je 0x457797
sub eax, edi
sar eax, 1
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x457797
mov ecx, edi
mov dword [ebp - 0x5c], 0
xor eax, eax
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457770
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x6c]
call fcn.00417920
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x6c]
or eax, 2
jmp 0x4577bd
xor eax, eax
mov dword [ebp - 0x74], 0
mov word [ebp - 0x84], ax
lea ecx, [ebp - 0x84]
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x70], 7
or eax, 4
movups xmm0, xmmword [ecx]
or eax, 8
xor edx, edx
mov dword [ebp - 0x8c], eax
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [ecx + 0x10]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
movq qword [ebp - 0x44], xmm0
mov word [ecx], dx
test al, 4
je 0x457808
and eax, 0xfffffffb
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
call fcn.00404ac0
mov eax, dword [ebp - 0x8c]
test al, 2
je 0x45781d
and eax, 0xfffffffd
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x8c], eax
call fcn.00404ac0
lea ecx, [ebp - 0xb0]
call fcn.00413850
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4578fa
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
push ecx
cmovae eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x3c]
push eax
call fcn.00417920
mov esi, dword [ebp - 0x90]
cmp esi, 2
jl 0x457864
push str.Temp
lea ecx, [ebp - 0x3c]
call fcn.00458120
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x98], 0
push eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x94], 0x4fe210
push eax
call fcn.00457410
mov eax, dword [ebp - 0xb8]
add esp, 0xc
test eax, eax
je 0x4578e1
cmp eax, 1
je 0x4578e1
cmp byte [ebp - 0x98], 0
jne 0x4578e1
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00457410
add esp, 0xc
cmp dword [ebp - 0xc0], 3
jne 0x4578e1
cmp byte [ebp - 0x98], 0
je 0x457a89
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
cmovae eax, dword [ebp - 0x3c]
xor ecx, ecx
mov word [eax], cx
jmp 0x457900
mov esi, dword [ebp - 0x90]
mov edx, dword [ebp - 0x40]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x45793e
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457934
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457ada
push edx
push ecx
call fcn.00499ae0
add esp, 8
inc esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x90], esi
mov esi, dword [ebp + esi*4 - 0x24]
test esi, esi
jne 0x457714
cmp dword [ebp - 0x2c], 0
jne 0x4579d8
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x85]
push eax
push 0
push 0
call edi
push eax
lea ecx, [ebp - 0x9c]
call fcn.004559e0
mov esi, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x98]
mov byte [ebp - 4], 4
cmp esi, eax
je 0x457a9a
sub eax, esi
sar eax, 1
push eax
push esi
call edi
test eax, eax
je 0x457a9a
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4579a7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x3c]
call fcn.00417920
push str.Temp
lea ecx, [ebp - 0x3c]
call fcn.00458120
lea ecx, [ebp - 0x9c]
call fcn.00413850
mov esi, dword [ebp - 0xa0]
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 5
cmp esi, eax
je 0x457a64
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x457a35
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x457a2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457ada
mov eax, edx
push ecx
push eax
call fcn.00499ae0
add esp, 8
movups xmm0, xmmword [ebp - 0x3c]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
movups xmmword [esi], xmm0
mov word [ebp - 0x3c], ax
movq xmm0, qword [ebp - 0x2c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 7
lea ecx, [ebp - 0x3c]
call fcn.00404ac0
mov eax, esi
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.004996e8
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00404ac0
jmp 0x457955
push str.boost::filesystem::temp_directory_path
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00456bc0
mov esi, dword [ebp - 0xa0]
lea ecx, [ebp - 0x9c]
add esp, 0xc
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.00413850
jmp 0x457a64
call fcn.004bbc5b
int3