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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42089b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [0x427550]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
xor eax, ebp
push esi
mov esi, ecx
mov dword [esp + 0x130], eax
mov eax, dword [esi + 4]
test eax, eax
push edi
mov dword [esp + 0x14], 0x7530
jne 0x40c469
push 0x42158d
lea ecx, [esp + 0x14]
call fcn.00409cf0
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esp + 0x144], 0
lea ecx, [esp + 0x10]
je 0x40c2ca
push 0x37
push str.Mozilla_4.0__compatible__MSIE_5.00__Windows_98__Rising_
jmp 0x40c2d1
push 0x33
push str.Mozilla_4.0__compatible__MSIE_5.00__Windows_98__IE_
call fcn.00406dc0
mov eax, dword [esi + 0x30]
test eax, eax
push 0
je 0x40c2f2
mov eax, dword [esp + 0x14]
push str._local_
push str.proxy
push 3
push eax
jmp 0x40c2ff
mov ecx, dword [esi + 0x54]
mov edx, dword [esp + 0x14]
push 0
push 0
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 4], eax
jne 0x40c339
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x144], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40c42f
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x40c354
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0x46
push eax
mov dword [esp + 0x28], 1
call ebx
xor edx, edx
mov dword [esp + 0x1c], edx
xor eax, eax
mov dword [esp + 0x20], edx
mov byte [esp + 0x28], dl
mov ecx, 0x40
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x30]
test eax, eax
mov dword [esp + 0x24], edx
je 0x40c3ed
movzx eax, word [esi + 0x2c]
mov ecx, dword [esi + 0x28]
push eax
push ecx
lea edx, [esp + 0x30]
push str._s:_d
push edx
mov dword [esp + 0x2c], 3
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esi + 4]
add esp, 0x10
push 0xc
lea ecx, [esp + 0x20]
push ecx
push 0x26
lea eax, [esp + 0x34]
push edx
mov dword [esp + 0x30], eax
call ebx
test eax, eax
jne 0x40c3ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.0040b720
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x144], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40c42f
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 0x18]
push eax
push 2
push ecx
call ebx
test eax, eax
jne 0x40c440
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.0040b720
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x144], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c439
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x40c536
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x144], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c469
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 8]
test eax, eax
jne 0x40c531
mov eax, dword [esi + 0x18]
test eax, eax
push 0
push 0
push 3
jne 0x40c496
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 4]
xor ecx, ecx
mov cx, word [esi + 0x14]
push 0
push 0
push ecx
push eax
push edx
jmp 0x40c4ad
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x10]
push eax
xor eax, eax
mov ax, word [esi + 0x14]
push ecx
mov ecx, dword [esi + 4]
push eax
push edx
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 8], eax
je 0x40c51d
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x40c51d
mov eax, dword [esi + 8]
push 4
lea edx, [esp + 0x18]
push edx
push 5
push eax
call ebx
test eax, eax
je 0x40c51d
mov edx, dword [esi + 8]
push 4
lea ecx, [esp + 0x18]
push ecx
push 6
push edx
call ebx
test eax, eax
je 0x40c51d
mov eax, dword [esi + 0x34]
test eax, eax
je 0x40c531
mov eax, dword [esi + 0x38]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
mov eax, dword [esi + 8]
push 0x2b
push eax
call ebx
test eax, eax
je 0x40c51d
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
mov ecx, dword [esi + 8]
push eax
push 0x2c
push ecx
call ebx
test eax, eax
jne 0x40c531
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.0040b720
xor eax, eax
jmp 0x40c536
mov eax, 1
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x134]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413041
mov esp, ebp
pop ebp
ret 4