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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x4452a0]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0x500
push 0
push 0x457db0
call fcn.00402860
add esp, 0xc
push 0x500
push 0
push 0x4578b0
call fcn.00402860
add esp, 0xc
mov dword [ebp - 4], 0x20119
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push str.SOFTWAREClientsStartMenuInternet
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40df59
mov dword [ebp - 0xc], 0xffffffff
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40e236
mov dword [ebp - 0x49c], 0
jmp 0x40df74
mov eax, dword [ebp - 0x49c]
add eax, 1
mov dword [ebp - 0x49c], eax
mov dword [ebp - 0x2c], 0x118
push 0x230
push 0
lea ecx, [ebp - 0x260]
push ecx
call fcn.00402860
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x49c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40dfdf
cmp dword [ebp - 0x49c], 0
jne 0x40dfda
mov dword [ebp - 0xc], 0xfffffffe
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40e225
push str.shellopencommand
lea edx, [ebp - 0x260]
push edx
push 0x434104
lea eax, [ebp - 0x498]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x264], 0
jmp 0x40e01b
mov ecx, dword [ebp - 0x264]
add ecx, 1
mov dword [ebp - 0x264], ecx
mov edx, dword [ebp - 0x264]
movzx eax, word [ebp + edx*2 - 0x260]
test eax, eax
je 0x40e067
mov ecx, dword [ebp - 0x264]
movzx edx, word [ebp + ecx*2 - 0x260]
cmp edx, 0x2e
je 0x40e053
mov eax, dword [ebp - 0x264]
movzx ecx, word [ebp + eax*2 - 0x260]
cmp ecx, 0x2d
jne 0x40e065
xor edx, edx
mov eax, dword [ebp - 0x264]
mov word [ebp + eax*2 - 0x260], dx
jmp 0x40e067
jmp 0x40e00c
mov dword [ebp - 0x24], 0x118
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x49c]
shl edx, 7
add edx, 0x457db0
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
lea edx, [ebp - 0x498]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e0c5
mov dword [ebp - 0xc], 0xfffffffd
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40e225
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0x434180
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e10e
mov dword [ebp - 0xc], 0xfffffffc
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e225
lea edx, [ebp - 0x260]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x264], 0
jmp 0x40e132
mov eax, dword [ebp - 0x264]
add eax, 1
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x264]
movzx edx, word [ebp + ecx*2 - 0x260]
test edx, edx
je 0x40e169
mov eax, dword [ebp - 0x264]
movzx ecx, word [ebp + eax*2 - 0x260]
cmp ecx, 0x5c
jne 0x40e167
mov edx, dword [ebp - 0x264]
lea eax, [ebp + edx*2 - 0x25e]
mov dword [ebp - 0x1c], eax
jmp 0x40e123
mov dword [ebp - 0x264], 0
jmp 0x40e184
mov ecx, dword [ebp - 0x264]
add ecx, 1
mov dword [ebp - 0x264], ecx
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
test ecx, ecx
je 0x40e1fc
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x41
jl 0x40e1d6
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x5a
jg 0x40e1d6
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
add ecx, 0x20
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + ecx*2]
cmp eax, 0x22
jne 0x40e1f7
xor ecx, ecx
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
mov word [eax + edx*2], cx
jmp 0x40e175
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x49c]
shl edx, 7
add edx, 0x4578b0
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40df65
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e236
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00402850
mov esp, ebp
pop ebp
ret