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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0xc]
xor eax, eax
push ebp
push 0x412be8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x414420]
mov edx, 0x412c00
call fcn.00404628
mov edx, esi
call fcn.00404628
call fcn.00402f28
call fcn.0040275c
lea eax, [ebp - 0x458]
xor ecx, ecx
mov edx, 0x3c
call fcn.00402c3c
mov dword [ebp - 0x458], 0x3c
lea eax, [ebp - 0x14]
mov edx, pe_nt_image_headers32
call fcn.004045c4
mov eax, dword [ebp - 0x14]
call fcn.004044e4
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], pe_nt_image_headers32
lea eax, [ebp - 0x18]
mov edx, 0x800
call fcn.004045c4
mov eax, dword [ebp - 0x18]
call fcn.004044e4
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], 0x800
lea eax, [ebp - 0x458]
push eax
push 0
mov eax, esi
call fcn.004042f4
push eax
mov eax, esi
call fcn.004044e4
push eax
call sub.wininet.dll_InternetCrackUrlA
test eax, eax
jne 0x412976
mov eax, dword [0x414420]
mov edx, 0x412c20
call fcn.00404628
mov edx, esi
call fcn.00404628
call fcn.00402f28
call fcn.0040275c
jmp 0x412bcd
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x448]
call fcn.00404250
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x42c]
call fcn.00404250
push 0
push 0
push 0
push 0
push 0x412c3c
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4129cb
mov eax, dword [0x414420]
mov edx, 0x412c4c
call fcn.00404628
call fcn.00402f28
call fcn.0040275c
jmp 0x412bcd
xor eax, eax
push ebp
push 0x412bc6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 0
push 0x1bb
mov eax, dword [ebp - 0x14]
call fcn.004044e4
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x412a2e
mov eax, dword [0x414420]
mov edx, 0x412c74
call fcn.00404628
mov edx, dword [ebp - 0x14]
call fcn.00404628
call fcn.00402f28
call fcn.0040275c
call fcn.00403b64
jmp 0x412bcd
xor eax, eax
push ebp
push 0x412ba8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x800000
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.004044e4
push eax
push 0x412c9c
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x412a99
mov eax, dword [0x414420]
mov edx, 0x412ca8
call fcn.00404628
mov edx, dword [ebp - 0x18]
call fcn.00404628
call fcn.00402f28
call fcn.0040275c
call fcn.00403b64
call fcn.00403b64
jmp 0x412bcd
xor eax, eax
push ebp
push 0x412b8a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
jne 0x412ae9
mov eax, dword [0x414420]
mov edx, 0x412cd0
call fcn.00404628
call fcn.00402f28
call fcn.0040275c
call fcn.00403b64
call fcn.00403b64
call fcn.00403b64
jmp 0x412bcd
push 0xffff
mov ecx, edi
mov dl, 1
mov eax, dword [0x40f9e0]
call fcn.00411a50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x412b53
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0x400
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [ebx], 0
jbe 0x412b38
lea edx, [ebp - 0x41c]
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
cmp dword [ebx], 0
jne 0x412b0d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412b5a
mov eax, dword [ebp - 0x10]
call fcn.00403408
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412bef
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0040407c
ret