Function at 0x5292a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [edx]
mov edi, dword [edx + 4]
mov esi, ecx
mov dword [esp + 0x28], edx
lea ecx, [esp + 0x1c]
mov ebp, dword [eax]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
push 0
push 0
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call sub.advapi32.dll_RegQueryInfoKeyW
test eax, eax
mov dword [esp + 0x24], edi
je 0x529308
mov ebx, eax
xor ebp, ebp
mov edi, 0x80000000
mov dword [esp + 0x18], eax
jmp 0x529499
mov eax, dword [esp + 0xc]
mov dword [esp + 4], 2
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
je 0x529370
mov ebx, dword [esp + 0x14]
cmp ebx, 0x3fffffff
ja 0x529535
add ebx, ebx
js 0x529535
movzx eax, byte [0x5a11e8]
mov eax, dword [0x5a1188]
test eax, eax
jne 0x52935a
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x52953a
mov dword [0x5a1188], eax
push ebx
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
mov dword [esp + 4], eax
je 0x52953a
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov dword [esp], ecx
je 0x5293c2
lea ebx, [esp + 0xc]
js 0x529535
movzx eax, byte [0x5a11e8]
mov eax, dword [0x5a1188]
test eax, eax
jne 0x5293a7
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x5293b5
mov dword [0x5a1188], eax
mov ecx, dword [esp]
push ecx
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
jne 0x5293cb
mov edx, dword [esp]
mov ecx, 1
call fcn.00531970
mov eax, 1
lea ebx, [esp + 0xc]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0x80000001
push edx
mov dword [esp + 0xc], eax
push eax
push ecx
push 0
push ebx
push dword [esp + 0x18]
push edi
push ebp
call sub.advapi32.dll_RegEnumValueW
cmp eax, 0xc0000425
je 0x529442
mov ebx, eax
cmp eax, 0x103
mov eax, dword [esp]
mov ecx, dword [esp + 8]
je 0x529449
test ebx, ebx
jne 0x5294ce
mov edx, dword [esp + 4]
lea ecx, [esp + 0x2c]
push dword [esp + 0xc]
call fcn.00448610
add esp, 4
mov edi, dword [esp + 0x2c]
cmp edi, 0x80000000
jne 0x5294e5
mov dword [esp + 0x10], 0x80000000
mov ebx, 0xd
jmp 0x529442
mov eax, dword [esp]
mov ecx, dword [esp + 8]
xor ebp, ebp
test eax, eax
je 0x52945e
push ecx
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x52948c
push dword [esp + 4]
push 0
push dword [0x5a1188]
mov dword [esp + 0x10], ebp
mov ebp, edx
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, ebp
mov ebp, dword [esp + 4]
mov eax, 0x80000001
cmp edi, 0x80000001
je 0x5294a7
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
inc ecx
mov dword [eax + 4], ecx
mov eax, edi
mov dword [esi], eax
mov eax, dword [esp]
mov dword [esi + 4], ebp
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x14], edx
mov byte [esi + 0x18], al
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x10], 0x80000000
xor ebp, ebp
test eax, eax
jne 0x52944f
jmp 0x52945e
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
cmp eax, 0xc
jae 0x52950c
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x52946e
jmp 0x52948c
mov ebx, 0xde
test edi, edi
mov dword [esp + 0x10], 0x80000000
je 0x529442
push ebp
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x529442
call fcn.004478d0
mov ecx, 2
mov edx, ebx
call fcn.00531970
int3