Function at 0x414ac0
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 0x414d10
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.00404a7c
mov eax, ebx
call fcn.004073dc
push eax
call sub.wininet.dll_DeleteUrlCacheEntryW
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004145fc
test al, al
je 0x414cf5
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 0x414cf5
xor eax, eax
push ebp
push 0x414cee
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.004073dc
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 0x414cd7
xor eax, eax
push ebp
push 0x414cd0
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.004073dc
push eax
push 0x414d24
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpOpenRequestW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x414cb9
xor eax, eax
push ebp
push 0x414cb2
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 0x414be1
call fcn.0040633c
call fcn.0040633c
call fcn.0040633c
jmp 0x414cf5
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 0x414c10
cmp dword [esi], 0x190
jb 0x414c28
mov byte [ebp - 9], 0
call fcn.0040633c
call fcn.0040633c
call fcn.0040633c
jmp 0x414cf5
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 0x414c5e
lea eax, [ebp - 0x34]
call fcn.004113b8
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 0x414c93
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 0x414cb9
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 0x414cd7
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 0x414cf5
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 0x414d17
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b74
ret