Function at 0x1000f2f0
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10225eae
mov eax, dword fs:[0]
push eax
sub esp, 0x408
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2f8], esi
mov dword [ebp - 0x3fc], 0
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x330], 0xf
mov byte [ebp - 0x344], 0
push 0x104
lea eax, [ebp - 0x1d8]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.101ee530
add esp, 0xc
lea eax, [ebp - 0x1d8]
push 0x104
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x2f4], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f3a7
sub ecx, edx
lea eax, [ebp - 0x1d8]
push ecx
push eax
lea ecx, [ebp - 0x2f4]
call fcn.100025c0
push 0x40
lea eax, [ebp - 0xd4]
push 0
push eax
call fcn.101ee530
push 0x104
lea eax, [ebp - 0x2dc]
push 0
push eax
call fcn.101ee530
push 8
lea ecx, [ebp - 0xd4]
call fcn.1000f260
push eax
push str._s.dll
lea eax, [ebp - 0x2dc]
push 0x104
push eax
call fcn.10013590
add esp, 0x2c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x31c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x318], 0xf
mov byte [ebp - 0x32c], 0
mov dword [ebp - 0x3fc], 2
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f440
mov eax, dword [ebp - 0x2e4]
sub ecx, edx
add eax, ecx
lea ecx, [ebp - 0x32c]
push eax
call fcn.10008310
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x32c]
call fcn.100062a0
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x32c]
call fcn.10006230
lea ecx, [ebp - 0x2f4]
call fcn.10002520
movups xmm1, xmmword [ebp - 0x32c]
lea ecx, [ebp - 0x2f4]
movq xmm0, qword [ebp - 0x31c]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x318], 0x10
movd eax, xmm1
movups xmmword [ebp - 0x2f4], xmm1
cmovae ecx, eax
movq qword [ebp - 0x2e4], xmm0
push ecx
call fcn.101f66fc
add esp, 4
mov dword [ebp - 0x3f8], 0
lea eax, [ebp - 0x3f8]
push eax
push fcn.1000f2f0
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
jne 0x1000f547
movups xmm0, xmmword [ebp - 0x344]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x334]
movq qword [esi + 0x10], xmm0
mov edx, dword [ebp - 0x2e0]
cmp edx, 0x10
jb 0x1000f865
mov ecx, dword [ebp - 0x2f4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f85b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f883
jmp 0x1000f85b
push 6
xorps xmm0, xmm0
mov dword [ebp - 0x404], 0
push str.Binary
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x400], 0xf
movups xmmword [ebp - 0x324], xmm0
mov byte [ebp - 0x414], 0
call fcn.100025c0
lea eax, [ebp - 0x414]
push eax
push 0x67
push dword [ebp - 0x3f8]
lea ecx, [ebp - 0x324]
call fcn.1000ba00
mov edx, dword [ebp - 0x400]
cmp edx, 0x10
jb 0x1000f5d2
mov ecx, dword [ebp - 0x414]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f5c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f888
push edx
push ecx
call fcn.101d50ac
add esp, 8
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x324]
call fcn.1000ba70
push 0xb0
lea eax, [ebp - 0x3f4]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.101ee530
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x3f4]
call fcn.10010300
mov byte [ebp - 4], 5
lea eax, [ebp - 0x314]
cmp dword [ebp - 0x300], 0x10
push dword [ebp - 0x304]
cmovae eax, dword [ebp - 0x314]
push eax
lea eax, [ebp - 0x3f4]
push eax
call fcn.100132f0
add esp, 0xc
lea ecx, [ebp - 0x3f4]
call fcn.100127d0
lea ecx, [ebp - 0x3f4]
call fcn.1000f8a0
mov dword [ebp - 4], 3
jmp 0x1000f66d
cmp dword [ebp - 0x2e0], 0x10
lea eax, [ebp - 0x2f4]
cmovae eax, dword [ebp - 0x2f4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1000f703
movups xmm0, xmmword [ebp - 0x344]
mov edx, dword [ebp - 0x300]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x334]
movq qword [esi + 0x10], xmm0
cmp edx, 0x10
jb 0x1000f6e3
mov ecx, dword [ebp - 0x314]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f6d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f88d
push edx
push ecx
call fcn.101d50ac
add esp, 8
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x300], 0xf
mov byte [ebp - 0x314], 0
jmp 0x1000f50a
cmp dword [ebp - 0x2e0], 0x10
lea eax, [ebp - 0x2f4]
push 0
cmovae eax, dword [ebp - 0x2f4]
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edi, eax
test edi, edi
je 0x1000f7d6
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.101ee530
push 0x40
lea ecx, [ebp - 0x54]
call fcn.1000f260
push 0x40
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.101ee530
push 8
lea ecx, [ebp - 0x94]
call fcn.1000f260
add esp, 0x20
lea eax, [ebp - 0x2fc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x2fc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 0x2fc]
call fcn.101f28d4
add esp, 4
call fcn.101f28b3
mov ecx, eax
lea eax, [ebp - 0x54]
push 0x40
push eax
mov eax, 0x2a57bed5
imul ecx
push 0
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x182f
sub ecx, eax
add ecx, 0x168
movzx eax, cx
push eax
lea eax, [ebp - 0x94]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
test eax, eax
je 0x1000f7d6
push 0
push edi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
cmp dword [ebp - 0x2e0], 0x10
lea eax, [ebp - 0x2f4]
push dword [ebp - 0x2e4]
cmovae eax, dword [ebp - 0x2f4]
lea ecx, [ebp - 0x344]
push eax
call fcn.100025c0
movups xmm0, xmmword [ebp - 0x344]
mov edx, dword [ebp - 0x300]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x334]
movq qword [esi + 0x10], xmm0
cmp edx, 0x10
jb 0x1000f6e3
mov ecx, dword [ebp - 0x314]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f6d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000f6d9
jmp 0x1000f883
push edx
push ecx
call fcn.101d50ac
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
call fcn.101f0b28
call fcn.101f0b28
call fcn.101f0b28
int3