Function at 0x4151e4
Capabilities:
Check http status code
Connect to http server
Create http request
Get http content length
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x415434
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, esi
xor ecx, ecx
mov edx, 0x20
call fcn.00404a8c
mov eax, ebx
call fcn.004073e4
push eax
call sub.wininet.dll_DeleteUrlCacheEntryW
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00414d20
test al, al
je 0x415419
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x415419
xor eax, eax
push ebp
push 0x415412
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 0
push 0x50
mov eax, dword [ebp - 4]
call fcn.004073e4
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetConnectW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4153fb
xor eax, eax
push ebp
push 0x4153f4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x84080300
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004073e4
push eax
push 0x415448
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpOpenRequestW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4153dd
xor eax, eax
push ebp
push 0x4153d6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpSendRequestW
test eax, eax
jne 0x415305
call fcn.0040634c
call fcn.0040634c
call fcn.0040634c
jmp 0x415419
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x20000013
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpQueryInfoW
test eax, eax
je 0x415334
cmp dword [esi], 0x190
jb 0x41534c
mov byte [ebp - 9], 0
call fcn.0040634c
call fcn.0040634c
call fcn.0040634c
jmp 0x415419
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x4000000b
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpQueryInfoW
test eax, eax
je 0x415382
lea eax, [ebp - 0x34]
call fcn.004114dc
fstp qword [esi + 8]
wait
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x20000005
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpQueryInfoW
test eax, eax
je 0x4153b7
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov byte [ebp - 9], 1
mov byte [esi + 0x18], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4153dd
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4153fb
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415419
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41543b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b84
ret