Function at 0x140002780
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140033008]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x58], rcx
xor r15d, r15d
mov rcx, qword [rcx + 0x10]
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
sub rax, rcx
cmp rax, 3
jb 0x140002caf
mov r9, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400027eb
mov r9, qword [rsi]
mov qword [rsp + 0x30], 3
lea r12, [0x14002d6cc]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
call fcn.14000a590
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rdi], rax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140002883
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000287e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002cb5
call fcn.14000be9c
mov rcx, qword [rdi]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002b84
xor r14b, r14b
mov word [rsp + 0x44], r15w
mov dword [rsp + 0x4c], r15d
mov dword [rbp - 0x80], r15d
mov qword [rbp - 0x7c], 0x3e8
mov dword [rbp - 0x74], 0x3e8
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 2
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2220c4
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000290b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, 2
call fcn.140012278
lea rdx, str.DeviceIoControl_TMUSB_VR_GET_UB_STATUS__error_error_code__d_n
jmp 0x14000297f
test byte [rsp + 0x44], 1
je 0x14000292d
mov ecx, 2
call fcn.140012278
mov rcx, rax
lea rdx, str.Printer_offline_cannot_continue_n
call fcn.140001010
jmp 0x14000298a
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov r9d, 0x20
lea r8, [rbp - 0x80]
mov edx, 0x222010
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140002ae4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, 2
call fcn.140012278
lea rdx, str.DeviceIoControl_TMUSB_SET_PIPE_TIMEOUT__error_error_code__d_n
mov r8d, ebx
mov rcx, rax
call fcn.140001010
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400029bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, 2
call fcn.140012278
mov rcx, rax
mov r8d, ebx
lea rdx, str.CloseHandle___error_error_code__d_n
call fcn.140001010
mov qword [rdi], r15
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140004fc0
mov rbx, rax
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x1400029db
mov r8, qword [rax]
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.140014f5c
lea rcx, [rbp - 0x60]
call fcn.140002660
test al, al
jne 0x140002a99
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140002a07
mov r8, qword [rbx]
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.140014f5c
mov r8, r12
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.14001551c
lea rcx, [rbp - 0x60]
call fcn.140002660
test al, al
jne 0x140002a99
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140002a40
mov r8, qword [rbx]
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.140014f5c
lea r8, [0x14002d6d0]
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.14001551c
lea rcx, [rbp - 0x60]
call fcn.140002660
test al, al
jne 0x140002a99
mov rdi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140002a7d
mov rdi, qword [rbx]
mov ecx, 2
call fcn.140012278
mov rcx, rax
mov r8, rdi
lea rdx, str.Failed__s_n
call fcn.140001010
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140002ad3
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140002ace
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002cbb
mov rcx, r8
call fcn.14000be9c
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 0xf
mov byte [rbx], r14b
jmp 0x140002b41
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x58]
mov r8d, 1
lea rdx, [rsp + 0x40]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002b3e
nop dword [rax + rax]
cmp dword [rsp + 0x58], 1
jne 0x140002b3e
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x58]
mov r8d, 1
lea rdx, [rsp + 0x40]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140002b10
mov r14b, 1
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140002b7b
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140002b76
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x140002ca9
mov rcx, r8
call fcn.14000be9c
movzx eax, r14b
jmp 0x140002c69
mov rax, qword [rsi + 0x10]
sub rbx, rax
cmp rbx, 3
jb 0x140002cc1
mov r9, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140002ba2
mov r9, qword [rsi]
mov qword [rsp + 0x30], 3
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
call fcn.14000a590
lea rdi, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdi, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, 2
call fcn.140012278
mov rcx, rax
mov r9d, ebx
mov r8, rdi
lea rdx, str.CreateFile__s__error_error_code__d_n
call fcn.140001010
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140002c31
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002ca3
call fcn.14000be9c
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140002c67
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140002c62
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002ca9
mov rcx, r8
call fcn.14000be9c
xor al, al
mov byte [rsi], 0
mov qword [rsi + 0x18], 0xf
mov qword [rsi + 0x10], r15
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14000be40
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400159f0
nop
call fcn.1400159f0
nop
call fcn.1400012d0
int3
call fcn.1400159f0
int3
call fcn.1400159f0
int3
call fcn.1400012d0
int3