Function at 0x53f61c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00404690
mov eax, dword [ebp - 8]
call fcn.00404690
xor eax, eax
push ebp
push 0x53f8e3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0xbce469], 0
je 0x53f67e
mov ebx, 0x20119
jmp 0x53f683
mov ebx, 0x20019
lea eax, [ebp - 0xc]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.004046a0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x53f8a2
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 ebx, dword [ebp - 0x18]
dec ebx
test ebx, ebx
jl 0x53f8a2
inc ebx
mov dword [ebp - 0x30], 0
cmp byte [0xbce468], 3
je 0x53f8a2
mov eax, dword [0x559800]
mov eax, dword [eax]
call fcn.00490fec
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x23c]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x244], eax
mov byte [ebp - 0x240], 6
lea edx, [ebp - 0x244]
xor ecx, ecx
mov eax, 0x53f8fc
call fcn.00409e28
cmp dword [ebp - 4], 0
jne 0x53f781
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x244], eax
mov byte [ebp - 0x240], 6
lea edx, [ebp - 0x244]
xor ecx, ecx
mov eax, 0x53f8fc
call fcn.00409e28
jmp 0x53f7c8
push dword [ebp - 4]
push 0x53f908
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x244], eax
mov byte [ebp - 0x240], 6
lea edx, [ebp - 0x244]
xor ecx, ecx
mov eax, 0x53f8fc
call fcn.00409e28
push dword [ebp - 0x248]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404560
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x244], eax
mov byte [ebp - 0x240], 6
lea edx, [ebp - 0x244]
xor ecx, ecx
mov eax, 0x53f8fc
call fcn.00409e28
mov eax, dword [0x5591b8]
inc dword [eax]
mov eax, dword [0x5591b8]
mov eax, dword [eax]
mov ecx, 0xc8
cdq
idiv ecx
test edx, edx
jne 0x53f816
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
call fcn.004711a8
mov edx, dword [ebp - 0x34]
mov eax, 0x53f914
call fcn.004047e4
test eax, eax
jg 0x53f898
mov edx, dword [ebp - 0x34]
mov eax, 0x53f950
call fcn.004047e4
test eax, eax
jg 0x53f898
lea edx, [ebp - 0x24c]
mov eax, dword [ebp - 0x34]
call fcn.0040863c
mov eax, dword [ebp - 0x24c]
push eax
lea edx, [ebp - 0x250]
mov eax, 0x53f9ac
call fcn.0040863c
mov eax, dword [ebp - 0x250]
pop edx
call fcn.004047e4
test eax, eax
jg 0x53f898
mov eax, dword [ebp - 8]
push eax
push edi
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.0053f9c4
push edi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.0053f61c
mov dword [ebp - 0x10], 0x3e8
inc dword [ebp - 0x30]
dec ebx
jne 0x53f6ee
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
push 0x53f8ea
lea eax, [ebp - 0x250]
mov edx, 3
call fcn.00404204
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404204
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404204
ret