Function at 0x404140
Capabilities:
Check http status code
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
sub esp, 0x448
mov eax, dword [0x419040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x448], ecx
mov dword [ebp - 4], 0x80004005
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x420], 0
lea ecx, [ebp - 0x434]
call fcn.00404720
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x434]
call fcn.00404790
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x4041e2
jmp 0x404508
push 0
push 0x416614
push 0x416614
push 0
push 0x416650
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x40420f
jmp 0x404508
mov dword [ebp - 0x43c], 0x9c40
push 4
lea ecx, [ebp - 0x43c]
push ecx
push 2
mov edx, dword [ebp - 0x440]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x404245
jmp 0x404508
mov dword [ebp - 0x43c], 0x9c40
push 4
lea eax, [ebp - 0x43c]
push eax
push 6
mov ecx, dword [ebp - 0x440]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x40427b
jmp 0x404508
push 0
push 0
push 3
push 0x416614
push 0x416614
lea ecx, [ebp - 0x434]
call fcn.004048b0
push eax
lea ecx, [ebp - 0x434]
call fcn.00404850
push eax
mov edx, dword [ebp - 0x440]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jne 0x4042c4
jmp 0x404508
push 0
push 0x84000000
push 0
push 0
push 0
lea ecx, [ebp - 0x434]
call fcn.00404880
push eax
push 0
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4042fa
jmp 0x404508
push 0xa0000000
push 0x416628
call fcn.00413aba
add esp, 4
push eax
push 0x416628
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x404342
jmp 0x404508
mov dword [ebp - 8], 4
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 0x20000013
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x404379
jmp 0x404508
cmp dword [ebp - 0x418], 0xc8
je 0x404398
mov eax, dword [ebp - 0x418]
or eax, 0x80190000
mov dword [ebp - 4], eax
jmp 0x404508
mov dword [ebp - 8], 4
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x414]
push edx
push 0x20000005
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x4043d4
mov dword [ebp - 0x414], 0x19000
mov ecx, dword [ebp - 0x414]
xor edx, edx
push edx
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004046b0
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00404620
cmp dword [ebp + 0x14], 0
je 0x40442f
mov eax, dword [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x414]
push ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x40442f
mov dword [ebp - 4], 0x80004004
jmp 0x404508
lea eax, [ebp - 8]
push eax
push 0x400
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x40445d
jmp 0x404508
cmp dword [ebp - 8], 0
jne 0x404468
jmp 0x404501
mov eax, dword [ebp - 0x420]
add eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x414]
jbe 0x404488
mov ecx, dword [ebp - 0x414]
sub ecx, dword [ebp - 0x420]
mov dword [ebp - 8], ecx
push 0
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004045a0
mov ecx, dword [ebp - 0x420]
add ecx, dword [ebp - 8]
mov dword [ebp - 0x420], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x420]
mov dword [edx], eax
cmp dword [ebp + 0x14], 0
je 0x4044ef
mov ecx, dword [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x414]
push edx
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x4044ef
mov dword [ebp - 4], 0x80004004
jmp 0x404508
mov ecx, dword [ebp - 0x420]
cmp ecx, dword [ebp - 0x414]
jb 0x40442f
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0x80004005
jne 0x404519
call fcn.00404070
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
je 0x404530
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x438], 0
je 0x404550
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x438], 0
cmp dword [ebp - 0x440], 0
je 0x404570
mov ecx, dword [ebp - 0x440]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x440], 0
mov edx, dword [ebp - 4]
mov dword [ebp - 0x444], edx
lea ecx, [ebp - 0x434]
call fcn.00404760
mov eax, dword [ebp - 0x444]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413a25
mov esp, ebp
pop ebp
ret 0x10