Function at 0x140094b80
Capabilities:
Check if file exists
Clear file content
Get file size
Move file
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x14058f6b8]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov r15, rcx
call fcn.140375490
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x28], xmm0
movups xmmword [rbp + 0x38], xmm0
xor ebx, ebx
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rbx
mov dword [rbp + 0x40], ebx
lea r8d, [rbx - 1]
lea r12, [0x1404d345c]
mov rdx, r12
lea rcx, [rbp + 0x28]
call fcn.140123b70
nop
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov qword [rbp - 8], rbx
mov r13d, ebx
mov dword [rbp], ebx
lea rdx, [r15 + 0x130]
mov rdi, qword [r15 + 0xd0]
mov r14d, dword [r15 + 0x168]
lea rcx, [rbp + 8]
cmp byte [r15 + 0x68], bl
je 0x140094c53
call fcn.14008b1f0
mov rcx, qword [r15 + 0x28]
test rcx, rcx
je 0x140094c34
cmp word [rcx], bx
jne 0x140094c37
mov rcx, r12
lea rdx, [r15 + 0x48]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [rbp + 0x28]
call fcn.140096a00
jmp 0x140094c88
call fcn.14008b1f0
mov rcx, qword [r15 + 0x28]
test rcx, rcx
je 0x140094c67
cmp word [rcx], 0
jne 0x140094c6a
mov rcx, r12
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [rbp + 0x28]
lea rdx, [rbp - 8]
call fcn.1400965c0
mov r13d, dword [rbp]
mov byte [rsp + 0x40], al
call fcn.140375490
mov rdi, rax
mov rcx, qword [r15 + 0x28]
test rcx, rcx
je 0x140094cba
cmp word [rcx], 0
je 0x140094cba
lea rdx, [r15 + 0x38]
call fcn.140125a00
mov rdx, qword [r15 + 0x38]
test rdx, rdx
je 0x140094cba
cmp byte [rdx], 0
jne 0x140094cc1
lea rdx, [0x1404d34b0]
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140094ce0
lea rcx, [rbp - 0x28]
call fcn.14007cb70
nop
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
call fcn.140096410
mov r14, rax
sub rdi, rsi
movabs rax, 0x346dc5d63886594b
imul rdi
mov rdi, rdx
sar rdi, 0xb
mov rcx, rdi
shr rcx, 0x3f
add rdi, rcx
mov ecx, 2
call fcn.140312ed0
test eax, eax
je 0x140094e27
mov dword [rbp - 0x68], r13d
movabs rax, 0x1000000000000000
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x64], rdi
movabs rax, 0x3000000000000004
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x50], r14
lea rax, [0x140097ee0]
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x5c], xmm0
movabs rax, 0xd00000000000000c
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x50], 3
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rax
lea rax, str.http_download_end__fileSize____timeConsuming__url
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x3a
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 8]
call fcn.140077780
nop
lea rax, [rbp + 8]
cmp qword [rbp + 0x20], 0x10
cmovae rax, qword [rbp + 8]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, str.HttpClient::do_download
mov ecx, 2
mov r8d, 0x100
call fcn.140094830
nop
lea rcx, [rbp + 8]
call fcn.14007cfc0
nop
lea rcx, [rbp - 0x48]
call fcn.14007cfc0
nop
lea rcx, [rbp - 0x28]
call fcn.14007cfc0
lea rcx, [0x1405b3140]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rdx, [r15 + 0x28]
call fcn.140097910
lea rcx, [0x1405b3140]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rbx
mov dword [rbp - 0x10], ebx
lea r14, [r15 + 0x48]
mov r8d, 0xffffffff
mov rdx, qword [r14]
lea rcx, [rbp - 0x28]
call fcn.140123b70
nop
mov r13d, dword [rbp - 0x20]
add r13d, 0xb
mov ecx, dword [rbp - 0x1c]
cmp ecx, r13d
jge 0x140094edb
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edi, [rax + rcx]
cmp edi, r13d
cmovle edi, r13d
cmp edi, ecx
jle 0x140094edb
movsxd rdx, edi
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
call fcn.1403a8174
mov rsi, rax
mov qword [rbp - 0x28], rax
movsxd rcx, dword [rbp - 0x20]
mov word [rax + rcx*2], bx
mov dword [rbp - 0x1c], edi
jmp 0x140094edf
mov rsi, qword [rbp - 0x28]
lea rax, [rsi - 2]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x140094ee3
movups xmm0, xmmword [str._HttpDLTemp]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1405141f8]
movsd qword [rax + 0x10], xmm1
mov dword [rbp - 0x20], r13d
cmp byte [rsp + 0x40], 0
je 0x14009522a
mov r13d, dword [rbp]
cmp dword [r14 + 8], 0
jle 0x14009509e
test r13d, r13d
jle 0x14009509e
lea rcx, [rbp - 0x28]
call fcn.140124930
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140094fe1
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp qword [rsp + 0x70], 0
jle 0x140094fab
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
cmp qword [rsp + 0x50], r8
jge 0x140094f8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140094fab
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x140094fab
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140094fa5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
je 0x140094fab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], ebx
test rdi, rdi
je 0x140094fd2
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x60]
mov r8d, r13d
mov rdx, qword [rbp - 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140094fd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp - 0x20], 0
jle 0x14009509a
cmp dword [r14 + 8], 0
jle 0x14009509a
lea rcx, [rbp - 0x28]
call fcn.140124ba0
test al, al
je 0x14009509a
mov rcx, r14
call fcn.140124ba0
test al, al
je 0x14009509a
mov edx, ebx
mov rsi, qword [rbp - 0x28]
mov r9d, dword [rbp - 0x20]
test r9d, r9d
jle 0x14009504c
mov rcx, rsi
movabs r8, 0x100002600
movzx eax, word [rcx]
cmp eax, 0x20
ja 0x140095054
bt r8, rax
jae 0x140095054
inc edx
add rcx, 2
cmp edx, r9d
jl 0x140095033
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14009509e
test rsi, rsi
je 0x140095062
cmp word [rsi], 0
mov rcx, rsi
jne 0x140095065
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14009504c
mov rdx, qword [r14]
test rdx, rdx
je 0x14009507e
cmp word [rdx], 0
jne 0x140095081
mov rdx, r12
test rsi, rsi
je 0x14009508f
cmp word [rsi], 0
mov rcx, rsi
jne 0x140095092
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x14009509e
mov rsi, qword [rbp - 0x28]
mov ecx, 0x108
call fcn.1403982c8
mov rdi, rax
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x108
mov rcx, rax
call fcn.14039b120
lea rcx, [r15 + 8]
mov qword [rsp + 0x30], r14
lea rax, [r15 + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9d, r13d
mov dl, 1
mov rcx, rdi
call fcn.1400972f0
mov r13, rax
mov ecx, dword [r15 + 0x6c]
mov dword [rax + 0xa8], ecx
mov rcx, qword [r15 + 0x78]
mov qword [rax + 0xb0], rcx
mov rcx, qword [r15 + 0x80]
mov qword [rax + 0xb8], rcx
lea rcx, [rax + 0xc0]
mov rdx, qword [r15 + 0x88]
test rdx, rdx
je 0x140095123
cmp word [rdx], 0
jne 0x140095126
mov rdx, r12
mov r8d, dword [r15 + 0x90]
call fcn.140123b70
movzx eax, byte [r15 + 0xc8]
mov byte [r13 + 0x100], al
mov eax, dword [r15 + 0x70]
mov dword [r13 + 0xac], eax
lea rcx, [r13 + 0xe0]
mov rdx, qword [r15 + 0xa8]
test rdx, rdx
je 0x140095165
cmp word [rdx], 0
jne 0x140095168
mov rdx, r12
mov r8d, dword [r15 + 0xb0]
call fcn.140123b70
movzx eax, byte [r15 + 0xc9]
mov byte [r13 + 0x101], al
lea rcx, [r13 + 0x88]
mov r14, qword [rbp + 0x28]
test r14, r14
je 0x14009519d
cmp word [r14], 0
je 0x14009519d
mov r12, r14
mov r8d, dword [rbp + 0x30]
mov rdx, r12
call fcn.140123b70
cmp dword [r15 + 0x50], 0
jg 0x1400951c7
lea rcx, [r13 + 0x78]
mov edi, dword [rbp]
mov r8d, edi
mov rdx, qword [rbp - 8]
call fcn.1401256b0
mov dword [r13 + 0x10], edi
cmp qword [r15 + 0x110], 0
je 0x1400951e1
mov rcx, qword [r15 + 0x110]
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x1405a2990]
test rcx, rcx
jne 0x140095221
mov ecx, 0x110
call fcn.1403982c8
mov rdi, rax
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x110
mov rcx, rax
call fcn.14039b120
mov rcx, rdi
call fcn.14008db90
mov rcx, rax
mov qword [0x1405a2990], rax
mov qword [rbp + 0x10], rbx
jmp 0x1400953f6
movsxd rax, dword [r14 + 8]
test eax, eax
jle 0x140095289
mov r9, qword [r14]
mov rdx, rbx
mov r10, rax
mov rcx, r9
movabs r8, 0x100002600
movzx eax, word [rcx]
cmp eax, 0x20
ja 0x140095264
bt r8, rax
jae 0x140095264
inc rdx
add rcx, 2
cmp rdx, r10
jge 0x140095289
jmp 0x140095248
test r9, r9
je 0x140095270
cmp word [r9], 0
jne 0x140095273
mov r9, r12
mov rcx, r9
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140095289
mov rcx, r14
call fcn.140124840
mov ecx, 0x108
call fcn.1403982c8
mov rdi, rax
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x108
mov rcx, rax
call fcn.14039b120
lea rcx, [r15 + 8]
mov qword [rsp + 0x30], r14
lea rax, [r15 + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor edx, edx
mov rcx, rdi
call fcn.1400972f0
mov r13, rax
mov ecx, dword [r15 + 0x6c]
mov dword [rax + 0xa8], ecx
mov rcx, qword [r15 + 0x78]
mov qword [rax + 0xb0], rcx
mov rcx, qword [r15 + 0x80]
mov qword [rax + 0xb8], rcx
lea rcx, [rax + 0xc0]
mov rdx, qword [r15 + 0x88]
test rdx, rdx
je 0x14009530e
cmp word [rdx], 0
jne 0x140095311
mov rdx, r12
mov r8d, dword [r15 + 0x90]
call fcn.140123b70
movzx eax, byte [r15 + 0xc8]
mov byte [r13 + 0x100], al
mov eax, dword [r15 + 0x70]
mov dword [r13 + 0xac], eax
lea rcx, [r13 + 0xe0]
mov rdx, qword [r15 + 0xa8]
test rdx, rdx
je 0x140095350
cmp word [rdx], 0
jne 0x140095353
mov rdx, r12
mov r8d, dword [r15 + 0xb0]
call fcn.140123b70
movzx eax, byte [r15 + 0xc9]
mov byte [r13 + 0x101], al
lea rcx, [r13 + 0x88]
mov r14, qword [rbp + 0x28]
test r14, r14
je 0x140095388
cmp word [r14], 0
je 0x140095388
mov r12, r14
mov r8d, dword [rbp + 0x30]
mov rdx, r12
call fcn.140123b70
cmp qword [r15 + 0x110], 0
je 0x1400953ae
mov rcx, qword [r15 + 0x110]
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x1405a2990]
test rcx, rcx
jne 0x1400953ee
mov ecx, 0x110
call fcn.1403982c8
mov rdi, rax
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x110
mov rcx, rax
call fcn.14039b120
mov rcx, rdi
call fcn.14008db90
mov rcx, rax
mov qword [0x1405a2990], rax
mov qword [rbp + 0x10], 1
mov eax, dword [r15]
mov dword [rbp + 0xc], ebx
mov dword [rbp + 8], eax
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x20], rbx
lea rdx, [rbp + 8]
call fcn.14008f0e0
nop
test rsi, rsi
je 0x14009541e
mov rcx, rsi
call fcn.1403a7ac0
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14009542d
call fcn.1403a7ac0
nop
mov rax, qword [rbp - 8]
test rax, rax
je 0x14009543f
mov rcx, rax
call fcn.1403a7ac0
nop
test r14, r14
je 0x14009544c
mov rcx, r14
call fcn.1403a7ac0
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14009545a
call fcn.1403a7ac0
xor eax, eax
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.140398000
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret