Function at 0x40246f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xf8
mov eax, 0x432a75
call fcn.0041cfad
mov esi, 0x208
push esi
call fcn.00418764
pop ecx
mov ebx, eax
push esi
mov dword [ebp - 0x3c], ebx
call fcn.00418764
pop ecx
push esi
mov dword [ebp - 0x2c], eax
call fcn.00418764
pop ecx
push esi
mov dword [ebp - 0x34], eax
call fcn.00418764
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop ecx
mov edi, str.SOFTWAREAsk.com.tmp_
push edi
push ebx
mov dword [ebp - 0x38], eax
call esi
push edi
push dword [ebp - 0x2c]
call esi
push edi
push dword [ebp - 0x34]
call esi
push edi
mov edi, dword [ebp - 0x38]
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Macro
push ebx
call esi
push str.Custom
push dword [ebp - 0x2c]
call esi
push str.Installer
push dword [ebp - 0x34]
call esi
push str.General
push edi
call esi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], ebx
xor ebx, ebx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x20019
push ebx
push dword [ebp + eax*4 - 0x54]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402728
cmp dword [ebp - 0x24], ebx
je 0x402728
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x24]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x1c], ebx
je 0x40271f
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00418764
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
pop ecx
add eax, 2
push eax
call fcn.00418764
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x1c], ebx
jbe 0x40270d
mov eax, dword [ebp - 0x14]
push 4
pop ecx
mov byte [eax], bl
inc eax
dec ecx
jne 0x4025b3
mov eax, dword [ebp - 0x18]
push 4
pop ecx
mov byte [eax], bl
inc eax
dec ecx
jne 0x4025bf
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
add eax, 2
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x58]
push eax
push ebx
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
jne 0x4026fe
xor edi, edi
inc edi
cmp dword [ebp - 0x10], ebx
je 0x402609
cmp dword [ebp - 0x10], edi
jne 0x402652
push dword [ebp - 0x14]
lea esi, [ebp - 0xac]
call fcn.00405586
push dword [ebp - 0x18]
lea esi, [ebp - 0x74]
mov dword [ebp - 4], ebx
call fcn.00405586
lea eax, [ebp - 0xac]
push eax
push dword [ebp + 0x10]
mov eax, esi
mov byte [ebp - 4], 1
call fcn.0040bd24
push ebx
push edi
call fcn.00405d7c
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea esi, [ebp - 0xac]
call fcn.00405d7c
cmp dword [ebp - 0x10], 2
jne 0x4026a8
push dword [ebp - 0x14]
lea esi, [ebp - 0x90]
call fcn.00405586
push dword [ebp - 0x18]
lea esi, [ebp - 0xe4]
mov dword [ebp - 4], 2
call fcn.00405586
lea eax, [ebp - 0x90]
push eax
push dword [ebp + 0xc]
mov eax, esi
mov byte [ebp - 4], 3
call fcn.0040bd24
push ebx
push edi
call fcn.00405d7c
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea esi, [ebp - 0x90]
call fcn.00405d7c
cmp dword [ebp - 0x10], 3
jne 0x4026fe
push dword [ebp - 0x14]
lea esi, [ebp - 0x100]
call fcn.00405586
push dword [ebp - 0x18]
lea esi, [ebp - 0xc8]
mov dword [ebp - 4], 4
call fcn.00405586
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 8]
mov eax, esi
mov byte [ebp - 4], 5
call fcn.0040bd24
push ebx
push edi
call fcn.00405d7c
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea esi, [ebp - 0x100]
call fcn.00405d7c
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x1c]
jb 0x4025ad
push dword [ebp - 0x14]
call fcn.0041a352
pop ecx
push dword [ebp - 0x18]
call fcn.0041a352
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jl 0x402519
push dword [ebp - 0x3c]
call fcn.0041a352
pop ecx
push dword [ebp - 0x2c]
call fcn.0041a352
pop ecx
push dword [ebp - 0x34]
call fcn.0041a352
pop ecx
push dword [ebp - 0x38]
call fcn.0041a352
pop ecx
xor eax, eax
call fcn.0041d04c
ret 0xc