Function at 0x46ca2a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3839
mov eax, dword fs:[0]
push eax
sub esp, 0x39c
mov eax, dword [0x524330]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x368], 0
mov al, byte [0x4fe4e2]
mov byte [ebp - 0x244], al
push 0x103
push 0
lea eax, [ebp - 0x243]
push eax
call fcn.004bc450
add esp, 0xc
mov dword [ebp - 0x28], 0x104
and dword [ebp - 0x13c], 0
mov dword [ebp - 0x364], 0xff
call fcn.00498191
push eax
lea ecx, [ebp - 0x350]
call fcn.00403ced
and dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
jne 0x46cab9
mov dword [ebp - 0x10], 0x20019
jmp 0x46cac4
mov eax, dword [ebp + 0x14]
or eax, 0x20019
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46ccad
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x13c]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x13c], 0
je 0x46ccad
and dword [ebp - 0x24], 0
jmp 0x46cb46
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x13c]
jae 0x46ccad
mov dword [ebp - 0x1c], 0xff
lea eax, [ebp - 0x358]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x46cca8
mov eax, dword [ebp - 0x350]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x374], eax
xor eax, eax
cmp dword [ebp - 0x374], 0
sete al
movzx eax, al
test eax, eax
jne 0x46cc29
mov eax, 0x4fe648
test eax, eax
jne 0x46cbc1
and dword [ebp - 0x378], 0
jmp 0x46cc13
mov dword [ebp - 0x38c], 0x4fe648
mov eax, dword [ebp - 0x38c]
inc eax
mov dword [ebp - 0x390], eax
mov eax, dword [ebp - 0x38c]
mov al, byte [eax]
mov byte [ebp - 0x391], al
inc dword [ebp - 0x38c]
cmp byte [ebp - 0x391], 0
jne 0x46cbd8
mov eax, dword [ebp - 0x38c]
sub eax, dword [ebp - 0x390]
mov dword [ebp - 0x398], eax
mov eax, dword [ebp - 0x398]
mov dword [ebp - 0x378], eax
push dword [ebp - 0x378]
push 0x4fe648
lea ecx, [ebp - 0x350]
call fcn.00403e1c
lea eax, [ebp - 0x34c]
test eax, eax
jne 0x46cc3c
and dword [ebp - 0x37c], 0
jmp 0x46cc90
lea eax, [ebp - 0x34c]
mov dword [ebp - 0x39c], eax
mov eax, dword [ebp - 0x39c]
inc eax
mov dword [ebp - 0x3a0], eax
mov eax, dword [ebp - 0x39c]
mov al, byte [eax]
mov byte [ebp - 0x3a1], al
inc dword [ebp - 0x39c]
cmp byte [ebp - 0x3a1], 0
jne 0x46cc55
mov eax, dword [ebp - 0x39c]
sub eax, dword [ebp - 0x3a0]
mov dword [ebp - 0x3a8], eax
mov eax, dword [ebp - 0x3a8]
mov dword [ebp - 0x37c], eax
push dword [ebp - 0x37c]
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x350]
call fcn.00403e1c
jmp 0x46cb3f
mov eax, dword [ebp - 0x350]
sub eax, 0x10
mov dword [ebp - 0x380], eax
push dword [ebp - 0x380]
call fcn.004042f4
pop ecx
mov dword [ebp - 0x384], eax
mov eax, dword [ebp - 0x384]
add eax, 0x10
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x368]
or eax, 1
mov dword [ebp - 0x368], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x350]
sub eax, 0x10
mov dword [ebp - 0x388], eax
mov ecx, dword [ebp - 0x388]
call fcn.0040110c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.004bc439
leave
ret