Function at 0x4f5764
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x68
push 0
push 0
dec ecx
jne 0x4f576d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
call fcn.004046b8
mov eax, dword [ebp + 0x14]
call fcn.004046b8
mov eax, dword [ebp + 0x10]
call fcn.004046b8
xor eax, eax
push ebp
push 0x4f60e9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4f609f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x512970]
cmp byte [eax], 0
je 0x4f57ca
mov ebx, 0x20119
jmp 0x4f57cf
mov ebx, 0x20019
lea eax, [ebp - 0xc]
push eax
push ebx
push 0
mov eax, dword [ebp - 8]
call fcn.004046c8
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4f608c
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x140]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
mov dword [ebp - 0x10], 0x3e8
mov eax, dword [ebp - 0x18]
dec eax
test eax, eax
jl 0x4f608c
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], 0
mov eax, dword [0x512704]
cmp byte [eax], 1
je 0x4f608c
mov eax, dword [0x51297c]
mov eax, dword [eax]
call fcn.00481930
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x240]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
cmp dword [ebp - 8], 0
jne 0x4f58a8
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], 6
lea edx, [ebp - 0x248]
xor ecx, ecx
mov eax, 0x4f6104
call fcn.00409ae8
jmp 0x4f58ef
push dword [ebp - 8]
push 0x4f6110
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], 6
lea edx, [ebp - 0x248]
xor ecx, ecx
mov eax, 0x4f6104
call fcn.00409ae8
push dword [ebp - 0x24c]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404588
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], 6
lea edx, [ebp - 0x248]
xor ecx, ecx
mov eax, 0x4f6104
call fcn.00409ae8
cmp edi, 0x80000000
jne 0x4f5bca
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x250]
push eax
lea edx, [ebp - 0x254]
mov eax, 0x4f611c
call fcn.004087b0
mov eax, dword [ebp - 0x254]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x258]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x258]
push eax
lea edx, [ebp - 0x25c]
mov eax, 0x4f6130
call fcn.004087b0
mov eax, dword [ebp - 0x25c]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x260]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x260]
push eax
lea edx, [ebp - 0x264]
mov eax, 0x4f6148
call fcn.004087b0
mov eax, dword [ebp - 0x264]
pop edx
call fcn.0040480c
test eax, eax
jle 0x4f5a05
lea edx, [ebp - 0x268]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x268]
push eax
lea edx, [ebp - 0x26c]
mov eax, 0x4f6148
call fcn.004087b0
mov eax, dword [ebp - 0x26c]
pop edx
call fcn.0040480c
cmp eax, 4
jl 0x4f6080
lea edx, [ebp - 0x270]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x270]
push eax
lea edx, [ebp - 0x274]
mov eax, 0x4f6158
call fcn.004087b0
mov eax, dword [ebp - 0x274]
pop edx
call fcn.0040480c
test eax, eax
jle 0x4f5a74
lea edx, [ebp - 0x278]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x278]
push eax
lea edx, [ebp - 0x27c]
mov eax, 0x4f6158
call fcn.004087b0
mov eax, dword [ebp - 0x27c]
pop edx
call fcn.0040480c
cmp eax, 4
jl 0x4f6080
lea edx, [ebp - 0x280]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x280]
push eax
lea edx, [ebp - 0x284]
mov eax, 0x4f616c
call fcn.004087b0
mov eax, dword [ebp - 0x284]
pop edx
call fcn.0040480c
test eax, eax
jle 0x4f5ae3
lea edx, [ebp - 0x288]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x288]
push eax
lea edx, [ebp - 0x28c]
mov eax, 0x4f616c
call fcn.004087b0
mov eax, dword [ebp - 0x28c]
pop edx
call fcn.0040480c
cmp eax, 4
jl 0x4f6080
lea edx, [ebp - 0x290]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x290]
push eax
lea edx, [ebp - 0x294]
mov eax, 0x4f617c
call fcn.004087b0
mov eax, dword [ebp - 0x294]
pop edx
call fcn.0040480c
test eax, eax
jle 0x4f5b52
lea edx, [ebp - 0x298]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x298]
push eax
lea edx, [ebp - 0x29c]
mov eax, 0x4f617c
call fcn.004087b0
mov eax, dword [ebp - 0x29c]
pop edx
call fcn.0040480c
cmp eax, 4
jl 0x4f6080
lea edx, [ebp - 0x2a0]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x2a0]
push eax
lea edx, [ebp - 0x2a4]
mov eax, 0x4f6190
call fcn.004087b0
mov eax, dword [ebp - 0x2a4]
pop edx
call fcn.0040480c
test eax, eax
jle 0x4f5f93
lea edx, [ebp - 0x2a8]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x2a8]
push eax
lea edx, [ebp - 0x2ac]
mov eax, 0x4f6190
call fcn.004087b0
mov eax, dword [ebp - 0x2ac]
pop edx
call fcn.0040480c
cmp eax, 4
jl 0x4f6080
jmp 0x4f5f93
lea edx, [ebp - 0x2b0]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x2b0]
push eax
lea edx, [ebp - 0x2b4]
mov eax, 0x4f61a0
call fcn.004087b0
mov eax, dword [ebp - 0x2b4]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x2b8]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x2b8]
push eax
lea edx, [ebp - 0x2bc]
mov eax, 0x4f611c
call fcn.004087b0
mov eax, dword [ebp - 0x2bc]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x2c0]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x2c0]
push eax
lea edx, [ebp - 0x2c4]
mov eax, 0x4f6130
call fcn.004087b0
mov eax, dword [ebp - 0x2c4]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x2c8]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x2c8]
push eax
lea edx, [ebp - 0x2cc]
mov eax, 0x4f61ac
call fcn.004087b0
mov eax, dword [ebp - 0x2cc]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x2d0]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x2d0]
push eax
lea edx, [ebp - 0x2d4]
mov eax, 0x4f61e8
call fcn.004087b0
mov eax, dword [ebp - 0x2d4]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x2d8]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x2d8]
push eax
lea edx, [ebp - 0x2dc]
mov eax, 0x4f6228
call fcn.004087b0
mov eax, dword [ebp - 0x2dc]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x2e0]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x2e0]
push eax
lea edx, [ebp - 0x2e4]
mov eax, 0x4f6248
call fcn.004087b0
mov eax, dword [ebp - 0x2e4]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x2e8]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x2e8]
push eax
lea edx, [ebp - 0x2ec]
mov eax, 0x4f626c
call fcn.004087b0
mov eax, dword [ebp - 0x2ec]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x2f0]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x2f0]
push eax
lea edx, [ebp - 0x2f4]
mov eax, 0x4f628c
call fcn.004087b0
mov eax, dword [ebp - 0x2f4]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x2f8]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x2f8]
push eax
lea edx, [ebp - 0x2fc]
mov eax, 0x4f62b0
call fcn.004087b0
mov eax, dword [ebp - 0x2fc]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x300]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x300]
push eax
lea edx, [ebp - 0x304]
mov eax, 0x4f62d4
call fcn.004087b0
mov eax, dword [ebp - 0x304]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x308]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x308]
push eax
lea edx, [ebp - 0x30c]
mov eax, 0x4f62f4
call fcn.004087b0
mov eax, dword [ebp - 0x30c]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x310]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x310]
push eax
lea edx, [ebp - 0x314]
mov eax, 0x4f632c
call fcn.004087b0
mov eax, dword [ebp - 0x314]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x318]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x318]
push eax
lea edx, [ebp - 0x31c]
mov eax, 0x4f6358
call fcn.004087b0
mov eax, dword [ebp - 0x31c]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x320]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x320]
push eax
lea edx, [ebp - 0x324]
mov eax, 0x4f6378
call fcn.004087b0
mov eax, dword [ebp - 0x324]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x328]
push eax
lea edx, [ebp - 0x32c]
mov eax, 0x4f6398
call fcn.004087b0
mov eax, dword [ebp - 0x32c]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
lea edx, [ebp - 0x330]
mov eax, dword [ebp - 0x34]
call fcn.004087b0
mov eax, dword [ebp - 0x330]
push eax
lea edx, [ebp - 0x334]
mov eax, 0x4f63b8
call fcn.004087b0
mov eax, dword [ebp - 0x334]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f6080
inc dword [0x514180]
mov eax, dword [0x514180]
mov ecx, 0xc8
cdq
idiv ecx
test edx, edx
jne 0x4f5fb4
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.00461c78
lea edx, [ebp - 0x338]
mov eax, dword [ebp - 0x34]
call fcn.00408774
mov eax, dword [ebp - 0x338]
push eax
lea edx, [ebp - 0x33c]
mov eax, 0x4f611c
call fcn.00408774
mov eax, dword [ebp - 0x33c]
pop edx
call fcn.0040480c
mov ebx, eax
test ebx, ebx
jle 0x4f603b
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x34]
call fcn.004044c8
mov ecx, eax
lea edx, [ebx + 0xc]
mov eax, dword [ebp - 0x34]
call fcn.00404728
lea edx, [ebp - 0x340]
mov eax, dword [ebp - 0x3c]
call fcn.00408774
mov eax, dword [ebp - 0x340]
push eax
lea edx, [ebp - 0x344]
mov eax, 0x4f611c
call fcn.00408774
mov eax, dword [ebp - 0x344]
pop edx
call fcn.0040480c
mov ebx, eax
test ebx, ebx
jg 0x4f6080
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
mov ecx, dword [ebp - 0x34]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004f7e3c
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.00461c78
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
mov ecx, dword [ebp - 0x34]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004f5764
mov dword [ebp - 0x10], 0x3e8
inc dword [ebp - 0x30]
dec dword [ebp - 0x40]
jne 0x4f583d
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f60a9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f60f0
lea eax, [ebp - 0x344]
mov edx, 0x3f
call fcn.0040422c
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.0040422c
lea eax, [ebp - 8]
call fcn.00404208
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.0040422c
ret