Function at 0x40f990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488ac6
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x4ae6e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x374], 0
push str.iexplore.exe
lea ecx, [ebp - 0x338]
call fcn.004029f0
mov dword [ebp - 4], 0
mov byte [ebp - 0x4a4], 0
push 0x104
push 0
lea eax, [ebp - 0x4a3]
push eax
call fcn.0043f9d0
add esp, 0xc
mov dword [ebp - 0x320], 0x105
mov dword [ebp - 0x33c], 0x104
call fcn.004084c0
movzx ecx, al
test ecx, ecx
je 0x40fbf6
lea edx, [ebp - 0x360]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice_
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fbf1
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0
push str.Progid
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fbf1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x354]
call fcn.004029f0
mov byte [ebp - 4], 1
push str._shellopencommand_
lea ecx, [ebp - 0x354]
call fcn.00411830
mov dword [ebp - 0x320], 0x104
lea ecx, [ebp - 0x358]
push ecx
push 1
push 0
lea ecx, [ebp - 0x354]
call fcn.004118b0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fbd5
lea edx, [ebp - 0x320]
push edx
lea eax, [ebp - 0x31c]
push eax
push 0
push 0
push 0x49c10f
mov ecx, dword [ebp - 0x358]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fbc8
lea edx, [ebp - 0x31c]
push edx
lea ecx, [ebp - 0x338]
call fcn.00411810
push 0
push 0x22
lea ecx, [ebp - 0x338]
call fcn.00402b00
mov dword [ebp - 0x364], eax
mov eax, dword [ebp - 0x364]
cmp eax, dword [0x49e294]
je 0x40fbc8
mov ecx, dword [ebp - 0x364]
add ecx, 1
push ecx
push 0x22
lea ecx, [ebp - 0x338]
call fcn.00402b00
mov dword [ebp - 0x370], eax
mov edx, dword [ebp - 0x370]
cmp edx, dword [0x49e294]
je 0x40fbc8
mov eax, dword [ebp - 0x370]
push eax
lea ecx, [ebp - 0x380]
push ecx
lea edx, [ebp - 0x37c]
push edx
lea ecx, [ebp - 0x338]
call fcn.00411880
mov ecx, eax
call fcn.00411f70
mov eax, dword [eax]
push eax
push 1
lea ecx, [ebp - 0x378]
push ecx
mov edx, dword [ebp - 0x364]
push edx
lea eax, [ebp - 0x388]
push eax
lea ecx, [ebp - 0x390]
push ecx
lea ecx, [ebp - 0x338]
call fcn.00411880
mov ecx, eax
call fcn.00411f70
mov ecx, eax
call fcn.00411f70
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x338]
call fcn.00414010
mov eax, dword [ebp - 0x358]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x360]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x354]
call fcn.00402a80
jmp 0x40fd50
lea edx, [ebp - 0x35c]
push edx
push 0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40fd50
lea eax, [ebp - 0x358]
push eax
push 1
push 0
push str.http_shellopencommand
mov ecx, dword [ebp - 0x35c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fd43
lea edx, [ebp - 0x33c]
push edx
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0x49c131
mov ecx, dword [ebp - 0x358]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fd36
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x338]
call fcn.00411810
push 0
push 0x22
lea ecx, [ebp - 0x338]
call fcn.00402b00
mov dword [ebp - 0x368], eax
mov eax, dword [ebp - 0x368]
cmp eax, dword [0x49e294]
je 0x40fd36
mov ecx, dword [ebp - 0x368]
add ecx, 1
push ecx
push 0x22
lea ecx, [ebp - 0x338]
call fcn.00402b00
mov dword [ebp - 0x36c], eax
mov edx, dword [ebp - 0x36c]
cmp edx, dword [0x49e294]
je 0x40fd36
mov eax, dword [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x398]
push ecx
lea edx, [ebp - 0x39c]
push edx
lea ecx, [ebp - 0x338]
call fcn.00411880
mov ecx, eax
call fcn.00411f70
mov eax, dword [eax]
push eax
push 1
lea ecx, [ebp - 0x384]
push ecx
mov edx, dword [ebp - 0x368]
push edx
lea eax, [ebp - 0x394]
push eax
lea ecx, [ebp - 0x38c]
push ecx
lea ecx, [ebp - 0x338]
call fcn.00411880
mov ecx, eax
call fcn.00411f70
mov ecx, eax
call fcn.00411f70
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x338]
call fcn.00414010
mov eax, dword [ebp - 0x358]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x35c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x338]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402a30
mov eax, dword [ebp - 0x374]
or eax, 1
mov dword [ebp - 0x374], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x338]
call fcn.00402a80
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c12e
mov esp, ebp
pop ebp
ret