Function at 0x46a020
Capabilities:
Create http request
Delete file
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:
push ebp
mov ebp, esp
mov eax, 0x222c
call fcn.004cd140
mov eax, dword [0x5402b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
mov edi, ecx
xor al, al
mov byte [ebp - 0x2209], al
mov dword [ebp - 0x2224], ebx
mov dword [ebp - 0x221c], ebx
cmp edi, ebx
je 0x46a25f
cmp dword [ebp + 8], ebx
je 0x46a25f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.1__Trident_4.0__.NET_CLR_2.0.50727__360se_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x2228], esi
cmp esi, ebx
je 0x46a25c
push ebx
push SysReAllocStringLen
push ebx
push ebx
push str.https:__browser.360.cn_cert_rootsupd.cab
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x2210], eax
cmp eax, ebx
je 0x46a23e
push 0x1fe
lea ecx, [ebp - 0x202]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x204], ax
call fcn.004c5470
mov ecx, dword [ebp - 0x2210]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
add esp, 0xc
push ebx
lea edx, [ebp - 0x2220]
push edx
lea eax, [ebp - 0x2224]
push eax
push 0x20000005
push ecx
mov dword [ebp - 0x222c], 0x100
mov dword [ebp - 0x2220], 4
call esi
mov ecx, dword [ebp - 0x2210]
push ebx
lea edx, [ebp - 0x222c]
push edx
lea eax, [ebp - 0x204]
push eax
push 0x13
push ecx
call esi
test eax, eax
je 0x46a22b
mov ecx, 0x5245f8
lea eax, [ebp - 0x204]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46a156
cmp dx, bx
je 0x46a152
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46a156
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x46a130
xor eax, eax
jmp 0x46a15b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x46a22b
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46a22b
mov edx, dword [ebp + 8]
cmp byte [edx], bl
jne 0x46a224
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x46a1a0
push 0x2000
lea eax, [ebp - 0x2207]
push ebx
push eax
mov byte [ebp - 0x2208], bl
call fcn.004c5470
mov eax, dword [ebp - 0x2210]
add esp, 0xc
lea ecx, [ebp - 0x2218]
push ecx
push 0x2000
lea edx, [ebp - 0x2208]
push edx
push eax
mov dword [ebp - 0x2218], ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x46a224
mov eax, dword [ebp - 0x2218]
cmp eax, ebx
je 0x46a21d
push ebx
lea ecx, [ebp - 0x2214]
push ecx
push eax
lea edx, [ebp - 0x2208]
push edx
push esi
mov dword [ebp - 0x2214], ebx
call edi
mov eax, dword [ebp - 0x2214]
mov ecx, dword [ebp + 8]
add dword [ebp - 0x221c], eax
cmp byte [ecx], bl
je 0x46a1a0
jmp 0x46a224
mov byte [ebp - 0x2209], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2210]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp - 0x2228]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, byte [ebp - 0x2209]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c0985
mov esp, ebp
pop ebp
ret
mov al, bl
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004c0985
mov esp, ebp
pop ebp
ret