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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x4217fc]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
xor eax, ebp
push esi
mov esi, ecx
mov dword [esp + 0x128], eax
mov eax, dword [esi + 4]
test eax, eax
push edi
mov dword [esp + 0x10], 0x7530
jne 0x40384b
mov eax, dword [esi + 0x34]
test eax, eax
mov eax, dword [esi + 0x10]
push 0
je 0x403792
push str._local_
push str.proxy
push 3
jmp 0x40379a
mov ecx, dword [esi + 0x58]
push 0
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 4], eax
jne 0x4037c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x54], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret
xor edx, edx
mov dword [esp + 0x14], edx
xor eax, eax
mov dword [esp + 0x18], edx
mov byte [esp + 0x20], dl
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x34]
test eax, eax
mov dword [esp + 0x1c], edx
je 0x403834
movzx eax, word [esi + 0x30]
mov ecx, dword [esi + 0x2c]
push eax
push ecx
lea edx, [esp + 0x28]
push str._s:_d
push edx
mov dword [esp + 0x24], 3
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esi + 4]
add esp, 0x10
push 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x26
lea eax, [esp + 0x2c]
push edx
mov dword [esp + 0x28], eax
call ebx
test eax, eax
je 0x4038ff
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 0x14]
push eax
push 2
push ecx
call ebx
test eax, eax
je 0x4038ff
mov eax, dword [esi + 8]
test eax, eax
jne 0x403926
mov eax, dword [esi + 0x1c]
test eax, eax
push 0
push 0
push 3
jne 0x403878
mov eax, dword [esi + 0x14]
xor edx, edx
mov dx, word [esi + 0x18]
push 0
push 0
push edx
push eax
mov eax, dword [esi + 4]
push eax
jmp 0x40388f
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x14]
push eax
push ecx
xor ecx, ecx
mov cx, word [esi + 0x18]
push ecx
push edx
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 8], eax
je 0x4038ff
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x4038ff
mov ecx, dword [esi + 8]
push 4
lea eax, [esp + 0x14]
push eax
push 5
push ecx
call ebx
test eax, eax
je 0x4038ff
mov eax, dword [esi + 8]
push 4
lea edx, [esp + 0x14]
push edx
push 6
push eax
call ebx
test eax, eax
je 0x4038ff
mov eax, dword [esi + 0x38]
test eax, eax
je 0x403926
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
mov ecx, dword [esi + 8]
push eax
push 0x2b
push ecx
call ebx
test eax, eax
je 0x4038ff
mov eax, dword [esi + 0x40]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi + 8]
inc ecx
push ecx
push eax
push 0x2c
push edx
call ebx
test eax, eax
jne 0x403926
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00403450
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041277f
mov esp, ebp
pop ebp
ret