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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x4462a0]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0x500
push 0
push 0x458c90
call fcn.00402860
add esp, 0xc
push 0x500
push 0
push 0x458790
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 0x40e319
mov dword [ebp - 0xc], 0xffffffff
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40e5f6
mov dword [ebp - 0x49c], 0
jmp 0x40e334
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 0x40e39f
cmp dword [ebp - 0x49c], 0
jne 0x40e39a
mov dword [ebp - 0xc], 0xfffffffe
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40e5e5
push str.shellopencommand
lea edx, [ebp - 0x260]
push edx
push 0x435104
lea eax, [ebp - 0x498]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x264], 0
jmp 0x40e3db
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 0x40e427
mov ecx, dword [ebp - 0x264]
movzx edx, word [ebp + ecx*2 - 0x260]
cmp edx, 0x2e
je 0x40e413
mov eax, dword [ebp - 0x264]
movzx ecx, word [ebp + eax*2 - 0x260]
cmp ecx, 0x2d
jne 0x40e425
xor edx, edx
mov eax, dword [ebp - 0x264]
mov word [ebp + eax*2 - 0x260], dx
jmp 0x40e427
jmp 0x40e3cc
mov dword [ebp - 0x24], 0x118
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x49c]
shl edx, 7
add edx, 0x458c90
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 0x40e485
mov dword [ebp - 0xc], 0xfffffffd
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40e5e5
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0x435180
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 0x40e4ce
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 0x40e5e5
lea edx, [ebp - 0x260]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x264], 0
jmp 0x40e4f2
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 0x40e529
mov eax, dword [ebp - 0x264]
movzx ecx, word [ebp + eax*2 - 0x260]
cmp ecx, 0x5c
jne 0x40e527
mov edx, dword [ebp - 0x264]
lea eax, [ebp + edx*2 - 0x25e]
mov dword [ebp - 0x1c], eax
jmp 0x40e4e3
mov dword [ebp - 0x264], 0
jmp 0x40e544
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 0x40e5bc
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x41
jl 0x40e596
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x5a
jg 0x40e596
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 0x40e5b7
xor ecx, ecx
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
mov word [eax + edx*2], cx
jmp 0x40e535
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x49c]
shl edx, 7
add edx, 0x458790
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e325
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e5f6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00402850
mov esp, ebp
pop ebp
ret