Function at 0x101293e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021f16d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x30], esi
call fcn.10129b20
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.1010e9b0
add esp, 8
lea ecx, [ebp - 0x10]
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push ecx
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1012961a
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x10129477
cmp eax, 2
je 0x10129477
cmp eax, 6
jne 0x1012961a
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x101295f0
shr edi, 1
xor ecx, ecx
mov edx, 2
mov byte [ebp - 0x4c], 1
lea esi, [edi + 1]
mov eax, esi
mov dword [ebp - 0x58], esi
mul edx
mov dword [ebp - 0x54], esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10106ef2
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x14], 7
lea edx, [ebp - 0x10]
push edx
push eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
cmova ecx, dword [ebp - 0x28]
push 0
push 0
push ecx
push dword [eax + 0x1c]
mov byte [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp edi, esi
jae 0x10129649
mov eax, dword [ebp - 0x50]
xor ecx, ecx
push 1
mov word [eax + edi*2], cx
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
mov byte [ebp - 0x5c], 1
xor edi, edi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], edi
test esi, esi
je 0x10129525
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10106ef2
mov edi, eax
add esp, 4
mov dword [ebp - 0x60], edi
push esi
push edi
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
push eax
push edi
call fcn.1010ec00
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x48]
mov dword [esi + 0x14], 0
mov byte [ebp - 0x48], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
call fcn.10106975
push dword [ebp - 0x50]
call fcn.10106975
add esp, 0x10
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x101295dc
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x101295d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012965f
push ecx
push edx
call fcn.1010693f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
jmp 0x101295a2
push edi
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.10129820
push 0
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.1010a8a0
push 0x102bfd24
lea eax, [ebp - 0x98]
push eax
call fcn.1012d826
push 0
push 0x160
push 0x10231b60
push str.index____used
call fcn.1010c890
call fcn.1013823f
int3