Function at 0x403a80
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x41c]
sub esp, 0x448
mov dword [ebp - 0xc], ebx
xor ebx, ebx
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x41c], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.WININET.DLL_InternetGetConnectedState
sub esp, 8
xor edx, edx
test eax, eax
jne 0x403ad0
mov ebx, dword [ebp - 0xc]
mov eax, edx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x421], 0
xor ebx, ebx
xor esi, esi
mov dword [esp], edi
call sub.msvcrt.dll_remove
mov dword [esp], 0x2e
call fcn.00407a40
mov dword [esp], eax
xor ecx, ecx
xor edx, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.WININET.DLL_InternetOpenA
sub esp, 0x14
test eax, eax
mov ebx, eax
je 0x403bfe
xor edx, edx
mov ecx, 1
mov eax, 3
mov dword [esp + 0x1c], ecx
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x18], edx
mov edx, 0x50
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.WININET.DLL_InternetConnectA
mov dword [ebp - 0x428], eax
sub esp, 0x20
test eax, eax
je 0x403bf3
mov ecx, 1
xor eax, eax
xor esi, esi
mov dword [esp + 0x1c], ecx
mov edx, 0x400000
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, 0x4244b5
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov esi, dword [ebp - 0x428]
mov dword [esp], esi
call sub.WININET.DLL_HttpOpenRequestA
sub esp, 0x20
test eax, eax
mov esi, eax
je 0x403be2
mov dword [esp], esi
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x10], eax
xor edx, edx
xor eax, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sub.WININET.DLL_HttpSendRequestA
sub esp, 0x14
test eax, eax
jne 0x403c14
mov dword [esp], esi
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov edi, dword [ebp - 0x428]
mov dword [esp], edi
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov dword [esp], ebx
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
movzx edx, byte [ebp - 0x421]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
mov eax, edx
pop ebp
ret
mov byte [ebp - 0x421], 1
mov edx, 0x4244b9
mov dword [esp], edi
mov dword [esp + 4], edx
call sub.msvcrt.dll_fopen
mov edi, eax
jmp 0x403c68
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x403c9c
xor ecx, ecx
mov byte [eax + ebp - 0x418], cl
mov eax, 1
mov dword [esp + 0xc], edi
mov edx, dword [ebp - 0x420]
lea ecx, [ebp - 0x418]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 8], edx
call sub.msvcrt.dll_fwrite
test edi, edi
je 0x403bd7
mov dword [esp], esi
lea edx, [ebp - 0x420]
mov eax, 0x3ff
mov dword [esp + 0xc], edx
lea ecx, [ebp - 0x418]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call sub.WININET.DLL_InternetReadFile
sub esp, 0x10
test eax, eax
jne 0x403c30
test edi, edi
je 0x403bd7
mov dword [esp], edi
call sub.msvcrt.dll_fclose
jmp 0x403bd7