Function at 0x180005520
Capabilities:
Check http status code
Delete file
Initialize winhttp library
Move file
Prepare http request
Read http header
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x1800180a0]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov rdi, rcx
xor ebx, ebx
mov r13d, 0x2000
mov ecx, r13d
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], ebx
call fcn.1800059dc
lea rcx, [rbp + 0x1c2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x1c0], bx
mov rsi, rax
call fcn.1800083f0
mov r15d, ebx
mov r14d, ebx
mov r12d, ebx
mov edx, 0x1000
mov rcx, rsi
sub rdi, rsi
nop word [rax + rax]
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x1800055d3
movzx eax, word [rdi + rcx]
test ax, ax
je 0x1800055d3
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x1800055b0
jmp 0x1800055d8
test rdx, rdx
jne 0x1800055dc
sub rcx, 2
xor edx, edx
mov word [rcx], bx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x60]
call fcn.1800083f0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
lea r9, [rsp + 0x50]
xor r8d, r8d
repne scasw ax, word [rdi]
mov dword [rsp + 0x50], 0x68
mov dword [rsp + 0x60], 0xffffffff
not rcx
mov dword [rsp + 0x70], 0xffffffff
mov dword [rbp - 0x60], 0xffffffff
lea rdx, [rcx - 1]
mov rcx, rsi
mov dword [rbp - 0x50], 0xffffffff
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x18000583d
lea rcx, str.Funshion_4.0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
je 0x18000583d
mov edx, 0xea60
mov r9d, 0x7530
mov rcx, rax
mov r8d, edx
mov dword [rsp + 0x20], 0x7530
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x18000583d
lea rcx, [rbp - 0x3e]
xor edx, edx
mov r8d, 0x1fe
mov word [rbp - 0x40], bx
call fcn.1800083f0
mov r11d, dword [rsp + 0x70]
cmp r11, 0x7ffffffe
jbe 0x1800056b6
mov word [rbp - 0x40], bx
jmp 0x180005700
mov rdi, qword [rsp + 0x68]
lea rax, [rbp - 0x40]
mov edx, 0xff
sub rdi, rax
lea rcx, [rbp - 0x40]
nop dword [rax + rax]
lea rax, [r11 + rdx - 0xff]
test rax, rax
je 0x1800056f4
movzx eax, word [rdi + rcx]
test ax, ax
je 0x1800056f4
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x1800056d0
jmp 0x1800056f9
test rdx, rdx
jne 0x1800056fd
sub rcx, 2
mov word [rcx], bx
movzx r8d, word [rsp + 0x74]
lea rdx, [rbp - 0x40]
xor r9d, r9d
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
test rax, rax
je 0x18000583d
cmp dword [rsp + 0x64], 2
mov r8, qword [rbp - 0x68]
mov eax, ebx
mov ecx, 0x800000
lea rdx, [0x180014d38]
cmove eax, ecx
xor r9d, r9d
mov rcx, r14
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r12, rax
test rax, rax
je 0x18000583d
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x18000583d
xor edx, edx
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x18000583d
xor r8d, r8d
lea rax, [rsp + 0x40]
mov r9, rsi
lea edx, [r8 + 0x13]
mov rcx, r12
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x40], 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rcx, rsi
call fcn.180006970
cmp eax, 0xc8
jne 0x180005843
lea rdx, [rsp + 0x40]
mov rcx, r12
mov dword [rsp + 0x40], ebx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18000583d
mov eax, dword [rsp + 0x40]
cmp eax, r13d
jbe 0x180005812
mov rcx, rsi
call fcn.180006374
mov r13d, dword [rsp + 0x40]
inc r13d
mov ecx, r13d
call fcn.1800059dc
mov rsi, rax
mov eax, dword [rsp + 0x40]
mov r8d, eax
xor edx, edx
mov rcx, rsi
call fcn.1800083f0
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
cmp dword [rsp + 0x40], ebx
ja 0x1800057d4
jmp 0x180005845
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call fcn.180006374
test r12, r12
je 0x18000585b
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r14, r14
je 0x180005869
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r15, r15
je 0x180005877
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rcx, [rbp + 0x1c0]
test ebx, ebx
jne 0x180005890
lea r8d, [rbx + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x180005896
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.180005a00
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret