Function at 0x401350
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
push 0xffffffffffffffff
push 0x4234ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1084
call fcn.0040bb20
push ebx
push esi
push edi
lea edi, [ebp - 0x1090]
mov ecx, 0x421
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1048], 0
lea eax, [ebp - 0x1034]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401195
mov dword [ebp - 4], 1
mov esi, esp
push 0
push 0
push 0
push 0
push str.User_Agent
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp esi, esp
call fcn.0040bc40
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4013d1
jmp 0x40150b
mov esi, esp
push 0
push 0
push 3
push str.HTTP_1.1
push 0
mov cx, word [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp esi, esp
call fcn.0040bc40
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401408
jmp 0x40150b
mov esi, esp
push 0
push connect
push 0
push 0
push str.HTTP_1.1
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp esi, esp
call fcn.0040bc40
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x401441
jmp 0x40150b
mov esi, esp
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp esi, esp
call fcn.0040bc40
mov dword [ebp - 0x1c], eax
mov ecx, 1
test ecx, ecx
je 0x40150b
mov esi, esp
lea edx, [ebp - 0x1030]
push edx
push 0xfff
lea eax, [ebp - 0x102c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp esi, esp
call fcn.0040bc40
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4014a8
cmp dword [ebp - 0x1030], 0
jne 0x4014aa
jmp 0x40150b
mov edx, dword [ebp - 0x1030]
mov byte [ebp + edx - 0x102c], 0
lea eax, [ebp - 0x102c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1044]
push edx
call fcn.00401032
add esp, 0xc
mov dword [ebp - 0x104c], eax
mov eax, dword [ebp - 0x104c]
mov dword [ebp - 0x1050], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1050]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401082
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1044]
call fcn.00401118
jmp 0x401463
cmp dword [ebp - 0x18], 0
je 0x401524
mov esi, esp
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.0040bc40
cmp dword [ebp - 0x14], 0
je 0x40153d
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.0040bc40
cmp dword [ebp - 0x10], 0
je 0x401556
mov esi, esp
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.0040bc40
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040115e
mov eax, dword [ebp - 0x1048]
or al, 1
mov dword [ebp - 0x1048], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401118
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1090
cmp ebp, esp
call fcn.0040bc40
mov esp, ebp
pop ebp
ret