Function at 0x401eb0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10b8
call fcn.0040d900
mov eax, dword [0x427250]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x1090], eax
cmp dword [ebp - 0x1090], 0
jne 0x401eed
xor al, al
jmp 0x40228b
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x78]
call fcn.00401c50
push 1
push 0
push 3
lea ecx, [ebp - 0x24]
call fcn.00403d90
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403d90
push eax
movzx ecx, word [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00403d90
push eax
mov edx, dword [ebp - 0x1090]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x1098], eax
cmp dword [ebp - 0x1098], 0
jne 0x401f62
mov eax, dword [ebp - 0x1090]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 0x10b1], 0
lea ecx, [ebp - 0x78]
call fcn.00401c10
mov al, byte [ebp - 0x10b1]
jmp 0x40228b
mov dword [ebp - 0x108c], 0x84480000
mov dword [ebp - 0x88], 0x4227d0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
cmp dword [ebp + 0x14], 1
jne 0x4020d5
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x10b0]
call fcn.004034d0
push 0x4227bf
mov edx, dword [ebp + 0xc]
push edx
call fcn.00403780
add esp, 8
movzx eax, al
test eax, eax
je 0x401fe9
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00403080
movsx ecx, byte [eax]
cmp ecx, 0x3f
je 0x401fda
push 0x4227d8
lea ecx, [ebp - 0x10b0]
call fcn.004030c0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x10b0]
call fcn.004030a0
push 1
mov eax, dword [ebp - 0x108c]
push eax
lea ecx, [ebp - 0x88]
push ecx
push 0
push 0x4227dc
lea ecx, [ebp - 0x10b0]
call fcn.00403d90
push eax
push 0x4227e8
mov edx, dword [ebp - 0x1098]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x402066
mov eax, dword [ebp - 0x1090]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x1098]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 0x10b2], 0
lea ecx, [ebp - 0x10b0]
call fcn.00402fe0
lea ecx, [ebp - 0x78]
call fcn.00401c10
mov al, byte [ebp - 0x10b2]
jmp 0x40228b
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4020c5
mov eax, dword [ebp - 0x1090]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x1098]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 0x10b3], 0
lea ecx, [ebp - 0x10b0]
call fcn.00402fe0
lea ecx, [ebp - 0x78]
call fcn.00401c10
mov al, byte [ebp - 0x10b3]
jmp 0x40228b
lea ecx, [ebp - 0x10b0]
call fcn.00402fe0
jmp 0x4021d5
cmp dword [ebp + 0x14], 2
jne 0x4021b5
push 1
mov eax, dword [ebp - 0x108c]
push eax
lea ecx, [ebp - 0x88]
push ecx
push 0
push str.HTTP_1.1
lea ecx, [ebp - 0x54]
call fcn.00403d90
push eax
push str.POST
mov edx, dword [ebp - 0x1098]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x40214e
mov eax, dword [ebp - 0x1090]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x1098]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 0x10b4], 0
lea ecx, [ebp - 0x78]
call fcn.00401c10
mov al, byte [ebp - 0x10b4]
jmp 0x40228b
mov ecx, dword [ebp + 0xc]
call fcn.00403050
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00403d90
push eax
push 0xffffffffffffffff
push str.Content_type:_application_x_www_form_urlencoded
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4021b3
mov eax, dword [ebp - 0x1090]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x1098]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 0x10b5], 0
lea ecx, [ebp - 0x78]
call fcn.00401c10
mov al, byte [ebp - 0x10b5]
jmp 0x40228b
jmp 0x4021d5
cmp dword [ebp + 0x14], 3
jne 0x4021d5
mov byte [ebp - 0x10b6], 0
lea ecx, [ebp - 0x78]
call fcn.00401c10
mov al, byte [ebp - 0x10b6]
jmp 0x40228b
mov byte [ebp - 0x1088], 0
push 0xfff
push 0
lea eax, [ebp - 0x1087]
push eax
call fcn.0040d600
add esp, 0xc
mov dword [ebp - 0x1094], 0xfff
mov dword [ebp - 0x7c], 0
push 0x4227da
mov ecx, dword [ebp + 0x10]
call fcn.00403000
lea ecx, [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x1094]
push edx
lea eax, [ebp - 0x1088]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x402252
cmp dword [ebp - 0x7c], 0
je 0x402252
mov edx, dword [ebp - 0x7c]
mov byte [ebp + edx - 0x1088], 0
lea eax, [ebp - 0x1088]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004030c0
jmp 0x402210
mov ecx, dword [ebp - 0x1090]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x1098]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 0x10b7], 1
lea ecx, [ebp - 0x78]
call fcn.00401c10
mov al, byte [ebp - 0x10b7]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d67a
mov esp, ebp
pop ebp
ret