Function at 0x10051b0b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x10051d8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.10004524
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.10004a00
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x10051d65
xor eax, eax
push ebp
push 0x10051d5e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, 0x3fff
call fcn.10002a8c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x10051d40
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0x1c]
call fcn.10002a8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x10051d0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x3fff
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumValueA
test eax, eax
jne 0x10051cee
lea eax, [ebp - 0x2c]
call fcn.10004524
mov eax, dword [ebp - 0x20]
sub eax, 3
je 0x10051bea
dec eax
je 0x10051b98
sub eax, 3
je 0x10051c3f
jmp 0x10051c7a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
push 0x10051da4
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov edx, 8
call fcn.1004b4cc
push dword [ebp - 0x34]
push 0x10051db0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x38]
xor eax, eax
call fcn.1004b514
push dword [ebp - 0x38]
push 0x10051dbc
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.100048c0
jmp 0x10051c85
cmp dword [ebp - 0x1c], 0
jne 0x10051c02
lea eax, [ebp - 0x2c]
mov edx, 0x10051dc8
call fcn.100045bc
jmp 0x10051c85
mov esi, dword [ebp - 0x1c]
dec esi
test esi, esi
jl 0x10051c85
inc esi
xor edi, edi
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + edi]
lea ecx, [ebp - 0x3c]
mov edx, 2
call fcn.1004b4cc
push dword [ebp - 0x3c]
push 0x10051de8
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.100048c0
inc edi
dec esi
jne 0x10051c0d
jmp 0x10051c85
mov esi, dword [ebp - 0x1c]
dec esi
test esi, esi
jl 0x10051c6d
inc esi
xor edi, edi
mov eax, dword [ebp - 0x10]
mov bl, byte [eax + edi]
test bl, bl
jne 0x10051c5d
mov eax, dword [ebp - 0x10]
mov byte [eax + edi], 0x20
jmp 0x10051c69
cmp bl, 0xd
jne 0x10051c69
mov eax, dword [ebp - 0x10]
mov byte [eax + edi], 0x20
inc edi
dec esi
jne 0x10051c4a
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.1000471c
jmp 0x10051c85
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.1000471c
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0
jne 0x10051ca3
lea eax, [ebp - 0x28]
mov edx, 0x10051df4
call fcn.100045bc
mov dword [ebp - 0x30], 0xffffffff
jmp 0x10051cae
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
call fcn.1000471c
mov eax, dword [ebp - 4]
push dword [eax]
push dword [ebp - 0x28]
push 0x10051e04
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x40]
xor eax, eax
call fcn.1004b514
push dword [ebp - 0x40]
push 0x10051e04
push dword [ebp - 0x2c]
push 0x10051e10
mov eax, dword [ebp - 4]
mov edx, 7
call fcn.100048c0
inc dword [ebp - 0x14]
jmp 0x10051cf5
call fcn.10003f70
jmp 0x10051d12
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10051b0b
mov eax, dword [ebp - 0x10]
call fcn.10002abc
ret
cmp dword [ebp - 0x30], 0
jne 0x10051d2a
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov eax, dword [ebp - 4]
mov edx, 0x10051e1c
call fcn.1000484c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10051d47
mov eax, dword [ebp - 0xc]
call fcn.10002abc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10051d94
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.10004548
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.10004548
ret