Function at 0x5070a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x56
push 0
push 0
dec ecx
jne 0x5070a9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
call fcn.004046b8
xor eax, eax
push ebp
push 0x507741
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5076f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4174c4]
call fcn.004033c4
mov esi, eax
mov dl, 1
mov eax, dword [0x497d14]
call fcn.00497ea4
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x34]
call fcn.00497f98
push 1
xor ecx, ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x34]
call fcn.00498000
test al, al
je 0x5073c8
mov edx, esi
mov eax, dword [ebp - 0x34]
call fcn.00498648
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5073c8
inc eax
mov dword [ebp - 0x3c], eax
xor ebx, ebx
mov eax, dword [ebp - 0x38]
mov edx, 0x50775c
call fcn.00404614
je 0x5073be
lea ecx, [ebp - 0x240]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x34]
call fcn.00498788
cmp al, 2
je 0x507199
lea ecx, [ebp - 0x244]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x34]
call fcn.00498788
cmp al, 1
jne 0x50724f
lea ecx, [ebp - 0x248]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x248]
push 0x507768
lea ecx, [ebp - 0x250]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x34]
call fcn.00498804
push dword [ebp - 0x24c]
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00404588
lea edx, [ebp - 0x254]
mov eax, dword [ebp - 0x38]
call fcn.004089c4
mov eax, dword [ebp - 0x254]
mov edx, 0x507768
call fcn.00404614
je 0x5073be
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 0xc]
call fcn.0044704c
mov edi, eax
mov edx, 1
mov eax, edi
call fcn.00445fc0
cmp byte [ebp + 8], 0
je 0x507243
mov edx, 2
mov eax, edi
call fcn.004460c0
jmp 0x50724f
mov edx, 1
mov eax, edi
call fcn.004460c0
lea ecx, [ebp - 0x258]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x34]
call fcn.00498788
cmp al, 3
jne 0x50732f
lea ecx, [ebp - 0x25c]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x25c]
push 0x507768
lea ecx, [ebp - 0x264]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x34]
call fcn.00498890
lea edx, [ebp - 0x260]
call fcn.00408af8
push dword [ebp - 0x260]
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00404588
lea edx, [ebp - 0x268]
mov eax, dword [ebp - 0x38]
call fcn.004089c4
mov eax, dword [ebp - 0x268]
mov edx, 0x507768
call fcn.00404614
je 0x5073be
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 0xc]
call fcn.0044704c
mov edi, eax
mov edx, 2
mov eax, edi
call fcn.00445fc0
cmp byte [ebp + 8], 0
je 0x507323
mov edx, 2
mov eax, edi
call fcn.004460c0
jmp 0x50732f
mov edx, 1
mov eax, edi
call fcn.004460c0
lea ecx, [ebp - 0x26c]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x34]
call fcn.00498788
cmp al, 4
jne 0x5073be
lea ecx, [ebp - 0x38]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x270]
mov eax, dword [ebp - 0x38]
call fcn.004089c4
mov eax, dword [ebp - 0x270]
mov edx, 0x507768
call fcn.00404614
je 0x5073be
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 0xc]
call fcn.0044704c
mov edi, eax
mov edx, 2
mov eax, edi
call fcn.00445fc0
cmp byte [ebp + 8], 0
je 0x5073b2
mov edx, 2
mov eax, edi
call fcn.004460c0
jmp 0x5073be
mov edx, 1
mov eax, edi
call fcn.004460c0
inc ebx
dec dword [ebp - 0x3c]
jne 0x507140
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp + 0x10]
call fcn.004046c8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5076d7
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 - 0x13c]
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 0x5076d7
inc eax
mov dword [ebp - 0x3c], eax
xor ebx, ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x23c]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
cmp dword [ebp + 0x10], 0
jne 0x507486
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x278], eax
mov byte [ebp - 0x274], 6
lea edx, [ebp - 0x278]
xor ecx, ecx
mov eax, 0x507774
call fcn.00409ae8
jmp 0x5074cd
push dword [ebp + 0x10]
push 0x507780
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x278], eax
mov byte [ebp - 0x274], 6
lea edx, [ebp - 0x278]
xor ecx, ecx
mov eax, 0x507774
call fcn.00409ae8
push dword [ebp - 0x27c]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404588
lea edx, [ebp - 0x280]
mov eax, dword [ebp - 0x30]
call fcn.00408774
mov eax, dword [ebp - 0x280]
push eax
lea edx, [ebp - 0x284]
mov eax, 0x50778c
call fcn.00408774
mov eax, dword [ebp - 0x284]
pop edx
call fcn.0040480c
test eax, eax
jg 0x5076cd
lea edx, [ebp - 0x288]
mov eax, dword [ebp - 0x30]
call fcn.00408774
mov eax, dword [ebp - 0x288]
push eax
lea edx, [ebp - 0x28c]
mov eax, 0x5077b0
call fcn.00408774
mov eax, dword [ebp - 0x28c]
pop edx
call fcn.0040480c
test eax, eax
jg 0x5076cd
lea edx, [ebp - 0x290]
mov eax, dword [ebp - 0x30]
call fcn.00408774
mov eax, dword [ebp - 0x290]
push eax
lea edx, [ebp - 0x294]
mov eax, 0x5077d4
call fcn.00408774
mov eax, dword [ebp - 0x294]
pop edx
call fcn.0040480c
test eax, eax
jg 0x5076cd
lea edx, [ebp - 0x298]
mov eax, dword [ebp - 0x30]
call fcn.00408774
mov eax, dword [ebp - 0x298]
push eax
lea edx, [ebp - 0x29c]
mov eax, 0x5077f4
call fcn.00408774
mov eax, dword [ebp - 0x29c]
pop edx
call fcn.0040480c
test eax, eax
jg 0x5076cd
lea edx, [ebp - 0x2a0]
mov eax, dword [ebp - 0x30]
call fcn.00408774
mov eax, dword [ebp - 0x2a0]
push eax
lea edx, [ebp - 0x2a4]
mov eax, 0x507810
call fcn.00408774
mov eax, dword [ebp - 0x2a4]
pop edx
call fcn.0040480c
test eax, eax
jg 0x5076cd
lea edx, [ebp - 0x2a8]
mov eax, dword [ebp - 0x30]
call fcn.00408774
mov eax, dword [ebp - 0x2a8]
push eax
lea edx, [ebp - 0x2ac]
mov eax, 0x50782c
call fcn.00408774
mov eax, dword [ebp - 0x2ac]
pop edx
call fcn.0040480c
test eax, eax
jg 0x5076cd
lea edx, [ebp - 0x2b0]
mov eax, dword [ebp - 0x30]
call fcn.00408774
mov eax, dword [ebp - 0x2b0]
push eax
lea edx, [ebp - 0x2b4]
mov eax, 0x507844
call fcn.00408774
mov eax, dword [ebp - 0x2b4]
pop edx
call fcn.0040480c
test eax, eax
jg 0x5076cd
lea eax, [ebp - 0x2b8]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x278], eax
mov byte [ebp - 0x274], 6
lea edx, [ebp - 0x278]
xor ecx, ecx
mov eax, 0x507774
call fcn.00409ae8
mov ecx, dword [ebp - 0x2b8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
mov edx, dword [ebp + 0xc]
call fcn.0044704c
mov edi, eax
xor edx, edx
mov eax, edi
call fcn.00445fc0
cmp byte [ebp + 8], 0
je 0x5076ba
mov edx, 2
mov eax, edi
call fcn.004460c0
jmp 0x5076c6
mov edx, 1
mov eax, edi
call fcn.004460c0
mov dword [ebp - 0x10], 0x3e8
inc ebx
dec dword [ebp - 0x3c]
jne 0x507438
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, esi
call fcn.004033f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5076fb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507748
lea eax, [ebp - 0x2b8]
mov edx, 0x10
call fcn.0040422c
lea eax, [ebp - 0x270]
mov edx, 0xd
call fcn.0040422c
lea eax, [ebp - 0x38]
call fcn.00404208
lea eax, [ebp - 0x30]
call fcn.00404208
lea eax, [ebp + 0x10]
call fcn.00404208
ret