Function at 0x4186f0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
push edi
mov dword [ebp - 0x1d0], ecx
mov dword [ebp - 4], 0x7530
mov eax, dword [ebp - 0x1d0]
cmp dword [eax + 4], 0
jne 0x4188da
mov ecx, dword [ebp - 0x1d0]
cmp dword [ecx + 0x30], 0
je 0x418747
push 0
push 0x434844
push 0x43483c
push 3
push str.Mozilla_4.0__compatible__MSIE_5.00__Windows_98__Rising_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edx, dword [ebp - 0x1d0]
mov dword [edx + 4], eax
jmp 0x41876b
push 0
push 0
push 0
mov eax, dword [ebp - 0x1d0]
mov ecx, dword [eax + 0x54]
push ecx
push str.Mozilla_4.0__compatible__MSIE_5.00__Windows_98__Rising_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edx, dword [ebp - 0x1d0]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x1d0]
cmp dword [eax + 4], 0
jne 0x41878d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1d0]
mov dword [ecx + 0x50], eax
xor eax, eax
jmp 0x418b5d
push 0xc
push 0
lea edx, [ebp - 0x10]
push edx
call fcn.0041c540
add esp, 0xc
mov eax, dword [ebp - 0x1d0]
cmp dword [eax + 0x30], 0
je 0x41889d
mov byte [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10], 3
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x1a0], edx
lea eax, [ebp - 0x198]
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x1a0]
push ecx
lea ecx, [ebp - 0x19c]
call fcn.0041bc50
lea edx, [ebp - 0x19c]
mov dword [ebp - 0x1a8], edx
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax]
mov dword [ebp - 0x1ac], ecx
mov edx, dword [ebp - 0x1d0]
movzx eax, word [edx + 0x2c]
push eax
mov ecx, dword [ebp - 0x1ac]
push ecx
push 0x4347fc
lea edx, [ebp - 0x118]
push edx
call fcn.0041c783
add esp, 0x10
lea eax, [ebp - 0x198]
cmp dword [ebp - 0x19c], eax
je 0x418857
mov ecx, dword [ebp - 0x19c]
push ecx
call fcn.0041c5a0
add esp, 4
lea edx, [ebp - 0x118]
mov dword [ebp - 0xc], edx
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x26
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x41889d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1d0]
mov dword [ecx + 0x50], eax
mov ecx, dword [ebp - 0x1d0]
call fcn.0041bbe0
xor eax, eax
jmp 0x418b5d
push 4
lea edx, [ebp - 4]
push edx
push 2
mov eax, dword [ebp - 0x1d0]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x4188da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x1d0]
mov dword [edx + 0x50], eax
mov ecx, dword [ebp - 0x1d0]
call fcn.0041bbe0
xor eax, eax
jmp 0x418b5d
mov eax, dword [ebp - 0x1d0]
cmp dword [eax + 8], 0
jne 0x418b58
mov ecx, dword [ebp - 0x1d0]
cmp dword [ecx + 0x18], 0
jne 0x41893c
mov edx, dword [ebp - 0x1d0]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x1b0], eax
push 0
push 0
push 3
push 0
push 0
mov ecx, dword [ebp - 0x1d0]
mov dx, word [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x1b0]
push eax
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, dword [ebp - 0x1d0]
mov dword [ecx + 8], eax
jmp 0x4189a8
mov edx, dword [ebp - 0x1d0]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1b8], edx
mov eax, dword [ebp - 0x1d0]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1bc], ecx
push 0
push 0
push 3
mov edx, dword [ebp - 0x1b4]
push edx
mov eax, dword [ebp - 0x1b8]
push eax
mov ecx, dword [ebp - 0x1d0]
mov dx, word [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x1bc]
push eax
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, dword [ebp - 0x1d0]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x1d0]
cmp dword [edx + 8], 0
jne 0x4189d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1d0]
mov dword [ecx + 0x50], eax
mov ecx, dword [ebp - 0x1d0]
call fcn.0041bbe0
xor eax, eax
jmp 0x418b5d
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x418a02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x1d0]
mov dword [edx + 0x50], eax
mov ecx, dword [ebp - 0x1d0]
call fcn.0041bbe0
xor eax, eax
jmp 0x418b5d
push 4
lea eax, [ebp - 4]
push eax
push 5
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x418a3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1d0]
mov dword [ecx + 0x50], eax
mov ecx, dword [ebp - 0x1d0]
call fcn.0041bbe0
xor eax, eax
jmp 0x418b5d
push 4
lea edx, [ebp - 4]
push edx
push 6
mov eax, dword [ebp - 0x1d0]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x418a7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x1d0]
mov dword [edx + 0x50], eax
mov ecx, dword [ebp - 0x1d0]
call fcn.0041bbe0
xor eax, eax
jmp 0x418b5d
mov eax, dword [ebp - 0x1d0]
cmp dword [eax + 0x34], 0
je 0x418b58
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ecx + 0x38]
mov eax, dword [edx - 8]
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x1c4], edx
mov eax, dword [ebp - 0x1c0]
add eax, 1
push eax
mov ecx, dword [ebp - 0x1c4]
push ecx
push 0x2b
mov edx, dword [ebp - 0x1d0]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x418af2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1d0]
mov dword [ecx + 0x50], eax
mov ecx, dword [ebp - 0x1d0]
call fcn.0041bbe0
xor eax, eax
jmp 0x418b5d
mov edx, dword [ebp - 0x1d0]
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x1c8], ecx
mov edx, dword [ebp - 0x1d0]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0x1cc], eax
mov ecx, dword [ebp - 0x1c8]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x1cc]
push edx
push 0x2c
mov eax, dword [ebp - 0x1d0]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x418b58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x1d0]
mov dword [edx + 0x50], eax
mov ecx, dword [ebp - 0x1d0]
call fcn.0041bbe0
xor eax, eax
jmp 0x418b5d
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret