Function at 0x492c70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x51c920
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x20], eax
mov edi, dword [ebp + 0x810]
mov ecx, dword [ebp + 0x814]
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ebp + 0x818]
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
cmp eax, esi
jne 0x492d01
cmp edi, esi
je 0x492d21
mov eax, edi
lea edx, [eax + 2]
jmp 0x492cf0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x492cf0
sub eax, edx
sar eax, 1
je 0x492d21
cmp dword [ebp - 0x1c], esi
jne 0x492d36
cmp ebx, esi
je 0x492d21
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x492d10
sub eax, edx
sar eax, 1
jne 0x492d36
mov dword [ebp - 0x40], 0x57
push 0x5814b0
lea edx, [ebp - 0x40]
push edx
call fcn.004fd5a3
cmp dword [ebp - 0x20], esi
jne 0x492d42
mov dword [ebp - 0x20], reloc.OLEAUT32.dll_SysReAllocString
cmp edi, esi
je 0x492d8e
mov eax, edi
lea edx, [eax + 2]
jmp 0x492d50
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x492d50
sub eax, edx
sar eax, 1
je 0x492d8e
lea eax, [ebp - 0x18]
push eax
push 0x20019
push esi
push edi
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x492d94
mov dword [ebp - 0x34], eax
push 0x5814b0
lea edx, [ebp - 0x34]
push edx
call fcn.004fd5a3
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x1c], esi
jne 0x492da0
mov dword [ebp - 0x1c], reloc.OLEAUT32.dll_SysReAllocString
cmp ebx, esi
je 0x492deb
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x492db0
sub eax, edx
sar eax, 1
je 0x492deb
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov edx, ebx
call fcn.00491fb0
add esp, 8
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x492df3
mov dword [ebp - 0x48], eax
push 0x5814b0
lea eax, [ebp - 0x48]
push eax
call fcn.004fd5a3
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edi
jmp 0x492df6
mov edi, dword [ebp - 0x24]
cmp byte [ebp + 0x81c], 0
je 0x492ecf
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x30]
push ecx
push esi
push esi
push esi
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x492e33
mov dword [ebp - 0x3c], eax
push 0x5814b0
lea eax, [ebp - 0x3c]
push eax
call fcn.004fd5a3
mov dword [ebp - 0x44], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea esp, [esp]
cmp esi, dword [ebp - 0x30]
jge 0x492ecd
push 0x800
push 0
lea ecx, [ebp]
push ecx
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 0x2c], 0x800
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp]
push eax
push esi
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x492ebc
mov edx, dword [ebp + 0x81c]
push edx
lea eax, [ebp]
push eax
push edi
mov ecx, eax
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00492c70
add esp, 0x14
mov dword [ebp - 0x14], eax
test eax, eax
je 0x492eb4
mov dword [ebp - 0x4c], eax
push 0x5814b0
lea eax, [ebp - 0x4c]
push eax
call fcn.004fd5a3
add esi, 1
mov dword [ebp - 0x44], esi
jmp 0x492e40
mov dword [ebp - 0x38], eax
push 0x5814b0
lea ecx, [ebp - 0x38]
push ecx
call fcn.004fd5a3
xor esi, esi
push edi
mov ecx, dword [ebp - 0x18]
call fcn.00492a80
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x492f13
cmp edi, esi
je 0x492f23
cmp edi, dword [ebp - 0x1c]
je 0x492f23
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x492f36
cmp eax, dword [ebp - 0x20]
je 0x492f36
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x804
mov esp, ebp
pop ebp
ret