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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x4422a0]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0x500
push 0
push 0x454c90
call fcn.00402740
add esp, 0xc
push 0x500
push 0
push 0x454790
call fcn.00402740
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 0x40e119
mov dword [ebp - 0xc], 0xffffffff
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40e3f6
mov dword [ebp - 0x49c], 0
jmp 0x40e134
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.00402740
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 0x40e19f
cmp dword [ebp - 0x49c], 0
jne 0x40e19a
mov dword [ebp - 0xc], 0xfffffffe
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40e3e5
push str.shellopencommand
lea edx, [ebp - 0x260]
push edx
push 0x4310b4
lea eax, [ebp - 0x498]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x264], 0
jmp 0x40e1db
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 0x40e227
mov ecx, dword [ebp - 0x264]
movzx edx, word [ebp + ecx*2 - 0x260]
cmp edx, 0x2e
je 0x40e213
mov eax, dword [ebp - 0x264]
movzx ecx, word [ebp + eax*2 - 0x260]
cmp ecx, 0x2d
jne 0x40e225
xor edx, edx
mov eax, dword [ebp - 0x264]
mov word [ebp + eax*2 - 0x260], dx
jmp 0x40e227
jmp 0x40e1cc
mov dword [ebp - 0x24], 0x118
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x49c]
shl edx, 7
add edx, 0x454c90
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 0x40e285
mov dword [ebp - 0xc], 0xfffffffd
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40e3e5
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0x431130
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 0x40e2ce
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 0x40e3e5
lea edx, [ebp - 0x260]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x264], 0
jmp 0x40e2f2
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 0x40e329
mov eax, dword [ebp - 0x264]
movzx ecx, word [ebp + eax*2 - 0x260]
cmp ecx, 0x5c
jne 0x40e327
mov edx, dword [ebp - 0x264]
lea eax, [ebp + edx*2 - 0x25e]
mov dword [ebp - 0x1c], eax
jmp 0x40e2e3
mov dword [ebp - 0x264], 0
jmp 0x40e344
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 0x40e3bc
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x41
jl 0x40e396
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x5a
jg 0x40e396
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 0x40e3b7
xor ecx, ecx
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
mov word [eax + edx*2], cx
jmp 0x40e335
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x49c]
shl edx, 7
add edx, 0x454790
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e125
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e3f6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00402730
mov esp, ebp
pop ebp
ret