Function at 0x40ad4a
Capabilities:
Check http status code
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4cc
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
test edx, edx
jne 0x40ad75
xor al, al
jmp 0x40afd0
xor eax, eax
mov dword [ebp - 0x410], 0xf
mov dword [ebp - 0x414], eax
mov byte [ebp - 0x424], al
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x4bc], eax
mov dword [ebp - 0x4b8], eax
lea eax, [ebp - 0x4c0]
push eax
call fcn.00419209
pop ecx
test eax, eax
jne 0x40adb7
xor bl, bl
jmp 0x40afaa
cmp dword [ebp - 0x410], 0x10
lea ecx, [ebp - 0x424]
push dword [ebp - 0x4bc]
cmovae ecx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x414]
push dword [ebp - 0x4c0]
add eax, ecx
cmp dword [ebp - 0x410], 0x10
lea ecx, [ebp - 0x424]
cmovae ecx, dword [ebp - 0x424]
push eax
push ecx
lea ecx, [ebp - 0x424]
call fcn.0040bf04
and dword [ebp - 0x4a4], 0
lea ecx, [ebp - 0x48c]
xorps xmm0, xmm0
push 0x4600e2
movlpd qword [ebp - 0x49c], xmm0
movlpd qword [ebp - 0x494], xmm0
call fcn.0040273d
and dword [ebp - 0x474], 0
lea ecx, [ebp - 0x470]
push 0x4600e2
call fcn.0040273d
mov eax, dword [esi + 0x88]
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x49c], eax
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x498], eax
mov dword [ebp - 0x474], eax
lea eax, [ebp - 0x424]
push eax
mov dword [ebp - 0x4a4], 1
call fcn.00402893
mov eax, dword [esi + 0x80]
lea ecx, [ebp - 0x48c]
mov dword [ebp - 0x494], eax
xor edx, edx
lea eax, [esi + 0x30]
mov dword [ebp - 0x490], edx
cmp ecx, eax
je 0x40aea6
push 0xffffffffffffffff
push edx
push eax
call fcn.00402893
xor edx, edx
lea eax, [ebp - 0x4b4]
mov dword [ebp - 0x4b4], edx
push eax
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 0x4b0], edx
mov dword [ebp - 0x4ac], edx
call fcn.0040b4f3
push dword [ebp - 0x4b0]
lea eax, [ebp - 0x454]
mov ecx, esi
push dword [ebp - 0x4b4]
push eax
call fcn.0040a93a
xor eax, eax
push eax
push eax
push eax
push eax
push str.HTTP_1.1
push eax
push str.POST
push dword [esi + 0x7c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
test esi, esi
je 0x40af6f
push dword [ebp - 0x4b0]
cmp dword [ebp - 0x440], 0x10
lea eax, [ebp - 0x454]
push dword [ebp - 0x4b4]
cmovae eax, dword [ebp - 0x454]
push dword [ebp - 0x444]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40af3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40af68
push 0
lea eax, [ebp - 0x4c8]
mov dword [ebp - 0x4c8], 4
push eax
lea eax, [ebp - 0x4c4]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x40afe2
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x454]
call fcn.00402927
push dword [ebp - 0x4b4]
call fcn.0042f61c
pop ecx
push 0
push 1
lea ecx, [ebp - 0x470]
call fcn.00402927
push 0
push 1
lea ecx, [ebp - 0x48c]
call fcn.00402927
cmp dword [ebp - 0x4c0], 0
je 0x40afbf
push dword [ebp - 0x4c0]
call fcn.0042ee49
pop ecx
push 0
push 1
lea ecx, [ebp - 0x424]
call fcn.00402927
mov al, bl
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x4c4], 0x193
je 0x40af68
push 0x400
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.00435540
add esp, 0xc
mov dword [ebp - 0x428], 0xf
xor eax, eax
mov dword [ebp - 0x42c], eax
mov byte [ebp - 0x43c], al
mov dword [ebp - 0x4a8], eax
jmp 0x40b050
cmp dword [ebp - 0x4a8], 0
je 0x40b06e
push dword [ebp - 0x4a8]
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x43c]
call fcn.004098ca
and dword [ebp - 0x4a8], 0
lea eax, [ebp - 0x4a8]
push eax
push 0x400
lea eax, [ebp - 0x40c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40b028
lea eax, [ebp - 0x43c]
cmp ebx, eax
je 0x40b084
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00402893
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
push 1
lea ecx, [ebp - 0x43c]
mov bl, 1
call fcn.00402927
jmp 0x40af71