Function at 0x40440a
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447f2b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x8120
call fcn.00440630
mov eax, dword [0x459040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x806c]
mov byte [ebp - 4], 1
call fcn.0040270e
lea eax, [ebp - 0x806c]
push eax
lea esi, [ebp - 0x8034]
mov byte [ebp - 4], 2
call fcn.00403a05
xor eax, eax
mov dword [ebp - 0x8038], 7
mov dword [ebp - 0x803c], ebx
mov word [ebp - 0x804c], ax
mov eax, esi
push eax
mov byte [ebp - 4], 4
call fcn.00404e17
cmp eax, 0xffffffff
je 0x4044ab
mov eax, esi
push eax
call fcn.00404e17
add eax, 3
push eax
xor edi, edi
call fcn.00402731
push 0x2f
pop edi
push 1
lea eax, [ebp - 0x80a8]
push eax
xor eax, eax
lea ecx, [ebp - 0x8034]
mov dword [ebp - 0x80a8], edi
call fcn.00402ccc
cmp eax, 0xffffffff
je 0x404573
push 1
lea eax, [ebp - 0x80a8]
push eax
xor eax, eax
lea ecx, [ebp - 0x8034]
mov dword [ebp - 0x80a8], edi
call fcn.00402ccc
lea ebx, [eax + 1]
push 0xffffffffffffffff
lea eax, [ebp - 0x8034]
push eax
lea esi, [ebp - 0x80d8]
call fcn.00404e41
push 0xffffffffffffffff
lea ecx, [ebp - 0x8050]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 5
call fcn.00403109
push ebx
push 1
mov byte [ebp - 4], 4
call fcn.00402dd3
push 1
lea eax, [ebp - 0x80a8]
push eax
xor eax, eax
lea ecx, [ebp - 0x8034]
mov dword [ebp - 0x80a8], edi
call fcn.00402ccc
push eax
lea eax, [ebp - 0x8034]
push eax
lea esi, [ebp - 0x8114]
call fcn.00404e41
push 0xffffffffffffffff
lea ecx, [ebp - 0x8034]
push ecx
mov byte [ebp - 4], 6
call fcn.00403109
push ebx
push 1
mov byte [ebp - 4], 4
call fcn.00402dd3
push ebx
cmp dword [ebp - 0x8020], ebx
jne 0x40459f
push 1
lea esi, [ebp - 0x8050]
call fcn.00402dd3
push ebx
push 1
lea esi, [ebp - 0x8034]
call fcn.00402dd3
push ebx
push 1
jmp 0x404ab5
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x80b4], esi
cmp esi, ebx
jne 0x4045f8
cmp dword [ebp + 0x10], ebx
je 0x4045f5
push 0x44c884
lea ecx, [ebp - 0x80d8]
call fcn.0040409c
mov byte [ebp - 4], 7
lea eax, [ebp - 0x80d8]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0x10]
call fcn.00405777
push ebx
push 1
lea ecx, [ebp - 0x80d8]
call fcn.00404100
push ebx
jmp 0x40457c
xor eax, eax
mov dword [ebp - 0x80e0], ebx
lea edi, [ebp - 0x80dc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x80f0]
push eax
lea eax, [ebp - 0x80e0]
push eax
push 0x32
push esi
mov dword [ebp - 0x80f0], 8
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x404651
test byte [ebp - 0x80e0], 1
jne 0x404651
push 8
lea eax, [ebp - 0x80e0]
push eax
push 0x32
push esi
mov dword [ebp - 0x80e0], 1
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp dword [ebp - 0x801c], 8
mov eax, dword [ebp - 0x8030]
jae 0x404666
lea eax, [ebp - 0x8030]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [ebp - 0x80a8], edi
cmp edi, ebx
jne 0x4046ab
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp + 0x10], ebx
je 0x4045f5
push 0x44c884
lea ecx, [ebp - 0x80d8]
call fcn.0040409c
mov byte [ebp - 4], 8
jmp 0x4045ce
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x4046e9
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x80b4]
call esi
cmp dword [ebp + 0x10], ebx
je 0x4045f5
push 0x44c884
lea ecx, [ebp - 0x80d8]
call fcn.0040409c
mov byte [ebp - 4], 9
jmp 0x4045ce
mov dword [ebp - 0x80f8], 0x44c888
mov dword [ebp - 0x80f4], ebx
cmp dword [ebp - 0x803c], ebx
jbe 0x40471a
cmp dword [ebp - 0x8038], 8
jb 0x404712
mov eax, dword [ebp - 0x804c]
jmp 0x40471c
lea eax, [ebp - 0x804c]
jmp 0x40471c
xor eax, eax
push ebx
push 0x84400000
lea ecx, [ebp - 0x80f8]
push ecx
push ebx
push str.HTTP_1.1
push eax
push 0x44c8a4
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x80b0], eax
cmp eax, ebx
jne 0x404779
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x80b4]
call esi
cmp dword [ebp + 0x10], ebx
je 0x4045f5
push 0x44c884
lea ecx, [ebp - 0x80d8]
call fcn.0040409c
mov byte [ebp - 4], 0xa
jmp 0x4045ce
push str.Host
lea eax, [ebp - 0x8130]
call fcn.0040270e
push 0x44c8ac
push eax
lea eax, [ebp - 0x8114]
push eax
mov byte [ebp - 4], 0xb
call fcn.00403950
add esp, 0xc
lea ecx, [ebp - 0x8034]
push ecx
push eax
lea eax, [ebp - 0x80a4]
push eax
mov byte [ebp - 4], 0xc
call fcn.00403996
add esp, 0xc
push ebx
push 1
lea esi, [ebp - 0x8114]
call fcn.00402dd3
push ebx
push 1
lea esi, [ebp - 0x8130]
mov byte [ebp - 4], 0xf
call fcn.00402dd3
cmp dword [ebp - 0x808c], 8
mov eax, dword [ebp - 0x80a0]
jae 0x4047f2
lea eax, [ebp - 0x80a0]
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov edi, 0x20000000
push edi
push 0xffffffffffffffff
push eax
push dword [ebp - 0x80b0]
call esi
push edi
mov edi, dword [ebp - 0x80b0]
push 0xffffffffffffffff
push str.Content_Length:_0
push edi
call esi
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x40488a
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x80a8]
call esi
push dword [ebp - 0x80b4]
call esi
cmp dword [ebp + 0x10], ebx
je 0x404882
push 0x44c884
lea ecx, [ebp - 0x80d8]
call fcn.0040409c
lea eax, [ebp - 0x80d8]
push eax
push ebx
push ebx
push ebx
mov byte [ebp - 4], 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0x10]
call fcn.00405777
push ebx
push 1
lea ecx, [ebp - 0x80d8]
call fcn.00404100
xor edi, edi
inc edi
jmp 0x404a8c
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [ebp - 0x80e4]
push eax
lea eax, [ebp - 0x80ac]
push eax
lea eax, [ebp - 0x80b8]
push eax
push 0x20000013
push edi
mov dword [ebp - 0x80b8], ebx
mov dword [ebp - 0x80e8], ebx
mov dword [ebp - 0x80e4], ebx
mov dword [ebp - 0x80ac], 4
call esi
lea eax, [ebp - 0x80e4]
push eax
lea eax, [ebp - 0x80ac]
push eax
lea eax, [ebp - 0x80e8]
push eax
push 0x20000005
push edi
call esi
push 0xf
pop edi
push ebx
lea ecx, [ebp - 0x8088]
mov dword [ebp - 0x80bc], ebx
mov dword [ebp - 0x80ac], ebx
mov dword [ebp - 0x8070], edi
call fcn.004040e4
mov esi, 0x8000
push esi
lea eax, [ebp - 0x8018]
push ebx
push eax
mov byte [ebp - 4], 0x11
call fcn.00436e80
add esp, 0xc
lea eax, [ebp - 0x80ac]
push eax
push esi
lea eax, [ebp - 0x8018]
push eax
push dword [ebp - 0x80b0]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
je 0x4049eb
cmp dword [ebp - 0x80ac], ebx
jbe 0x404a32
push dword [ebp - 0x80ac]
lea eax, [ebp - 0x8018]
push eax
lea eax, [ebp - 0x8088]
call fcn.00404d7d
mov eax, dword [ebp - 0x80ac]
add dword [ebp - 0x80bc], eax
cmp byte [ebp + 0xc], bl
je 0x404921
cmp dword [ebp + 0x10], ebx
je 0x404921
push ebx
lea ecx, [ebp - 0x80d8]
mov dword [ebp - 0x80ec], eax
mov dword [ebp - 0x80c0], edi
call fcn.004040e4
push dword [ebp - 0x80ec]
lea eax, [ebp - 0x8018]
push eax
lea ecx, [ebp - 0x80d8]
call fcn.00404007
lea eax, [ebp - 0x80d8]
push eax
push dword [ebp - 0x80bc]
mov byte [ebp - 4], 0x12
push dword [ebp - 0x80e8]
lea ecx, [ebp + 0x10]
push dword [ebp - 0x80b8]
push ebx
call fcn.00405777
push ebx
push 1
lea ecx, [ebp - 0x80d8]
mov byte [ebp - 4], 0x11
call fcn.00404100
jmp 0x404921
cmp dword [ebp + 0x10], ebx
je 0x404a5e
push 0x44c884
lea ecx, [ebp - 0x80d8]
call fcn.0040409c
lea eax, [ebp - 0x80d8]
push eax
push ebx
push ebx
mov byte [ebp - 4], 0x13
push dword [ebp - 0x80b8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0x10]
call fcn.00405777
push ebx
push 1
lea ecx, [ebp - 0x80d8]
call fcn.00404100
jmp 0x404a5e
cmp byte [ebp + 0xc], bl
jne 0x404a5e
cmp dword [ebp + 0x10], ebx
je 0x404a5e
lea eax, [ebp - 0x8088]
push eax
push dword [ebp - 0x8074]
lea ecx, [ebp + 0x10]
push dword [ebp - 0x8074]
push dword [ebp - 0x80b8]
push ebx
call fcn.00405777
push dword [ebp - 0x80b0]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x80a8]
call esi
push dword [ebp - 0x80b4]
call esi
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x8088]
call fcn.00404100
push ebx
push edi
lea esi, [ebp - 0x80a4]
call fcn.00402dd3
push ebx
push edi
lea esi, [ebp - 0x8050]
call fcn.00402dd3
push ebx
push edi
lea esi, [ebp - 0x8034]
call fcn.00402dd3
push ebx
push edi
lea esi, [ebp - 0x806c]
call fcn.00402dd3
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 0x10]
call fcn.00402f1d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043419d
leave
ret 0x28