Function at 0x100312d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bd041
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100f6458]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], 0
jb 0x10031323
mov ecx, dword [ecx]
lea eax, [ebp - 0x38]
push eax
movzx eax, byte [ebp + 0x18]
xor eax, 1
inc eax
shl eax, 8
or eax, 0x20019
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 7
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], cx
mov dword [ebp - 4], 1
xor edi, edi
test eax, eax
jne 0x100314bb
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x14], edi
jb 0x10031383
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100314bb
shr eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mov dword [ebp - 0x14], eax
mul edx
push 0x100fc2d8
seto cl
neg ecx
or ecx, eax
push ecx
mov dword [ebp - 0x40], ecx
call fcn.1006633d
mov edi, eax
add esp, 8
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x100314b9
push dword [ebp - 0x40]
push 0
push edi
call fcn.10089510
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x1c], eax
jb 0x100313f6
mov esi, dword [esi]
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push esi
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100314bb
cmp dword [ebp - 0x18], 1
jne 0x100314bb
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
add eax, eax
cmp esi, eax
ja 0x100314bb
shr esi, 1
cmp esi, 7
ja 0x10031453
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x34]
add esi, esi
push esi
push edi
push eax
call fcn.10088f90
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x34], ax
mov ebx, dword [ebp - 0x20]
jmp 0x100314bb
cmp esi, 0x7ffffffe
ja 0x1003154b
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x10031473
mov ebx, 0x7ffffffe
jmp 0x1003147d
mov eax, 0xa
cmp ebx, eax
cmovb ebx, eax
xor ecx, ecx
mov eax, ebx
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.1000bf90
mov dword [ebp - 0x24], esi
mov edi, eax
add esi, esi
mov dword [ebp - 0x20], ebx
push esi
push dword [ebp - 0x3c]
push edi
call fcn.10088a10
add esp, 0xc
mov dword [ebp - 0x34], edi
xor eax, eax
mov word [esi + edi], ax
mov edi, dword [ebp - 0x3c]
jmp 0x100314bb
xor edi, edi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x100314d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x38], 0
test edi, edi
je 0x100314dd
push edi
call fcn.10066300
add esp, 4
cmp ebx, 8
lea edx, [ebp - 0x34]
mov ebx, dword [ebp - 0x44]
cmovae edx, dword [ebp - 0x34]
xor eax, eax
mov ecx, edx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031502
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.1000c5b0
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.10005200
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100662e1
mov esp, ebp
pop ebp
ret
call fcn.1000bf10
int3