Function at 0x1400159a0
Capabilities:
Copy file
Read file on windows

Disassembly:
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0x198]
sub rsp, 0x288
mov rax, qword [0x1402878c8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov qword [r11 + 0x18], rbx
mov rdi, rcx
mov rcx, qword [rcx]
mov rbx, rdx
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x28], r13
xor r13d, r13d
mov qword [r11 - 0x30], r14
lea rsi, [rdi + 0x210]
test rcx, rcx
je 0x140015a12
lea rdx, str._END_SESSION__n
call fcn.140015fb0
mov rcx, qword [rdi]
call fcn.1401b78c0
lea r8, [rdi + 8]
mov qword [rdi], r13
mov rdx, rsi
mov rcx, rdi
call fcn.140015360
mov r8, rbx
lea rcx, [rdi + 8]
mov edx, 0x104
call fcn.1401b25d8
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rdi + rax*2 + 0xa], r13w
lea rax, [rax + 1]
jne 0x140015a30
cmp word [rdi + rax*2 + 6], 0x5c
je 0x140015a59
lea r8, [0x1401e1c78]
mov edx, 0x104
lea rcx, [rdi + 8]
call fcn.1401b6edc
lea r8, [rdi + 8]
mov edx, 0x104
mov rcx, rsi
call fcn.1401b25d8
lea r8, str.tm_fwupdate_trace.log
mov edx, 0x104
lea rcx, [rdi + 8]
call fcn.1401b6edc
lea r8, str.tm_fwupdate_temp.log
mov edx, 0x104
mov rcx, rsi
call fcn.1401b6edc
lea r8, [0x1401e1c7c]
mov qword [rsp + 0x28], r13
lea rdx, [rdi + 8]
lea rcx, [rsp + 0x28]
call fcn.1401b77e4
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140015cb1
xor edx, edx
lea r8d, [rdx + 2]
call fcn.1401b7e98
mov rcx, qword [rsp + 0x28]
call fcn.1401b8408
mov rcx, qword [rsp + 0x28]
mov ebx, eax
call fcn.1401b78c0
cmp ebx, 0x200000
jle 0x140015cb1
lea r8, [rdi + 8]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.1401b25d8
lea r8, str..bak
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.1401b25d8
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [str.SMCH_]
lea r8, [0x1401e1c7c]
mov dword [rsp + 0x30], eax
lea rdx, [rdi + 8]
movzx eax, word [0x1401e42e8]
lea rcx, [rsp + 0x20]
mov word [rsp + 0x34], ax
mov qword [rsp + 0x20], r13
call fcn.1401b77e4
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140015cb1
xor edx, edx
mov qword [rsp + 0x278], r12
mov qword [rsp + 0x260], r15
lea r8d, [rdx + 2]
call fcn.1401b7e98
mov rcx, qword [rsp + 0x20]
call fcn.1401b8408
mov rcx, qword [rsp + 0x20]
xor r8d, r8d
xor edx, edx
movsxd r15, eax
call fcn.1401b7e98
lea ecx, [r15 + 1]
movsxd r12, ecx
mov rcx, r12
call fcn.14002174c
mov rbx, rax
test rax, rax
jne 0x140015bbe
mov rcx, qword [rsp + 0x20]
call fcn.1401b78c0
jmp 0x140015ca1
mov r8, r12
xor edx, edx
mov rcx, rbx
call fcn.1401af400
mov r9, qword [rsp + 0x20]
mov r8, r15
mov edx, 1
mov rcx, rbx
mov r12, r15
call fcn.1401b7bb8
mov rcx, qword [rsp + 0x20]
call fcn.1401b78c0
mov r11d, 0x10000
mov r15d, r11d
mov r10d, r11d
nop dword [rax]
mov cl, 1
mov rax, r13
cmp rax, 5
jge 0x140015c2f
movzx edx, cl
lea r8, [r10 + rax]
movzx ecx, byte [rsp + rax + 0x30]
mov r9d, r13d
cmp byte [r8 + rbx - 5], cl
cmove r9d, edx
inc rax
movzx ecx, r9b
test r9b, r9b
jne 0x140015c05
test cl, cl
lea rax, [r10 + 1]
cmovne rax, r10
mov r10, rax
lea eax, [r15 + 1]
cmovne eax, r15d
mov r15d, eax
jne 0x140015c50
cmp r10, r12
jl 0x140015c00
test cl, cl
lea r8, [0x1401e41a0]
mov qword [rsp + 0x20], r13
lea rdx, [rdi + 8]
cmove r15d, r11d
lea rcx, [rsp + 0x20]
call fcn.1401b77e4
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140015c94
movsxd r8, r15d
lea rdx, [0x1401e42ec]
add r8, rbx
call fcn.140015fb0
mov rcx, qword [rsp + 0x20]
call fcn.1401b78c0
mov edx, 1
mov rcx, rbx
call fcn.140006de0
mov r12, qword [rsp + 0x278]
mov r15, qword [rsp + 0x260]
lea r8, [0x1401e1c7c]
mov qword [rsp + 0x28], r13
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.1401b77e4
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x2b0]
test rcx, rcx
je 0x140015d24
call fcn.1401b78c0
lea r8, [0x1401e417c]
mov qword [rsp + 0x28], r13
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.1401b77e4
mov rcx, qword [rsp + 0x28]
lea rdx, str._n_CRASH_OR_KILL__n
call fcn.140015fb0
mov rcx, qword [rsp + 0x28]
call fcn.1401b78c0
lea r8, [rdi + 8]
mov rdx, rsi
mov rcx, rdi
call fcn.140015360
lea r8, [0x1401e41a0]
mov qword [rdi], r13
mov rdx, rsi
mov rcx, rdi
call fcn.1401b77e4
mov rcx, qword [rdi]
mov r14, qword [rsp + 0x268]
mov r13, qword [rsp + 0x270]
mov rsi, qword [rsp + 0x280]
test rcx, rcx
je 0x140015d6f
lea rdx, str._START_SESSION__n
call fcn.140015fb0
mov dl, 1
mov rcx, rdi
call fcn.1400154b0
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1401adf80
add rsp, 0x288
pop rdi
pop rbp
ret