Function at 0x1008b55
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0x1008e83
cmp dword [ebp + 0xc], esi
je 0x1008e83
cmp dword [ebp + 0x10], esi
je 0x1008e83
cmp dword [ebp + 0x14], esi
je 0x1008e83
cmp dword [ebp + 0x18], esi
je 0x1008e83
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, esi
jne 0x1008e86
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x24], esi
je 0x1008bef
cmp eax, esi
jne 0x1008bef
mov dword [ebp - 0xc], 0x100
jmp 0x1008bfb
cmp eax, 0x100
jae 0x1008bfb
add eax, eax
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
add eax, eax
push eax
call fcn.010026af
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x1008c17
push 0xe
jmp 0x1008e85
xor edi, edi
xor ebx, ebx
cmp dword [ebp - 0x28], esi
jbe 0x1008c6e
cmp edi, esi
jne 0x1008c6e
mov eax, dword [ebp - 0x20]
push esi
push esi
push esi
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp edi, esi
jne 0x1008c68
push dword [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.010089af
mov edi, eax
cmp edi, 0x4c7
jne 0x1008c68
xor edi, edi
inc ebx
cmp ebx, dword [ebp - 0x28]
jb 0x1008c20
lea eax, [ebp - 4]
push eax
call fcn.01002024
cmp dword [ebp + 0x1c], esi
je 0x1008e86
cmp edi, esi
jne 0x1008e86
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
call fcn.010026af
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x1008ca4
push 8
jmp 0x1008e85
xor ebx, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x24], esi
jbe 0x1008e66
mov eax, dword [ebp - 0xc]
push esi
push esi
push esi
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
cmp edi, esi
jne 0x1008e4a
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0x24]
or eax, 0x20019
push eax
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x1008e4a
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x24]
push esi
or eax, 0xf003f
push eax
push esi
push esi
push esi
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x1008e4a
push esi
push dword [ebp - 4]
call fcn.0100243e
push esi
push dword [ebp + 0xc]
mov edi, eax
call fcn.0100243e
lea eax, [edi + eax + 3]
mov dword [ebp - 8], eax
add eax, eax
push eax
call fcn.010026af
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x1008e47
push esi
push dword [ebp + 0xc]
call fcn.0100243e
test eax, eax
jbe 0x1008d82
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.010022bd
push dword [ebp - 8]
push 0x10011ec
push dword [ebp - 0x10]
call fcn.010028cb
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.010028cb
push esi
push dword [ebp - 4]
call fcn.0100243e
push esi
push dword [ebp + 0x14]
mov edi, eax
call fcn.0100243e
lea eax, [edi + eax + 3]
mov dword [ebp - 8], eax
add eax, eax
push eax
call fcn.010026af
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x1008e47
push esi
push dword [ebp + 0x14]
call fcn.0100243e
test eax, eax
jbe 0x1008de9
push dword [ebp - 8]
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call fcn.010022bd
push dword [ebp - 8]
push 0x10011ec
push dword [ebp - 0x14]
call fcn.010028cb
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x14]
call fcn.010028cb
push dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
inc eax
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.01008b55
mov edi, eax
lea eax, [ebp - 0x18]
push eax
call fcn.01001324
lea eax, [ebp - 0x1c]
push eax
call fcn.01001324
lea eax, [ebp - 0x10]
push eax
call fcn.01002024
lea eax, [ebp - 0x14]
push eax
call fcn.01002024
inc ebx
cmp ebx, dword [ebp - 0x24]
jae 0x1008e4a
jmp 0x1008cb5
push 0xe
pop edi
cmp dword [ebp - 0x18], esi
je 0x1008e58
lea eax, [ebp - 0x18]
push eax
call fcn.01001324
cmp dword [ebp - 0x1c], esi
je 0x1008e66
lea eax, [ebp - 0x1c]
push eax
call fcn.01001324
lea eax, [ebp - 4]
push eax
call fcn.01002024
lea eax, [ebp - 0x10]
push eax
call fcn.01002024
lea eax, [ebp - 0x14]
push eax
call fcn.01002024
jmp 0x1008e86
push 0x57
pop edi
cmp dword [ebp + 0x20], esi
jne 0x1008ebf
cmp edi, esi
je 0x1008ea5
push edi
call fcn.01003151
push 0x20001
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
jmp 0x1008eb9
push esi
call fcn.01003151
push 0x20000
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x20
push eax
call fcn.010030dc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x20