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

Disassembly:
sub esp, 0x228
mov eax, dword [0x41d004]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 8]
push ebp
push esi
push edi
push eax
push 0x20019
xor esi, esi
mov dword [esp + 0x1c], 0
push esi
push str.SoftwareClientsStartMenuInternet
push 0x80000001
mov dword [esp + 0x2c], 0
call ebx
mov ebp, eax
lea eax, [esp + 0x18]
push eax
push 0x20019
push esi
push str.SoftwareClientsStartMenuInternet
push 0x80000002
mov dword [esp + 0x38], ebp
call ebx
mov dword [esp + 0x28], eax
test eax, eax
je 0x405224
test ebp, ebp
jne 0x4053e3
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x10]
xor edi, edi
mov dword [esp + 0x10], 0x104
push edi
push edi
push edi
push edi
push eax
lea eax, [esp + 0x40]
push eax
push edi
push dword [esp + 0x30]
call ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40533c
nop word [eax + eax]
lea eax, [esp + 0x2c]
push 0x418e20
push eax
call fcn.004078b4
add esp, 8
test eax, eax
jne 0x40528c
lea eax, [esp + 0x2c]
push str.Supemium
push eax
call fcn.004078b4
add esp, 8
test eax, eax
je 0x40530a
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4052af
xor esi, esi
jmp 0x40530a
push 0x208
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [esp + 0x20], 0x208
lea eax, [esp + 0x20]
push eax
push esi
push str.shellopencommand
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [esp + 0x1c]
test eax, eax
je 0x405300
call ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
jmp 0x40530a
call ebx
test esi, esi
jne 0x4053c5
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x104
push eax
lea eax, [esp + 0x40]
inc edi
push eax
push edi
push dword [esp + 0x30]
call ebp
test eax, eax
je 0x405260
test esi, esi
jne 0x4053c5
xor edi, edi
mov dword [esp + 0x10], 0x104
push edi
push edi
push edi
push edi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
push edi
push dword [esp + 0x34]
call ebp
test eax, eax
jne 0x4053c5
nop
lea eax, [esp + 0x2c]
push 0x418e20
push eax
call fcn.004078b4
add esp, 8
test eax, eax
jne 0x40538c
lea eax, [esp + 0x2c]
push str.Supemium
push eax
call fcn.004078b4
add esp, 8
test eax, eax
je 0x40539f
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
call fcn.00405120
mov esi, eax
test esi, esi
jne 0x4053c5
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x104
push eax
lea eax, [esp + 0x40]
inc edi
push eax
push edi
push dword [esp + 0x34]
call ebp
test eax, eax
je 0x405360
cmp dword [esp + 0x24], 0
jne 0x4053d2
push dword [esp + 0x14]
call ebx
cmp dword [esp + 0x28], 0
jne 0x4053df
push dword [esp + 0x18]
call ebx
test esi, esi
jne 0x4053e7
xor eax, eax
jmp 0x405413
movzx eax, word [esi]
xor ecx, ecx
xor edx, edx
mov edi, eax
test ax, ax
je 0x40540b
cmp di, 0x5c
mov eax, ecx
movzx edi, word [esi + ecx*2 + 2]
cmovne eax, edx
inc ecx
mov edx, eax
test di, di
jne 0x4053f5
xor eax, eax
mov word [esi + edx*2], ax
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406785
add esp, 0x228
ret