Function at 0x4b1481
Capabilities:
Connect to http server
Get http content length
Send data
Send http request

Disassembly:
mov eax, 0x4c365d
call fcn.004bf97c
mov eax, 0x12a8
call fcn.004bf900
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, esi
call fcn.004b0823
mov ebx, esi
call fcn.004b078f
mov eax, dword [esi + 0x34]
xor ebx, ebx
cmp eax, ebx
jne 0x4b15a6
lea eax, [esi + 0x44]
mov edi, 0x10000000
push edi
mov dword [esi + 0x48], esi
push ebx
lea esi, [ebp - 0x12b4]
mov dword [ebp - 0x18], eax
mov dword [eax], 2
call fcn.00416cc3
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x20]
push edi
push eax
lea eax, [ebp - 0x12b4]
call fcn.00416d24
test eax, eax
je 0x4b19b9
push ebx
push ebx
push 3
push dword [ebp - 0x1290]
push dword [ebp - 0x1298]
push dword [ebp - 0x129c]
push dword [ebp - 0x12a4]
push dword [esi + 0x2c]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x4b19b9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x12b4]
call fcn.00416d8b
mov edi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x12b4]
call fcn.00416def
push dword [ebp - 0x18]
mov edi, dword [edi]
mov eax, dword [eax]
push 0x84400200
push ebx
push edi
push ebx
push eax
push 0x4cc0e4
push dword [esi + 0x30]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4b1577
push eax
call fcn.00401377
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4b158b
push eax
call fcn.00401377
mov eax, dword [esi + 0x34]
cmp eax, ebx
mov esi, dword [ebp + 8]
jne 0x4b15a6
push dword [esi + 0x30]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x30], ebx
jmp 0x4b19b9
cmp dword [ebp + 0xc], ebx
jne 0x4b1626
push str.Range:_bytes0__r_n
lea edi, [ebp + 8]
call fcn.00402faf
mov edi, dword [ebp + 8]
mov eax, dword [edi - 8]
push ebx
push ebx
push eax
push edi
push dword [esi + 0x34]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4b15fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4b160d
push dword [esi + 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [esi + 0x30]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
lea eax, [edi - 0xc]
jmp 0x4b1761
push ebx
push 1
push 0x465
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
lea eax, [edi - 0xc]
cmp eax, dword [0x4e4154]
je 0x4b161e
push eax
call fcn.00401377
xor eax, eax
inc eax
jmp 0x4b19bb
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push 0x20000005
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x34], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, ebx
je 0x4b1997
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x4b1997
mov dword [esi + 0x54], eax
mov edi, dword [0x4e4150]
mov dword [ebp - 0x24], edi
add esi, 0x50
mov cl, 0x5c
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], esi
call fcn.004030c8
cmp eax, ebx
jl 0x4b16ab
lea ecx, [ebp - 0x18]
push ecx
inc eax
mov ecx, esi
call fcn.0040888d
mov edi, eax
lea eax, [ebp - 0x24]
call fcn.0040301a
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4b16a8
push eax
call fcn.00401377
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x60]
cmp eax, ebx
jbe 0x4b16ee
cmp dword [edi - 8], ebx
je 0x4b16ee
push 0x1400000
push dword [esi + 0x54]
push ebx
push eax
push edi
call fcn.004b02c9
add esp, 0x14
test eax, eax
jne 0x4b16ee
push dword [esi + 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x34], ebx
push 0xffffffffffffffff
add esi, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4b15f4
push str..tmp
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.004031be
lea ecx, [esi + 0x4c]
mov edi, eax
mov eax, ecx
mov dword [ebp - 0x18], ecx
call fcn.0040301a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4b1722
push eax
call fcn.00401377
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b1778
push dword [esi + 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x34], ebx
push edi
add esi, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4b19b9
push eax
call fcn.00401377
jmp 0x4b19b9
push ebx
push ebx
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4e4150]
mov dword [ebp - 0x50], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0040301a
mov eax, dword [esi + 0x54]
add dword [0x4e63b8], eax
mov dword [ebp - 0x40], eax
lea edi, [ebp - 0x50]
adc dword [0x4e63bc], ebx
mov eax, 0x4e63a8
mov dword [ebp - 0x3c], ebx
call fcn.004b2498
mov edi, dword [esi + 0x84]
push 3
pop eax
cmp edi, eax
mov dword [ebp + 0xc], edi
jge 0x4b17f7
sub eax, edi
mov dword [ebp + 0xc], eax
mov edi, esi
call fcn.004b0670
dec dword [ebp + 0xc]
jne 0x4b17e0
mov eax, dword [esi + 0x84]
mov dword [ebp + 0xc], eax
mov edi, eax
mov eax, dword [esi + 0x54]
shr eax, 0xc
cmp eax, edi
jge 0x4b1811
xor ecx, ecx
inc ecx
cmp eax, ecx
mov dword [ebp + 0xc], ecx
jl 0x4b180e
mov dword [ebp + 0xc], eax
mov edi, dword [ebp + 0xc]
cdq
idiv edi
xor ecx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
cmp edx, ebx
setne cl
add ecx, eax
cmp edi, ebx
mov dword [ebp - 0x2c], ecx
jle 0x4b18b4
lea eax, [edi - 1]
cmp dword [ebp - 0x14], eax
jne 0x4b183e
mov eax, dword [esi + 0x54]
sub eax, dword [ebp - 0x1c]
jmp 0x4b1844
mov eax, dword [ebp - 0x2c]
shl eax, 0xc
push 0x1c
mov dword [ebp - 0x10], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x4b1864
mov ecx, dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x10]
call fcn.004aed10
mov dword [ebp - 0x28], eax
jmp 0x4b1869
mov dword [ebp - 0x28], ebx
mov eax, ebx
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x4b1875
mov ecx, dword [eax]
push eax
call dword [ecx]
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 2
call fcn.004b2353
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x4b189c
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x1c], eax
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x4b182e
lea ecx, [esi + 0x80]
mov dword [esi + 0x44], 1
cmp dword [ecx + 4], ebx
mov dword [ebp - 0x14], ecx
ja 0x4b18d3
push 0x80070057
call fcn.004010a4
cmp edi, ebx
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [esi + 0x48], eax
mov dword [ebp - 0x10], ebx
jle 0x4b195f
lea eax, [esi + 0x90]
mov dword [ebp - 0x1c], eax
jmp 0x4b18ef
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
call fcn.004ad145
mov edi, dword [esi + 0x2c]
mov ecx, dword [ebp - 0x20]
mov esi, dword [eax]
push ebx
push ebx
mov ebx, dword [ebp - 0x2c]
call fcn.004af1b6
mov esi, dword [ebp - 0x10]
xor ebx, ebx
cmp esi, ebx
jne 0x4b192e
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x20], eax
jmp 0x4b1931
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp - 0x1c]
mov eax, esi
call fcn.004ad145
mov edi, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.004ad145
mov eax, dword [eax]
push ebx
mov edx, edi
call fcn.004af24a
inc esi
xor ebx, ebx
cmp esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 8]
jl 0x4b18ec
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call fcn.004b0855
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4b197e
push eax
call fcn.00401377
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4b1992
push eax
call fcn.00401377
push 2
pop eax
jmp 0x4b19bb
push dword [esi + 0x34]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push dword [esi + 0x30]
call edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
push 0xfffffffffffffffc
add esi, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8