Function at 0x537424
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x49
push 0
push 0
dec ecx
jne 0x53742d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00406b44
mov eax, dword [ebp - 8]
call fcn.00406b44
xor eax, eax
push ebp
push 0x5376ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00406a60
cmp byte [ebp + 0xc], 1
jne 0x537477
mov edi, 0xf013f
jmp 0x53747c
mov edi, 0xf003f
lea eax, [ebp - 0x10]
push eax
push edi
push 0
mov eax, dword [ebp - 4]
call fcn.004075c4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5376c1
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryInfoKeyW
mov ebx, dword [ebp - 0x18]
dec ebx
test ebx, ebx
jl 0x5376b8
inc ebx
xor esi, esi
lea eax, [ebp - 0x21e]
xor ecx, ecx
mov edx, 0x1fe
call fcn.004049c8
mov dword [ebp - 0x20], 0xff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x21e]
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyExW
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x21e]
mov ecx, 0xff
call fcn.00407668
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.0041d61c
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x224]
call fcn.0041d238
mov eax, dword [ebp - 0x224]
push eax
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 8]
call fcn.0041d61c
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.0041d238
mov edx, dword [ebp - 0x230]
pop eax
call fcn.00407950
jne 0x53759a
push dword [ebp - 4]
push dword [ebp - 8]
push 0x537708
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.004078a0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x5376c1
lea eax, [ebp - 0x14]
push eax
push edi
push 0
push dword [ebp - 4]
lea eax, [ebp - 0x240]
lea edx, [ebp - 0x21e]
mov ecx, 0xff
call fcn.00407668
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x23c]
call fcn.0041d61c
push dword [ebp - 0x23c]
push 0x537708
lea eax, [ebp - 0x238]
mov edx, 3
call fcn.004078a0
mov eax, dword [ebp - 0x238]
call fcn.004075c4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5376b0
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryInfoKeyW
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp dword [ebp - 0x1c], 0
je 0x5376b0
movzx eax, byte [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x250]
lea edx, [ebp - 0x21e]
mov ecx, 0xff
call fcn.00407668
mov eax, dword [ebp - 0x250]
lea edx, [ebp - 0x24c]
call fcn.0041d61c
push dword [ebp - 0x24c]
push 0x537708
lea eax, [ebp - 0x248]
mov edx, 3
call fcn.004078a0
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.0041d61c
mov edx, dword [ebp - 0x244]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00537424
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x5376c1
inc esi
dec ebx
jne 0x5374d2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5376f3
lea eax, [ebp - 0x250]
mov edx, 0xc
call fcn.00406ac0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ac0
ret