Function at 0x10051207
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1005141e
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 0x4a22
mov dword [ebp - 0x3c], 0x1000d108
cmp dword [ebp - 0x20], 0x4df9
jle 0x100512db
and dword [ebp - 8], 0
jmp 0x1005125c
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x1655
jge 0x100512db
and dword [ebp - 0x18], 0
jmp 0x10051272
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x7cb1
jge 0x100512d6
and dword [ebp - 0x10], 0
jmp 0x10051288
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3637
jge 0x100512d4
and dword [ebp - 0x1c], 0
jmp 0x1005129e
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x55c2
jge 0x100512d2
mov eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 0x10]
mov eax, edx
cdq
idiv dword [ebp - 0x1c]
xor edx, dword [ebp - 8]
mov eax, edx
cdq
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
push dword [ebp - 0x60]
push dword [ebp - 0x64]
mov ecx, 0x10085b58
call fcn.100208d8
jmp 0x10051297
jmp 0x10051281
jmp 0x1005126b
jmp 0x10051255
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x20], 0x4920
jge 0x100512f7
mov edx, dword [ebp - 0x3c]
mov ecx, 0x10085b58
call fcn.10023628
mov eax, dword [ebp - 0x74]
movzx eax, byte [eax]
test eax, eax
je 0x100513fa
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0x6113
mov dword [ebp - 0x5c], 0x1000d134
cmp dword [ebp - 0x24], 0x61e9
jle 0x100513ad
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
and dword [ebp - 0xc], 0
jmp 0x1005134d
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x7b49
jge 0x100513ad
and dword [ebp - 0x14], 0
jmp 0x10051363
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x7376
jge 0x100513ab
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cdq
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
lea ecx, [ebp - 0x8c]
call fcn.1001098e
pop ecx
pop ecx
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
call fcn.100208b8
push eax
call fcn.1006abb3
pop ecx
lea ecx, [ebp - 0x8c]
call fcn.100208ae
jmp 0x1005135c
jmp 0x10051346
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x24], 0x6070
jge 0x100513c5
push dword [ebp - 0x5c]
call fcn.1006abb3
pop ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100513db
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 3
jge 0x100513f8
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x4c]
call fcn.10020c90
mov dword [eax], 0xfff6
jmp 0x100513d0
jmp 0x1005141c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x10051436
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x58], eax
push 0x198e
push dword [ebp - 0x58]
push 0
call fcn.1005817e
add esp, 0xc
mov esp, ebp
pop ebp
ret