Function at 0x4086d0
Capabilities:
Check internet connectivity via wininet
Create process on windows
Hide graphical window
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64c
mov eax, dword [0x410018]
xor eax, esp
mov dword [esp + 0x648], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0x28]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], 0
mov ecx, dword [eax]
push 0x40ce28
push eax
call dword [ecx]
mov esi, eax
push 0
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40873b
test byte [esp + 0x24], 0x20
mov byte [esp + 0x1b], 1
je 0x408740
mov byte [esp + 0x1b], 0
test esi, esi
js 0x408bc4
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 0x28], 0xffffffff
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
cmp dword [esp + 0x20], 1
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x10], 0
jne 0x40888a
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
push 0
push str..html
push 4
push 0x100
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
mov esi, eax
test esi, esi
js 0x408886
mov ecx, str.Internet_Explorer
lea eax, [esp + 0x40]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4087f6
test dx, dx
je 0x4087f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4087f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4087d0
xor eax, eax
jmp 0x4087fb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408808
mov dword [esp + 0x20], eax
jmp 0x408886
mov ecx, str.Firefox
lea eax, [esp + 0x40]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408837
test dx, dx
je 0x408833
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408837
add eax, 4
add ecx, 4
test dx, dx
jne 0x408811
xor ecx, ecx
jmp 0x40883c
sbb ecx, ecx
or ecx, 1
movzx eax, byte [esp + 0x10]
mov edx, 1
test ecx, ecx
cmove eax, edx
mov byte [esp + 0x10], al
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x44c]
push eax
push 0
push str..html
push 2
push 0
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
mov esi, eax
mov eax, dword [esp + 0x20]
xor ecx, ecx
test esi, esi
cmovs eax, ecx
mov dword [esp + 0x20], eax
push 0
call edi
cmp byte [esp + 0x1b], 0
je 0x408959
cmp word [esp + 0x28], 0xffff
jne 0x408959
test ebx, ebx
je 0x4088af
push dword [esp + 0x10]
push ebx
jmp 0x408990
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x4c]
mov esi, eax
test esi, esi
js 0x4089ce
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
js 0x4089b3
push dword [esp + 0xc]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
call ebx
mov ecx, dword [esp + 0xc]
cmp word [ecx + eax*2 - 2], 0x2f
je 0x408919
push 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0x2f
call fcn.004091c0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
call fcn.00409170
push dword [esp + 0xc]
call ebx
mov ecx, dword [esp + 0xc]
cmp word [ecx + eax*2 - 2], 0x2f
je 0x4089b3
push 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0x2f
call fcn.004091c0
push dword [esp + 0x14]
call edi
jmp 0x4089ce
test ebx, ebx
je 0x408964
push dword [esp + 0x10]
push ebx
jmp 0x408990
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x3c]
push str.text_html
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_PathIsContentTypeW]
test eax, eax
je 0x4089bb
push dword [esp + 0x10]
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call fcn.00408540
mov ecx, dword [esp + 0xc]
mov ebx, eax
cmp ecx, dword [ebx]
je 0x4089b3
push ecx
call edi
mov ecx, dword [ebx]
mov dword [esp + 0xc], ecx
mov dword [ebx], 0
push dword [esp + 0x14]
call edi
jmp 0x4089ce
push dword [esp + 0xc]
call edi
mov dword [esp + 0xc], 0
mov esi, 0x80070057
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [esp + 0xc], 0
je 0x408bbe
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x408a39
push eax
lea eax, [esp + 0x24c]
push str._contextId_s
push eax
call fcn.00409110
lea ecx, [esp + 0x254]
add esp, 0xc
lea edx, [ecx + 2]
jmp 0x408a10
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408a10
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x24c]
push eax
lea ecx, [esp + 0x14]
call fcn.004091c0
test eax, eax
js 0x408bdd
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0
cmp eax, 1
jne 0x408a8c
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push eax
push 0
push dword [esp + 0x14]
lea eax, [esp + 0x454]
push eax
push str.open
push 0
call ebx
cmp eax, 0x20
ja 0x408bbe
push 1
push 0
push dword [esp + 0x14]
push str.IEXPLORE
push str.open
push 0
call ebx
jmp 0x408bbe
test eax, eax
jne 0x408bbe
mov ecx, dword [0x41146c]
test ecx, ecx
je 0x408ab9
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push ecx
call dword [eax + 0x94]
mov esi, eax
test esi, esi
js 0x408ab9
cmp dword [esp + 0x10], 0
jne 0x408ad4
push 0x41146c
push 0x40c370
push 0x15
push 0
push 0x40c360
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x408b8d
cmp dword [0x41146c], 0
je 0x408bbe
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [0x41146c]
lea edx, [esp + 0x30]
mov ecx, dword [eax]
push edx
push edx
push edx
push edx
push dword [esp + 0x1c]
push eax
call dword [ecx + 0x2c]
mov esi, eax
test esi, esi
js 0x408b8d
mov eax, dword [0x41146c]
push 0xffffffffffffffff
mov ecx, dword [eax]
push eax
call dword [ecx + 0xa4]
mov esi, eax
test esi, esi
js 0x408b8d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x408b48
mov eax, dword [0x41146c]
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x94]
mov esi, eax
mov eax, dword [esp + 0x10]
test esi, esi
js 0x408b8d
test eax, eax
je 0x408bbe
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x408b5f
push 5
jmp 0x408b61
push 1
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x43
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x408bbe
mov ecx, dword [0x41146c]
test ecx, ecx
je 0x408ba7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x41146c], 0
push 1
push 0
push 0
push dword [esp + 0x18]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [esp + 0xc]
call edi
mov ecx, dword [esp + 0x654]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a340
mov esp, ebp
pop ebp
ret 0xc
push eax
call fcn.00406260
int3