Function at 0x10001170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100067d6
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x10009360]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x214], edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x214], edi
push eax
push 0x20019
push 0
push 0x100078c0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0xf
mov byte [ebp - 0x22c], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x260]
push 3
mov dword [ebp - 0x260], 0
push 0x100078fc
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.100019e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
push 2
mov dword [ebp - 0x248], 0
push 0x10007900
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.100019e0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 0x10
lea ecx, [ebp - 0x22c]
push dword [ebp - 0x250]
cmovae eax, dword [ebp - 0x260]
mov esi, dword [ebp - 0x230]
push eax
call fcn.100019e0
cmp dword [ebp - 0x234], 0x10
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x214], 0x200
push ecx
push 0
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100012fc
lea ecx, [ebp - 0x210]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100012e0
sub ecx, edx
lea eax, [ebp - 0x210]
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.100019e0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x234]
cmp edx, 0x10
jb 0x10001336
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000132c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001381
push edx
push ecx
call fcn.10005022
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
cmp edx, 0x10
jb 0x10001391
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10001387
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001387
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10005022
add esp, 8
mov esi, dword [ebp - 0x218]
lea ecx, [ebp - 0x22c]
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 0x22c]
cmp esi, 0x10
mov dword [edi], 0
mov dword [edi + 0x10], 0
cmovae ecx, edx
mov dword [edi + 0x14], 0xf
add ecx, dword [ebp - 0x21c]
cmp esi, 0x10
mov byte [edi], 0
cmovae eax, edx
cmp eax, ecx
je 0x100013ed
sub ecx, eax
push ecx
push eax
mov ecx, edi
call fcn.100019e0
mov esi, dword [ebp - 0x218]
mov edx, dword [ebp - 0x22c]
cmp esi, 0x10
jb 0x1000141d
inc esi
mov eax, edx
cmp esi, 0x1000
jb 0x10001413
mov edx, dword [edx - 4]
add esi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001413
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
push edx
call fcn.10005022
add esp, 8
mov eax, edi
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.10004fe4
mov esp, ebp
pop ebp
ret