Function at 0x4146c0
Capabilities:
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x10564
call fcn.004368e0
mov eax, dword [0x463610]
xor eax, esp
mov dword [esp + 0x1055c], eax
mov eax, dword [esp + 0x1056c]
push ebx
push ebp
push esi
push edi
mov edi, edx
mov edx, dword [0x45864c]
mov ebx, ecx
mov ecx, dword [str.Accept:___r_n]
push 0x3f2
xor esi, esi
mov dword [esp + 0x10170], edx
mov dword [esp + 0x1c], eax
mov eax, dword [0x458650]
mov dword [esp + 0x1016c], ecx
mov cx, word [0x458654]
lea edx, [esp + 0x1017a]
push esi
push edx
xor ebp, ebp
mov dword [esp + 0x1017c], eax
mov word [esp + 0x10180], cx
call fcn.00436760
push esi
push edi
call fcn.00432bea
add esp, 0x14
cmp eax, 0xffffffff
je 0x414785
lea eax, [esp + 0x10028]
push eax
push edi
mov dword [esp + 0x10030], esi
mov dword [esp + 0x10034], esi
mov dword [esp + 0x10038], esi
mov dword [esp + 0x1003c], esi
mov dword [esp + 0x10040], esi
mov dword [esp + 0x10044], esi
call fcn.0041a5bc
mov ebp, dword [esp + 0x10040]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
push str.Range:_bytes
lea ecx, [esp + 0x1016c]
push ecx
mov byte [esp + 0x1015c], 0
mov dword [esp + 0x1015d], eax
mov dword [esp + 0x10161], eax
mov dword [esp + 0x10165], eax
mov dword [esp + 0x10169], eax
mov word [esp + 0x1016d], ax
mov byte [esp + 0x1016f], al
call esi
push ebp
lea edx, [esp + 0x10158]
push 0x457844
push edx
call fcn.00432a00
add esp, 0xc
lea eax, [esp + 0x10154]
push eax
lea ecx, [esp + 0x1016c]
push ecx
call esi
push 0x457e8c
lea edx, [esp + 0x1016c]
push edx
call esi
push 0x457de0
lea eax, [esp + 0x1016c]
push eax
call esi
push 0x457de0
lea ecx, [esp + 0x1016c]
push ecx
call esi
xor ebp, ebp
push ebp
push 0x84000100
lea edx, [esp + 0x10170]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x20]
push eax
lea eax, [esp + 0x10174]
push eax
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x20], ebx
jne 0x414863
mov eax, 1
jmp 0x4149a0
push ebp
push edi
call fcn.00432bea
add esp, 8
cmp eax, 0xffffffff
je 0x414890
push 0x458658
push edi
call fcn.00435ea9
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x414897
mov eax, 2
jmp 0x4149a0
push 0x45865c
jmp 0x414877
push ebp
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
push 0x20000005
push ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], 4
xor edi, edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4148c4
mov dword [esp + 0x1c], ebp
mov ebp, dword [sym.imp.WINMM.dll_timeGetTime]
xor ebx, ebx
call ebp
mov edi, edi
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push 0x4000
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4149bb
cmp dword [esp + 0x14], 0
je 0x414984
mov ecx, dword [esp + 0x18]
push str..txt
push ecx
call fcn.00432f10
add esp, 8
test eax, eax
jne 0x414929
mov edx, dword [esp + 0x18]
push str..TXT
push edx
call fcn.00432f10
add esp, 8
test eax, eax
je 0x414955
lea eax, [esp + 0x28]
push str.b492d296b012d45674c218d2b25a
push eax
call fcn.00432f10
add esp, 8
test eax, eax
jne 0x414955
lea ecx, [esp + 0x28]
push str.9652d692b012d28a74d234
push ecx
call fcn.00432f10
add esp, 8
test eax, eax
je 0x4149bb
mov edx, dword [esp + 0x14]
push esi
push edx
lea eax, [esp + 0x30]
push 1
push eax
call fcn.0043570b
add edi, dword [esp + 0x24]
add esp, 0x10
add ebx, 1
call ebp
mov ecx, dword [esp + 0x10578]
cmp dword [ecx + 4], 0
je 0x4148d0
push esi
call fcn.00435bcd
push esi
call fcn.00435c9c
xor eax, eax
add esp, 8
test ebx, ebx
setg al
sub eax, 1
and eax, 5
mov ecx, dword [esp + 0x1056c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043197e
add esp, 0x10564
ret 8
push esi
call fcn.00435c9c
add esp, 4
mov eax, 3
jmp 0x4149a0