Function at 0x4f4ce0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x60
push 0
push 0
dec ecx
jne 0x4f4ce9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
call fcn.004046b8
mov eax, dword [ebp + 0x18]
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 0x4f54e2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4f5498
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x512970]
cmp byte [eax], 0
je 0x4f4d4e
mov ebx, 0x20119
jmp 0x4f4d53
mov ebx, 0x20019
lea eax, [ebp - 0xc]
push eax
push ebx
push 0
mov eax, dword [ebp - 8]
call fcn.004046c8
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4f5485
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 0x4f5485
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], 0
mov eax, dword [0x512704]
cmp byte [eax], 1
je 0x4f5485
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 0x4f4e2c
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, 0x4f54fc
call fcn.00409ae8
jmp 0x4f4e73
push dword [ebp - 8]
push 0x4f5508
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, 0x4f54fc
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, 0x4f54fc
call fcn.00409ae8
cmp esi, 0x80000000
jne 0x4f5115
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, 0x4f5514
call fcn.004087b0
mov eax, dword [ebp - 0x254]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f5479
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, 0x4f5528
call fcn.004087b0
mov eax, dword [ebp - 0x25c]
pop edx
call fcn.0040480c
test eax, eax
jle 0x4f4f50
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, 0x4f5528
call fcn.004087b0
mov eax, dword [ebp - 0x264]
pop edx
call fcn.0040480c
cmp eax, 4
jl 0x4f5479
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, 0x4f5538
call fcn.004087b0
mov eax, dword [ebp - 0x26c]
pop edx
call fcn.0040480c
test eax, eax
jle 0x4f4fbf
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, 0x4f5538
call fcn.004087b0
mov eax, dword [ebp - 0x274]
pop edx
call fcn.0040480c
cmp eax, 4
jl 0x4f5479
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, 0x4f554c
call fcn.004087b0
mov eax, dword [ebp - 0x27c]
pop edx
call fcn.0040480c
test eax, eax
jle 0x4f502e
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, 0x4f554c
call fcn.004087b0
mov eax, dword [ebp - 0x284]
pop edx
call fcn.0040480c
cmp eax, 4
jl 0x4f5479
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, 0x4f555c
call fcn.004087b0
mov eax, dword [ebp - 0x28c]
pop edx
call fcn.0040480c
test eax, eax
jle 0x4f509d
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, 0x4f555c
call fcn.004087b0
mov eax, dword [ebp - 0x294]
pop edx
call fcn.0040480c
cmp eax, 4
jl 0x4f5479
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, 0x4f556c
call fcn.004087b0
mov eax, dword [ebp - 0x29c]
pop edx
call fcn.0040480c
test eax, eax
jle 0x4f534f
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, 0x4f556c
call fcn.004087b0
mov eax, dword [ebp - 0x2a4]
pop edx
call fcn.0040480c
cmp eax, 4
jl 0x4f5479
jmp 0x4f534f
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, 0x4f5580
call fcn.004087b0
mov eax, dword [ebp - 0x2ac]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f5479
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, 0x4f55bc
call fcn.004087b0
mov eax, dword [ebp - 0x2b4]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f5479
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, 0x4f55fc
call fcn.004087b0
mov eax, dword [ebp - 0x2bc]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f5479
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, 0x4f5618
call fcn.004087b0
mov eax, dword [ebp - 0x2c4]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f5479
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, 0x4f5650
call fcn.004087b0
mov eax, dword [ebp - 0x2cc]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f5479
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, 0x4f5674
call fcn.004087b0
mov eax, dword [ebp - 0x2d4]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f5479
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, 0x4f56a0
call fcn.004087b0
mov eax, dword [ebp - 0x2dc]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f5479
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, 0x4f56c0
call fcn.004087b0
mov eax, dword [ebp - 0x2e4]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f5479
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, 0x4f56e0
call fcn.004087b0
mov eax, dword [ebp - 0x2ec]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f5479
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, 0x4f5700
call fcn.004087b0
mov eax, dword [ebp - 0x2f4]
pop edx
call fcn.0040480c
test eax, eax
jg 0x4f5479
inc dword [0x514180]
mov eax, dword [0x514180]
mov ecx, 0xc8
cdq
idiv ecx
test edx, edx
jne 0x4f5370
mov edx, dword [ebp - 0x34]
mov eax, edi
call fcn.00461c78
mov eax, dword [0x51417c]
mov eax, dword [eax + 0x48c]
mov edx, 0x4f5724
call fcn.00404614
jne 0x4f539c
mov edx, dword [ebp - 0x34]
mov eax, 0x4f5730
call fcn.0040480c
test eax, eax
jg 0x4f5479
mov eax, dword [ebp - 0x34]
mov edx, 0x4f5580
call fcn.00404614
je 0x4f5479
lea edx, [ebp - 0x2f8]
mov eax, dword [ebp - 0x34]
call fcn.00408774
mov eax, dword [ebp - 0x2f8]
push eax
lea edx, [ebp - 0x2fc]
mov eax, 0x4f5514
call fcn.00408774
mov eax, dword [ebp - 0x2fc]
pop edx
call fcn.0040480c
mov ebx, eax
test ebx, ebx
jle 0x4f5436
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 - 0x300]
mov eax, dword [ebp - 0x3c]
call fcn.00408774
mov eax, dword [ebp - 0x300]
push eax
lea edx, [ebp - 0x304]
mov eax, 0x4f5514
call fcn.00408774
mov eax, dword [ebp - 0x304]
pop edx
call fcn.0040480c
mov ebx, eax
test ebx, ebx
jg 0x4f5479
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push edi
mov ecx, dword [ebp - 0x34]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004f7794
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push edi
mov ecx, dword [ebp - 0x34]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004f4ce0
mov dword [ebp - 0x10], 0x3e8
inc dword [ebp - 0x30]
dec dword [ebp - 0x40]
jne 0x4f4dc1
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 0x4f54a2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f54e9
lea eax, [ebp - 0x304]
mov edx, 0x2f
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, 3
call fcn.0040422c
ret