Function at 0x140026490
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x188], rbx
mov rdi, r9
mov r14, r8
mov r13, rdx
mov r12, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
nop
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400264f5
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
je 0x1400264e7
xor al, al
jmp 0x1400264f7
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
mov rdx, qword [rdi + 0x10]
call qword [rax + 8]
mov al, 1
test al, al
je 0x14002691b
lea rcx, [r14 + 0x10]
mov rax, qword [rcx]
mov r8d, 0x10000
lea rdx, [rbp - 0x50]
call qword [rax]
mov rbx, qword [rax]
mov qword [rax], rsi
mov qword [rbp - 0x70], rbx
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14002652f
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rbx + 0x10]
mov dword [rbp + 0x98], eax
mov rdx, qword [rbx + 0x18]
add rdx, qword [rbx + 8]
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x98]
mov r8d, eax
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140026840
mov eax, dword [rbp + 0x98]
test eax, eax
je 0x1400266fd
mov qword [rbx + 0x10], rax
mov esi, dword [rbp + 0x98]
mov eax, esi
cqo
sub rax, rdx
sar rax, 1
mov r15, rax
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400265b0
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
je 0x14002659e
xor cl, cl
jmp 0x1400265b2
add qword [rdi + 0x10], r15
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
mov rdx, qword [rdi + 0x10]
call qword [rax + 8]
mov cl, 1
sub rsi, r15
add qword [rdi + 0x10], rsi
test cl, cl
je 0x140026681
xor esi, esi
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rbx
mov rax, qword [r14]
lea rdx, [rbp - 0x68]
mov rcx, r14
call qword [rax + 0x10]
mov rcx, r14
call fcn.14000c410
test al, al
jne 0x1400265e9
jmp 0x1400264d0
movabs rax, 0xa8a1022bd18ae1ce
mov qword [rsp + 0x40], rax
lea rax, str.c:jaworkspacecommon_ati_cdp4443product_filewindowswinnt_backup.cpp
mov qword [rsp + 0x48], rax
lea rcx, str._anonymous_namespace::SaveFileTo
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], 0x24c
lea rdx, [rbp - 0x58]
mov rcx, r14
call fcn.14000d650
nop
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x70], xmm1
mov dword [rsp + 0x20], 1
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, r12
mov rcx, rdi
call fcn.140022dc0
mov dword [rsp + 0x30], 1
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14002667c
lock dec dword [rcx]
jne 0x14002667c
mov rbx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
call qword [rax]
mov rcx, rbx
test rbx, rbx
jne 0x140026665
jmp 0x14002697d
movabs rax, 0xa8a1022bd18ae1ca
mov qword [rsp + 0x40], rax
lea rax, str.c:jaworkspacecommon_ati_cdp4443product_filewindowswinnt_backup.cpp
mov qword [rsp + 0x48], rax
lea rcx, str._anonymous_namespace::SaveFileTo
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], 0x248
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x30], xmm1
lea rcx, [0x140056930]
call fcn.140005930
mov r9, rax
mov r8d, 0x4000f
lea rdx, [rbp - 0x40]
mov rcx, r12
call fcn.140033ba0
mov dword [rsp + 0x30], 1
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
jmp 0x14002697d
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14002679b
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
jne 0x140026731
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
mov rdx, qword [rdi + 0x10]
call qword [rax + 8]
jmp 0x14002679b
movabs rax, 0xa8a1022bd18ae1d0
mov qword [rsp + 0x40], rax
lea rax, str.c:jaworkspacecommon_ati_cdp4443product_filewindowswinnt_backup.cpp
mov qword [rsp + 0x48], rax
lea rcx, str._anonymous_namespace::SaveFileTo
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], 0x24e
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp + 0x10], xmm1
lea rcx, [0x140056930]
call fcn.140005930
mov r9, rax
mov r8d, 0x4000f
lea rdx, [rbp]
lea rcx, [rbp - 0x60]
call fcn.140033ba0
mov edx, 4
jmp 0x1400267b7
mov rax, qword [0x14007bf60]
mov qword [rbp - 0x80], rax
test rax, rax
je 0x1400267ae
lock inc dword [rax]
lea rax, [rbp - 0x80]
mov edx, 2
mov dword [rsp + 0x30], edx
mov rax, qword [rax]
mov qword [r12], rax
test rax, rax
je 0x1400267ce
lock inc dword [rax]
mov edx, dword [rsp + 0x30]
or edx, 1
test dl, 4
je 0x140026801
and edx, 0xfffffffb
mov dword [rsp + 0x30], edx
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140026801
lock dec dword [rcx]
jne 0x1400267fd
mov rbx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
call qword [rax]
mov rcx, rbx
test rbx, rbx
jne 0x1400267e6
mov edx, dword [rsp + 0x30]
test dl, 2
je 0x14002697d
and edx, 0xfffffffd
mov dword [rsp + 0x30], edx
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14002697d
nop
lock dec dword [rcx]
jne 0x14002697d
mov rbx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
call qword [rax]
mov rcx, rbx
test rbx, rbx
jne 0x140026820
jmp 0x14002697d
movabs rdx, 0xa8a1022bd18ae1c1
mov qword [rsp + 0x40], rdx
lea rax, str.c:jaworkspacecommon_ati_cdp4443product_filewindowswinnt_backup.cpp
mov qword [rsp + 0x48], rax
lea rcx, str._anonymous_namespace::SaveFileTo
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], 0x23f
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x78], 0x23f
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x10], xmm1
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [0x140059b58]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x78]
call fcn.14000c540
nop
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x20], 1
mov r9, rax
lea r8, [rsp + 0x40]
mov rdx, r12
mov rcx, rdi
call fcn.140022dc0
mov dword [rsp + 0x30], 1
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14002690c
lock dec dword [rcx]
jne 0x14002690c
mov rdi, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
call qword [rax]
mov rcx, rdi
test rdi, rdi
jne 0x1400268f5
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
jmp 0x14002697d
movabs rax, 0xa8a1022bd18ae1bc
mov qword [rsp + 0x60], rax
lea rax, str.c:jaworkspacecommon_ati_cdp4443product_filewindowswinnt_backup.cpp
mov qword [rsp + 0x68], rax
lea rcx, str._anonymous_namespace::SaveFileTo
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x78], 0x23a
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x30], xmm1
lea rcx, [0x140056930]
call fcn.140005930
mov r9, rax
mov r8d, 0x4000f
lea rdx, [rbp + 0x20]
mov rcx, r12
call fcn.140033ba0
mov rax, r12
mov rbx, qword [rsp + 0x188]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret