Function at 0x46a9f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483b03
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4b6018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x40]
call fcn.0046a830
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 1
je 0x46aaa8
cmp dword [ebp - 0x10], 2
je 0x46aaa8
lea edx, [ebp + 0x10]
push edx
mov ecx, dword [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov eax, dword [ebp - 0x34]
or eax, 1
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp + 8]
jmp 0x46ac4d
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
mov edx, dword [ebp - 0x40]
cmp dword [edx], 0
je 0x46ab15
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov ecx, dword [ebp - 0x34]
or ecx, 1
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp + 8]
jmp 0x46ac4d
lea edx, [ebp - 0x14]
push edx
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.mfc90.dll_Ordinal_265
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 0
je 0x46ab94
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call sub.mfc90.dll_Ordinal_266
add esp, 4
mov edx, dword [ebp - 0x40]
cmp dword [edx], 0
je 0x46abb5
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
jne 0x46ac0a
lea ecx, [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov edx, dword [ebp - 0x34]
or edx, 1
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp + 8]
jmp 0x46ac4d
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov ecx, dword [ebp - 0x34]
or ecx, 1
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc