Function at 0x45ef82
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47a252
call fcn.00465b54
sub esp, 0xc8
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
call fcn.0045e386
test al, al
jne 0x45efb4
call fcn.0045e39f
test al, al
mov eax, SysReAllocString
je 0x45efb9
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push ecx
push 0xf003f
push esi
push 0x497b18
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x45f198
lea ecx, [ebp - 0x14]
call fcn.004036d7
mov ecx, dword [ebp - 0x1c]
cmp eax, esi
mov dword [ebp - 0x14], ecx
jne 0x45f198
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 0x497b10
push ecx
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
je 0x45f01a
mov dword [ebp - 0x1c], esi
push 1
pop eax
cmp dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
jb 0x45f198
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, 0x104
push dword [ebp - 0x18]
lea eax, [ebp - 0xd4]
push 0x497b08
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0xb4]
push dword [ebp - 0x18]
push 0x497afc
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x22]
mov edi, 0x47b4b0
lea ecx, [ebp - 0x54]
push 0
push eax
mov dword [ebp - 0x54], 0x47b4b8
mov dword [ebp - 0x34], edi
call fcn.0040580f
lea eax, [ebp - 0x21]
push 0
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x7c], 0x47b4b8
mov dword [ebp - 0x5c], edi
call fcn.0040580f
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.00406e9d
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 3
call fcn.0040650f
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 0x45f144
lea eax, [ebp - 0x88]
push esi
push eax
lea ecx, [ebp - 0x54]
call fcn.00406e9d
mov dword [ebp - 0x20], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 4
call fcn.0040650f
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.00405c43
cmp byte [ebp - 0xd], 0
je 0x45f144
mov byte [ebp - 0xd], 1
jmp 0x45f148
and byte [ebp - 0xd], 0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.00405c43
cmp byte [ebp - 0xd], 0
je 0x45f16f
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 8]
call fcn.0041d11d
pop ecx
test al, al
pop ecx
jne 0x45f1b7
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00407f77
and byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00407f77
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jbe 0x45f034
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x45f1a6
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 [0x47b518]
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.00406639
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00407f77
and byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00407f77
lea ecx, [ebp - 0x14]
call fcn.004036d7
jmp 0x45f1a6