Function at 0x511b38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x511b41
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov esi, edx
mov edi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x511e44
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x511df3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x1c]
mov eax, edi
call fcn.0051197c
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.004060b4
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegOpenKeyExW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x511bbb
call fcn.004050a8
jmp 0x511dfa
mov edx, dword [ebx]
add edx, 8
lea eax, [ebp - 4]
call fcn.00405dfc
add dword [ebx], 8
mov eax, dword [ebp - 8]
mov edx, 0x511e60
call fcn.00405ac0
jne 0x511bfa
push ebx
lea eax, [ebp - 4]
call fcn.00405bcc
push eax
push esi
push 0
push 0x511e64
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x18], eax
jmp 0x511c1c
push ebx
lea eax, [ebp - 4]
call fcn.00405bcc
push eax
push esi
push 0
mov eax, dword [ebp - 8]
call fcn.00405b74
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x511c30
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov dword [ebp - 0x18], eax
jmp 0x511c39
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp dword [ebp - 0x18], 0
je 0x511c49
call fcn.004050a8
jmp 0x511dfa
cmp dword [esi], 3
jne 0x511dcb
mov eax, dword [ebp - 4]
cmp byte [eax], 0x4e
jne 0x511dcb
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x56
jne 0x511dcb
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x43
jne 0x511dcb
mov eax, dword [ebp - 4]
cmp byte [eax + 3], 0x52
jne 0x511dcb
cmp dword [ebx], 8
jae 0x511c9b
mov dword [ebp - 0x18], 0x18
call fcn.004050a8
jmp 0x511dfa
lea eax, [ebp - 4]
call fcn.00405bcc
add eax, 4
mov eax, dword [eax]
mov dword [esi], eax
sub dword [ebx], 8
cmp byte [0x6dbde4], 1
jne 0x511cf2
lea eax, [ebp - 0x30]
mov edx, edi
call fcn.00405938
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0040b608
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x511e70
call fcn.004059c0
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x4a2944]
call fcn.004a2e64
mov dword [ebp - 0x24], eax
jmp 0x511db0
cmp dword [ebp - 0x1c], 0x80000002
jne 0x511d0a
lea eax, [ebp - 0x10]
mov edx, 0x511e80
call fcn.00405f20
jmp 0x511d50
cmp dword [ebp - 0x1c], 0x80000001
jne 0x511d22
lea eax, [ebp - 0x10]
mov edx, 0x511e8c
call fcn.00405f20
jmp 0x511d50
cmp dword [ebp - 0x1c], 0x80000000
jne 0x511d3a
lea eax, [ebp - 0x10]
mov edx, 0x511e98
call fcn.00405f20
jmp 0x511d50
cmp dword [ebp - 0x1c], 0x80000005
jne 0x511d50
lea eax, [ebp - 0x10]
mov edx, 0x511ea4
call fcn.00405f20
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 0x511eb0
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 8]
call fcn.004060a4
push dword [ebp - 0x34]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004061a0
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x10]
call fcn.00405938
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.0040b608
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push eax
mov edx, 0x511e70
pop eax
call fcn.004059c0
mov ecx, dword [ebp - 0x38]
mov dl, 1
mov eax, dword [0x4a2944]
call fcn.004a2e64
mov dword [ebp - 0x24], eax
mov eax, dword [ebx]
push eax
lea eax, [ebp - 4]
call fcn.00405bcc
lea edx, [eax + 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
jmp 0x511ddd
lea eax, [ebp - 4]
call fcn.00405bcc
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x14]
call fcn.00403234
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x511dfa
mov eax, dword [ebp - 0x24]
call fcn.00404748
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x511e4b
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.004056a8
lea eax, [ebp - 0x34]
call fcn.00405ebc
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004056a8
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00405ed4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004056a8
ret