Function at 0x46faf0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c9e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x868
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x46fb51
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004041c0
mov al, byte [ebp - 0x10]
jmp 0x46fd16
push 0
push 0
push 0
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x24], 0
jbe 0x46fcd4
mov dword [ebp - 0x1c], 0
jmp 0x46fb95
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x24]
jae 0x46fcd2
mov dword [ebp - 0x2c], 0x104
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x46fcab
xor eax, eax
mov word [ebp - 0x874], ax
push 0x616
push 0
lea ecx, [ebp - 0x872]
push ecx
call fcn.00516d90
add esp, 0xc
lea edx, [ebp - 0x25c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0x5973c4
lea ecx, [ebp - 0x874]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
lea ecx, [ebp - 0x874]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x46fc9f
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x874]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea edx, [ebp - 0x54]
push edx
call fcn.0046fa30
add esp, 0x10
lea ecx, [ebp - 0x54]
call fcn.00404120
movzx eax, al
test eax, eax
jne 0x46fc97
push 0
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x54]
call fcn.004041e0
cmp eax, 0xffffffff
je 0x46fc97
mov byte [ebp - 0xf], 1
lea ecx, [ebp - 0x54]
call fcn.004041c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004041c0
mov al, byte [ebp - 0xf]
jmp 0x46fd16
lea ecx, [ebp - 0x54]
call fcn.004041c0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46fccd
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004041c0
mov al, byte [ebp - 0x11]
jmp 0x46fd16
jmp 0x46fb8c
jmp 0x46fcf6
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004041c0
mov al, byte [ebp - 0xd]
jmp 0x46fd16
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0xe], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004041c0
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret