Function at 0x5002c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x50034
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5046e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
call fcn.0004fdfc
test eax, eax
jne 0x503ff
mov eax, 0x400
call fcn.00019248
mov dword [ebp - 0x2c], eax
mov eax, 0x400
call fcn.00019248
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x503f8
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
lea eax, [ebp - 0x30]
call fcn.00025394
mov eax, dword [ebp - 0x30]
call fcn.00014090
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x20], 0
jne 0x500f7
lea edx, [ebp - 0x34]
mov eax, 0x5047c
call fcn.00031d88
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x10]
call fcn.0002b100
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 4]
call fcn.00019bc4
jmp 0x503c6
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
call fcn.00018abc
mov eax, dword [ebp - 0x2c]
call fcn.00018ad4
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x2c]
call fcn.00018af0
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x502e0
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
call fcn.00018adc
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
call fcn.00025394
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
call fcn.000144c4
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.0001d8bc
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
pop ecx
call fcn.000145b4
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x502d9
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
mov eax, dword [ebp - 0x28]
call fcn.00014538
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x501ba
cmp dword [ebp - 8], 0
jne 0x501ef
lea edx, [ebp - 0x4c]
mov eax, 0x50490
call fcn.00031d88
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x10]
call fcn.0002b100
mov edx, dword [ebp - 0x50]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 4]
call fcn.00019bc4
jmp 0x502b7
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
call fcn.00018abc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x504a4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.00018af4
test eax, eax
jne 0x50223
cmp dword [ebp - 0x24], 1
je 0x50281
lea edx, [ebp - 0x5c]
mov eax, 0x504b8
call fcn.00031d88
push dword [ebp - 0x5c]
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x10]
call fcn.0002b100
push dword [ebp - 0x60]
lea edx, [ebp - 0x64]
mov eax, 0x504cc
call fcn.00031d88
push dword [ebp - 0x64]
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.00013f8c
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
call fcn.000144c4
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x28]
call fcn.00014554
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 4]
call fcn.000199bc
jmp 0x502b7
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x18]
call fcn.00018adc
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
call fcn.0001e660
mov eax, dword [ebp - 0x68]
push eax
lea edx, [ebp - 0x70]
mov eax, 0x504d4
call fcn.0001e660
mov edx, dword [ebp - 0x70]
pop eax
call fcn.00014660
jne 0x502b7
mov byte [ebp - 0x11], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50319
cmp dword [ebp - 8], 0
je 0x502d3
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 8], eax
ret
cmp dword [ebp - 0x10], 0x103
je 0x50319
lea edx, [ebp - 0x74]
mov eax, 0x504f0
call fcn.00031d88
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x10]
call fcn.0002b100
mov edx, dword [ebp - 0x78]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 4]
call fcn.00019bc4
inc dword [ebp - 0xc]
cmp byte [ebp - 0x11], 0
jne 0x5035d
cmp dword [ebp - 0x10], 0
jne 0x5035d
mov eax, dword [0x2a91f4]
mov eax, dword [eax]
mov edx, dword [0x2a938c]
add eax, dword [edx]
add eax, 0x64
cdq
push edx
push eax
mov eax, dword [ebp - 0xc]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x50355
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x500fc
jmp 0x5035d
pop edx
pop eax
jle 0x500fc
cmp byte [ebp - 0x11], 0
je 0x503c6
mov eax, 1
call fcn.0004ff1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x50390
lea edx, [ebp - 0x7c]
mov eax, 0x50504
call fcn.00031d88
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 4]
call fcn.00019a5c
jmp 0x503c6
lea edx, [ebp - 0x80]
mov eax, 0x50514
call fcn.00031d88
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x10]
call fcn.0002b100
mov edx, dword [ebp - 0x84]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 4]
call fcn.00019bc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503ff
cmp dword [ebp - 0x20], 0
je 0x503e2
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
call fcn.00019258
lea eax, [ebp - 0x2c]
call fcn.00019258
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50475
lea eax, [ebp - 0x84]
mov edx, 5
call fcn.00013c60
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.0001432c
lea eax, [ebp - 0x64]
mov edx, 4
call fcn.00013c60
lea eax, [ebp - 0x54]
call fcn.00014314
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00013c60
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.0001432c
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00013c60
lea eax, [ebp - 0x28]
call fcn.00014314
ret