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

Disassembly:
push 0x28
mov eax, 0x42741b
call fcn.004151ef
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x47], bl
je 0x404be7
mov eax, dword [esi + 0x34]
push ebx
push ebx
push 0x429596
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x404bde
lea edi, [esi + 0x15c]
mov eax, dword [edi + 4]
push edi
push eax
lea ecx, [ebp - 0x34]
call fcn.00402b38
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 8]
push edi
push eax
jmp 0x404b9c
lea ecx, [ebp - 0x2c]
call fcn.00402af3
mov ecx, dword [eax + 8]
and ecx, dword [eax + 0xc]
cmp ecx, 0xffffffff
jne 0x404b8a
mov eax, dword [0x433028]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00402af3
push eax
call fcn.00403627
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x404b76
mov eax, dword [esi + 0x38]
push ebx
push SysReAllocStringLen
push ebx
push eax
push ebx
push dword [ebp - 0x10]
push 0x429a3c
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
je 0x404b6d
push ebx
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 0x1c], 4
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, ebx
je 0x404b53
cmp dword [ebp - 0x18], 0xc8
jne 0x404b53
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000005
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, ebx
je 0x404b53
lea ecx, [ebp - 0x2c]
call fcn.00402af3
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.00402af3
mov ecx, dword [eax + 8]
and ecx, dword [eax + 0xc]
cmp ecx, 0xffffffff
je 0x404bba
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x10]
call fcn.004010f1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004010f1
lea ecx, [ebp - 0x2c]
call fcn.00402b14
lea eax, [esi + 0x15c]
push eax
push dword [eax + 8]
lea ecx, [ebp - 0x34]
call fcn.00402b38
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402bf8
test al, al
je 0x404a71
jmp 0x404bd3
push 4
mov ecx, esi
call fcn.004027c9
lea ecx, [ebp - 0x10]
call fcn.004010f1
lea ecx, [ebp - 0x14]
call fcn.004010f1
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x404be7
push 1
mov ecx, esi
call fcn.004027c9
mov eax, dword [esi + 0x170]
and eax, dword [esi + 0x174]
or edi, 0xffffffff
cmp eax, edi
jne 0x404c8c
mov dword [esi + 0x170], ebx
mov dword [esi + 0x174], ebx
lea ebx, [esi + 0x15c]
push ebx
push dword [ebx + 4]
lea ecx, [ebp - 0x34]
call fcn.00402b38
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
push ebx
push dword [ebx + 8]
mov dword [ebp - 0x28], eax
jmp 0x404c66
lea ecx, [ebp - 0x2c]
call fcn.00402af3
mov ecx, dword [eax + 8]
and ecx, dword [eax + 0xc]
cmp ecx, edi
je 0x404c80
lea ecx, [ebp - 0x2c]
call fcn.00402af3
mov ecx, dword [eax + 8]
add dword [esi + 0x170], ecx
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x2c]
adc dword [esi + 0x174], eax
call fcn.00402b14
push ebx
push dword [ebx + 8]
lea ecx, [ebp - 0x34]
call fcn.00402b38
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402bf8
test al, al
je 0x404c2e
jmp 0x404c8c
mov dword [esi + 0x170], edi
mov dword [esi + 0x174], edi
mov ecx, dword [esi + 0x170]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [esi + 0x174]
mov dword [eax + 4], ecx
call fcn.0041528e
ret 4