Function at 0x460f44
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47cd46
call fcn.00467ed8
sub esp, 0xc8
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
call fcn.00460348
test al, al
jne 0x460f76
call fcn.00460361
test al, al
mov eax, SysReAllocString
je 0x460f7b
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push ecx
push 0xf003f
push esi
push 0x49bea0
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x46115a
lea ecx, [ebp - 0x14]
call fcn.00403677
mov ecx, dword [ebp - 0x1c]
cmp eax, esi
mov dword [ebp - 0x14], ecx
jne 0x46115a
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], esi
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push 0x49be98
push ecx
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
je 0x460fdc
mov dword [ebp - 0x1c], esi
push 1
pop eax
cmp dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
jb 0x46115a
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, 0x104
push dword [ebp - 0x18]
lea eax, [ebp - 0xd4]
push 0x49be90
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0xb4]
push dword [ebp - 0x18]
push 0x49be84
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x22]
mov edi, 0x47e4b0
lea ecx, [ebp - 0x54]
push 0
push eax
mov dword [ebp - 0x54], 0x47e4b8
mov dword [ebp - 0x34], edi
call fcn.0040590e
lea eax, [ebp - 0x21]
push 0
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x7c], 0x47e4b8
mov dword [ebp - 0x5c], edi
call fcn.0040590e
lea eax, [ebp - 0x94]
push esi
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call fcn.00406c57
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 3
call fcn.00406617
lea ecx, [ebp - 0x28]
mov dword [edi + 8], eax
push ecx
push eax
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
and dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0xd4]
push 0
push eax
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x461106
lea eax, [ebp - 0x88]
push esi
push eax
lea ecx, [ebp - 0x54]
call fcn.00406c57
mov dword [ebp - 0x20], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 4
call fcn.00406617
mov ecx, dword [ebp - 0x20]
and dword [ebp - 0x20], 0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xb4]
push 0
push eax
push dword [ebp - 0x14]
call edi
test eax, eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
sete byte [ebp - 0xd]
call fcn.00405d74
cmp byte [ebp - 0xd], 0
je 0x461106
mov byte [ebp - 0xd], 1
jmp 0x46110a
and byte [ebp - 0xd], 0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.00405d74
cmp byte [ebp - 0xd], 0
je 0x461131
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 8]
call fcn.0041d77b
pop ecx
test al, al
pop ecx
jne 0x461179
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00407d51
and byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00407d51
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jbe 0x460ff6
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x461168
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
push dword [0x47e51c]
lea eax, [ebp - 0x54]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x50]
and eax, ecx
push 0
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 4]
call fcn.00406741
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00407d51
and byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00407d51
lea ecx, [ebp - 0x14]
call fcn.00403677
jmp 0x461168