Function at 0x4030c0
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466edd
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x480494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x25c], 0
lea eax, [ebp - 0x124]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x403194
lea ecx, [ebp - 0x248]
call fcn.00401e10
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetDefaultBrowserByWin7__invoke_RegOpenKeyEx_failure._errid_u_n
lea ecx, [ebp - 0x248]
push ecx
call fcn.00403df0
add esp, 0xc
lea ecx, [ebp - 0x248]
call fcn.00402190
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x473ff4
mov ecx, dword [ebp + 8]
call fcn.00401e50
mov edx, dword [ebp - 0x25c]
or edx, 1
mov dword [ebp - 0x25c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00401ed0
mov eax, dword [ebp + 8]
jmp 0x40354a
mov byte [ebp - 0x244], 0
push 0x103
push 0
lea eax, [ebp - 0x243]
push eax
call fcn.004397b0
add esp, 0xc
mov dword [ebp - 0x130], 0x104
lea ecx, [ebp - 0x130]
push ecx
lea edx, [ebp - 0x244]
push edx
push 0
push 0
push str.Progid
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x403274
lea ecx, [ebp - 0x24c]
call fcn.00401e10
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetDefaultBrowserByWin7__invoke_RegQueryValueEx_failure._errid_u_n
lea ecx, [ebp - 0x24c]
push ecx
call fcn.00403df0
add esp, 0xc
lea ecx, [ebp - 0x24c]
call fcn.00402190
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x474054
mov ecx, dword [ebp + 8]
call fcn.00401e50
mov eax, dword [ebp - 0x25c]
or eax, 1
mov dword [ebp - 0x25c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.00401ed0
mov eax, dword [ebp + 8]
jmp 0x40354a
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x11c], 0
push 0x103
push 0
lea edx, [ebp - 0x11b]
push edx
call fcn.004397b0
add esp, 0xc
mov dword [ebp - 0x120], 0x104
lea ecx, [ebp - 0x138]
call fcn.00401e10
mov dword [ebp - 4], 2
lea eax, [ebp - 0x244]
push eax
push str._s_shellopencommand
lea ecx, [ebp - 0x138]
push ecx
call fcn.00403df0
add esp, 0xc
lea edx, [ebp - 0x124]
push edx
push 1
push 0
lea ecx, [ebp - 0x138]
call fcn.00402190
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x40338b
lea ecx, [ebp - 0x250]
call fcn.00401e10
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetDefaultBrowserByWin7__invoke_RegOpenKeyEx2_failure._errid_u_n
lea eax, [ebp - 0x250]
push eax
call fcn.00403df0
add esp, 0xc
lea ecx, [ebp - 0x250]
call fcn.00402190
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x4740c4
mov ecx, dword [ebp + 8]
call fcn.00401e50
mov ecx, dword [ebp - 0x25c]
or ecx, 1
mov dword [ebp - 0x25c], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.00401ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.00401ed0
mov eax, dword [ebp + 8]
jmp 0x40354a
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x11c]
push eax
push 0
push 0
push 0x473e52
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x403450
lea ecx, [ebp - 0x254]
call fcn.00401e10
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetDefaultBrowserByWin7__invoke_RegQueryValueEx2_failure._errid_u_n
lea edx, [ebp - 0x254]
push edx
call fcn.00403df0
add esp, 0xc
lea ecx, [ebp - 0x254]
call fcn.00402190
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.iexplore.exe
mov ecx, dword [ebp + 8]
call fcn.00401e50
mov ecx, dword [ebp - 0x25c]
or ecx, 1
mov dword [ebp - 0x25c], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x254]
call fcn.00401ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.00401ed0
mov eax, dword [ebp + 8]
jmp 0x40354a
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00401e50
mov byte [ebp - 4], 5
push 0
push 0x22
lea ecx, [ebp - 0x13c]
call fcn.00403b90
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
add ecx, 1
push ecx
push 0x22
lea ecx, [ebp - 0x13c]
call fcn.00403b90
mov dword [ebp - 0x134], eax
mov edx, dword [ebp - 0x134]
sub edx, dword [ebp - 0x12c]
sub edx, 1
push edx
mov eax, dword [ebp - 0x12c]
add eax, 1
push eax
lea ecx, [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x13c]
call fcn.00402260
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x264], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x264]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00401ef0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x258]
call fcn.00401ed0
lea ecx, [ebp - 0x13c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401e30
mov edx, dword [ebp - 0x25c]
or edx, 1
mov dword [ebp - 0x25c], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x13c]
call fcn.00401ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.00401ed0
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.00437ab2
mov esp, ebp
pop ebp
ret