Function at 0x1000b050
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1001851b
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x1001f220]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001f220]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov esi, dword [esp + 0x134]
mov ebp, dword [esp + 0x170]
push 0x100
lea eax, [esp + 0x24]
push 0
push eax
mov dword [esp + 0x138], 1
mov dword [esp + 0x28], 0x100
call fcn.1000d040
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.10008b30
mov edi, dword [esp + 0x13c]
mov ebx, 0x10
cmp dword [esp + 0x150], ebx
mov byte [esp + 0x12c], 2
jae 0x1000b0ed
lea edi, [esp + 0x13c]
lea ecx, [esp + 0x18]
push ecx
call fcn.10008e90
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x1000b186
cmp esi, 2
je 0x1000b122
push str.Error_opening_registry_key
lea edx, [esp + 0x18]
push esi
push edx
call fcn.10008d30
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 1
call fcn.10008b50
cmp dword [esp + 0x150], ebx
jb 0x1000b14c
mov eax, dword [esp + 0x13c]
push eax
call fcn.1000cb22
add esp, 4
cmp dword [esp + 0x16c], ebx
mov dword [esp + 0x150], 0xf
mov dword [esp + 0x14c], edi
mov byte [esp + 0x13c], 0
jb 0x1000b17f
mov ecx, dword [esp + 0x158]
push ecx
call fcn.1000cb22
add esp, 4
mov eax, esi
jmp 0x1000b2d3
cmp dword [esp + 0x16c], ebx
mov eax, dword [esp + 0x158]
jae 0x1000b19d
lea eax, [esp + 0x158]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push edi
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, edi
je 0x1000b24a
cmp esi, 2
je 0x1000b1d7
push str.Error_querying_registry_key
lea eax, [esp + 0x18]
push esi
push eax
call fcn.10008d30
add esp, 0xc
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 1
call fcn.10008b50
cmp dword [esp + 0x150], ebx
jb 0x1000b20c
mov edx, dword [esp + 0x13c]
push edx
call fcn.1000cb22
add esp, 4
cmp dword [esp + 0x16c], ebx
mov dword [esp + 0x150], 0xf
mov dword [esp + 0x14c], edi
mov byte [esp + 0x13c], 0
jb 0x1000b17f
mov eax, dword [esp + 0x158]
push eax
call fcn.1000cb22
add esp, 4
mov eax, esi
jmp 0x1000b2d3
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000b251
sub eax, edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
call fcn.10001d80
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 1
call fcn.10008b50
cmp dword [esp + 0x150], ebx
jb 0x1000b29e
mov eax, dword [esp + 0x13c]
push eax
call fcn.1000cb22
add esp, 4
cmp dword [esp + 0x16c], ebx
mov dword [esp + 0x150], 0xf
mov dword [esp + 0x14c], edi
mov byte [esp + 0x13c], 0
jb 0x1000b2d1
mov ecx, dword [esp + 0x158]
push ecx
call fcn.1000cb22
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.1000d030
add esp, 0x11c
ret 0x40