Function at 0x46cd23
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3869
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x980
mov eax, dword [0x524330]
xor eax, ebp
mov dword [ebp - 0x44], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
and dword [ebp - 0x968], 0
call fcn.00498191
push eax
lea ecx, [ebp - 0x14]
call fcn.00403ced
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp dword [ebp + 0x18], 0
jne 0x46cd94
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
jmp 0x46cdb2
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0x18]
or eax, 0x20019
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x46cf4e
mov al, byte [0x4fe4e3]
mov byte [ebp - 0x148], al
push 0xfe
push 0
lea eax, [ebp - 0x147]
push eax
call fcn.004bc450
add esp, 0xc
mov dword [ebp - 0x34], 0xff
and dword [ebp - 0x40], 0
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x95c]
push eax
lea eax, [ebp - 0x960]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x40]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x38], eax
mov al, byte [0x4fe4e6]
mov byte [ebp - 0x958], al
push 0x7ff
push 0
lea eax, [ebp - 0x957]
push eax
call fcn.004bc450
add esp, 0xc
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x14c], 4
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46cf45
push dword [ebp - 0x14c]
call fcn.004bffac
pop ecx
mov dword [ebp - 0x964], eax
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x964]
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46cf39
cmp dword [ebp - 0x20], 1
jne 0x46cf39
cmp dword [ebp - 0x964], 0
jne 0x46ced1
and dword [ebp - 0x974], 0
jmp 0x46cf25
mov eax, dword [ebp - 0x964]
mov dword [ebp - 0x984], eax
mov eax, dword [ebp - 0x984]
inc eax
mov dword [ebp - 0x988], eax
mov eax, dword [ebp - 0x984]
mov al, byte [eax]
mov byte [ebp - 0x989], al
inc dword [ebp - 0x984]
cmp byte [ebp - 0x989], 0
jne 0x46ceea
mov eax, dword [ebp - 0x984]
sub eax, dword [ebp - 0x988]
mov dword [ebp - 0x990], eax
mov eax, dword [ebp - 0x990]
mov dword [ebp - 0x974], eax
push dword [ebp - 0x974]
push dword [ebp - 0x964]
lea ecx, [ebp - 0x14]
call fcn.00403e1c
push dword [ebp - 0x964]
call fcn.004bdbcd
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46cf5a
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x978], eax
push dword [ebp - 0x978]
call fcn.004042f4
pop ecx
mov dword [ebp - 0x97c], eax
mov eax, dword [ebp - 0x97c]
add eax, 0x10
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x968]
or eax, 1
mov dword [ebp - 0x968], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x980], eax
mov ecx, dword [ebp - 0x980]
call fcn.0040110c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x44]
xor ecx, ebp
call fcn.004bc439
leave
ret