Function at 0x100b3d2
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp dword [ebp + 8], edi
je 0x100b694
cmp dword [ebp + 0xc], edi
je 0x100b694
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x100b694
xor ebx, ebx
inc ebx
cmp dword [esi + 0x58], ebx
jne 0x100b451
mov eax, dword [esi + 0x60]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationKey]
mov ecx, eax
mov eax, 0xc0000000
and ecx, eax
cmp ecx, eax
jne 0x100b513
push dword [esi + 0x40]
push edi
push 0xa1
call fcn.0100339e
push eax
push ebx
call fcn.010057ba
add esp, 0xc
mov eax, ebx
jmp 0x100b69e
lea eax, [ebp - 0x28]
push eax
push 0xc
lea eax, [ebp - 0x34]
push eax
push 5
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryKey]
mov ecx, eax
mov eax, 0xc0000000
and ecx, eax
cmp ecx, eax
je 0x100b432
mov esi, dword [sym.imp.msvcrt.dll___iob_func]
push 0x1003c30
call esi
add eax, 0x20
push eax
call fcn.0100245f
push dword [ebp + 0xc]
push 0x1003c64
push ebx
push ebx
call esi
add eax, 0x20
push eax
call fcn.01004105
add esp, 0x14
test byte [ebp - 0x2c], 2
mov eax, 0x1008358
jne 0x100b4b1
mov eax, 0x100b75c
push eax
push 0x100b720
push ebx
push ebx
call esi
add eax, 0x20
push eax
call fcn.01004105
add esp, 0x14
test byte [ebp - 0x2c], 4
mov eax, 0x1008358
jne 0x100b4d7
mov eax, 0x100b75c
push eax
push 0x100b6e0
push ebx
push ebx
call esi
add eax, 0x20
push eax
call fcn.01004105
add esp, 0x14
test byte [ebp - 0x2c], 8
mov eax, 0x1008358
jne 0x100b4fd
mov eax, 0x100b75c
push eax
push 0x100b6a8
push ebx
push ebx
call esi
add eax, 0x20
push eax
call fcn.01004105
add esp, 0x14
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [eax + 0x18], 1
jne 0x100b44a
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
cmp esi, edi
je 0x100b54f
push esi
call fcn.01003151
mov eax, esi
jmp 0x100b69e
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x1c], edi
je 0x100b562
cmp eax, edi
jne 0x100b562
mov eax, 0x100
jmp 0x100b56b
cmp eax, 0x100
jae 0x100b56b
add eax, eax
inc eax
mov dword [ebp - 0xc], eax
add eax, eax
push eax
call fcn.010026af
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x100b58c
push 0xe
call fcn.01003151
push 0xe
jmp 0x100b69d
push edi
push dword [ebp + 0xc]
call fcn.0100243e
mov ecx, dword [ebp - 0xc]
lea eax, [eax + ecx + 1]
mov dword [ebp - 0x14], eax
add eax, eax
push eax
call fcn.010026af
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x100b5b9
lea eax, [ebp - 4]
push eax
call fcn.01002024
jmp 0x100b57e
xor ebx, ebx
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x1c], edi
jbe 0x100b67d
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
add eax, eax
push eax
push edi
push dword [ebp - 4]
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100b601
xor ebx, ebx
jmp 0x100b66e
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.010022bd
push dword [ebp - 0x14]
push 0x10011ec
push dword [ebp - 8]
call fcn.010028cb
push dword [ebp - 0x14]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.010028cb
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 0x58], 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebx + 0x5c]
jne 0x100b644
or eax, 0xf003f
jmp 0x100b649
or eax, 0x20019
push eax
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call esi
cmp eax, edi
jne 0x100b5fd
push ebx
push dword [ebp - 8]
push dword [ebp - 0x18]
call fcn.0100b3d2
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
call fcn.01001324
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jb 0x100b5cd
lea eax, [ebp - 4]
push eax
call fcn.01002024
lea eax, [ebp - 8]
push eax
call fcn.01002024
jmp 0x100b44a
push 0x57
call fcn.01003151
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc