Function at 0x140004b80
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r15, qword [rsp + 0xe0]
mov rsi, rcx
xor r12d, r12d
mov r10d, r9d
mov r11, rdx
mov dword [rsp + 0x40], r12d
mov r9, r8
mov dword [rsp + 0xc0], r12d
mov edx, dword [r15 + 0x14]
xor r13b, r13b
mov r14d, dword [r15 + 0x10]
lea rdi, [r10 - 1]
mov rax, qword [rsi + 0x68]
mov ecx, edx
shl rcx, 0x20
mov ebp, r12d
or rcx, r14
add rdi, rcx
mov r8, qword [rax]
mov qword [rsp + 0x48], r8
cmp r11, qword [rsi + 8]
jne 0x140004c10
mov rdx, qword [rsp + 0xd0]
mov r9, r15
mov r8d, r10d
mov rcx, r11
call fcn.1400052c0
jmp 0x14000510d
mov rcx, qword [0x140173048]
mov qword [rsp + 0x78], rbx
mov rbx, rdx
shl rbx, 0x20
or rbx, r14
mov qword [rsp + 0x50], rbx
cmp rbx, rdi
jg 0x1400050e2
cmp r8, qword [rsi + 0x68]
je 0x140004e6f
mov rax, qword [r8 + 0x10]
mov qword [rsp + 0x58], rax
cmp rax, rdi
jg 0x140004eac
mov rdx, qword [r8 + 0x18]
add rax, rdx
mov qword [rsp + 0xe0], rdx
mov qword [rsp + 0x60], rax
dec rax
cmp rax, rbx
jge 0x140004c76
mov r8, qword [r8]
mov qword [rsp + 0x48], r8
jmp 0x140004c2b
mov r13, qword [rsp + 0x58]
mov edx, ebx
sub edx, r14d
cmp r13, rbx
jg 0x140004d30
mov rax, qword [rsp + 0xe0]
mov ecx, r10d
mov r8, qword [rsp + 0x60]
sub eax, ebx
add eax, r13d
sub ecx, edx
sub r8, rbx
cmp rcx, r8
cmovl eax, ecx
mov ecx, edx
add rcx, r9
mov qword [rsp + 0xe0], rax
mov r8d, eax
mov qword [rsp + 0x50], rax
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140004d06
test byte [rcx + 0x1c], 4
je 0x140004d06
cmp byte [rcx + 0x19], 5
mov r13, qword [rsp + 0xe0]
jb 0x140004d0e
mov rcx, qword [rcx + 0x10]
mov r9d, r13d
mov qword [rsp + 0x20], rbx
call fcn.1400de9c4
mov rcx, qword [0x140173048]
jmp 0x140004d0e
mov r13, qword [rsp + 0xe0]
mov r8, qword [rsp + 0x48]
add dword [rsp + 0xc0], r13d
mov r13b, 1
mov rdx, qword [rsp + 0x50]
mov r8, qword [r8]
mov qword [rsp + 0x48], r8
jmp 0x140004de7
add rdx, r9
mov dword [r15 + 0x10], ebx
mov rax, rbx
sub r13d, ebx
shr rax, 0x20
mov r9, r15
mov r8d, r13d
mov dword [r15 + 0x14], eax
mov rcx, r11
call fcn.1400052c0
mov rcx, qword [rsp + 0xc8]
lea r8, [rsp + 0x40]
mov r9d, 1
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
nop dword [rax + rax]
test eax, eax
je 0x140004e07
mov eax, dword [rsp + 0x40]
mov ebp, 1
cmp r13d, eax
je 0x140004dc6
mov rcx, qword [0x140173048]
lea rdx, [0x140173048]
cmp rcx, rdx
je 0x140004dcd
test byte [rcx + 0x1c], 4
je 0x140004dcd
cmp byte [rcx + 0x19], 2
jb 0x140004dcd
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x1f]
mov dword [rsp + 0x28], r13d
mov r9, rbx
mov dword [rsp + 0x20], eax
call fcn.1400deaf0
mov eax, dword [rsp + 0x40]
mov rcx, qword [0x140173048]
add dword [rsp + 0xc0], eax
mov r8, qword [rsp + 0x48]
mov eax, r13d
movzx r13d, bpl
mov qword [rsp + 0x50], rax
mov edx, eax
mov r10d, dword [rsp + 0xd8]
mov r11, qword [rsp + 0xc8]
add rbx, rdx
mov r9, qword [rsp + 0xd0]
jmp 0x140004c26
mov rax, qword [0x140173048]
lea rcx, [0x140173048]
cmp rax, rcx
je 0x140005108
test byte [rax + 0x1c], 4
je 0x140005108
cmp byte [rax + 0x19], 2
jb 0x140005108
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
lea r8, [0x14015a2e0]
mov r9d, dword [r15 + 0x14]
mov edx, 0x1f
mov dword [rsp + 0x28], eax
mov eax, dword [r15 + 0x10]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.1400d1104
jmp 0x140005108
lea rax, [0x140173048]
cmp rcx, rax
je 0x140004eac
test byte [rcx + 0x1c], 4
je 0x140004eac
cmp byte [rcx + 0x19], 5
jb 0x140004eac
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a2e0]
mov edx, 0x1d
call fcn.14000c328
mov r11, qword [rsp + 0xc8]
mov r9, qword [rsp + 0xd0]
mov eax, dword [rsp + 0x54]
mov esi, ebx
sub esi, r14d
mov dword [r15 + 0x10], ebx
mov ebp, esi
sub edi, ebx
add rbp, r9
mov dword [r15 + 0x14], eax
inc edi
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x140004f0f
test byte [rcx + 0x1c], 4
je 0x140004f0f
cmp byte [rcx + 0x19], 5
jb 0x140004f0f
mov rcx, qword [rcx + 0x10]
mov edx, 0x1f7
mov dword [rsp + 0x38], eax
mov r9, r11
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbp
call fcn.1400d1cb8
mov r11, qword [rsp + 0xc8]
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov r8d, edi
mov rdx, rbp
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x140004fb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebp, eax
cmp eax, 0x3e5
jne 0x140004f84
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x140004ffd
test byte [rcx + 0x1c], 4
je 0x140004ffd
cmp byte [rcx + 0x19], 5
jb 0x140004ffd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159dc8]
mov edx, 0x1f8
call fcn.14000c328
jmp 0x140004ffd
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x140004fb4
test byte [rcx + 0x1c], 4
je 0x140004fb4
cmp byte [rcx + 0x19], 2
jb 0x140004fb4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159dc8]
mov edx, 0x1f9
mov r9d, ebp
call fcn.14000c354
mov qword [r15], rbp
jmp 0x140004fe9
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x140004fe6
test byte [rcx + 0x1c], 4
je 0x140004fe6
cmp byte [rcx + 0x19], 5
jb 0x140004fe6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159dc8]
mov edx, 0x1fa
call fcn.14000c328
mov r12d, edi
mov qword [r15 + 8], r12
mov rcx, qword [r15 + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov ebp, 1
test esi, esi
je 0x1400050e2
test r13b, r13b
jne 0x140005027
lea r8, str.splitRead
mov edx, 0x2d6
lea rcx, str.base_stor_blb_blbimg_snapvol.cxx
call fcn.1400906e0
mov rcx, qword [rsp + 0xc8]
lea r8, [rsp + 0x40]
mov r9d, ebp
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
nop dword [rax + rax]
test eax, eax
jne 0x14000509a
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x1400050a1
test byte [rcx + 0x1c], 4
je 0x1400050a1
cmp byte [rcx + 0x19], 2
jb 0x1400050a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
lea r8, [0x14015a2e0]
mov r9d, dword [r15 + 0x14]
mov edx, 0x21
mov dword [rsp + 0x28], eax
mov eax, dword [r15 + 0x10]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.1400d1104
mov rcx, qword [0x140173048]
mov eax, dword [rsp + 0x40]
cmp edi, eax
je 0x1400050d7
cmp rcx, r14
je 0x1400050d7
test byte [rcx + 0x1c], 4
je 0x1400050d7
cmp byte [rcx + 0x19], 2
jb 0x1400050d7
mov rcx, qword [rcx + 0x10]
mov edx, 0x22
mov dword [rsp + 0x28], edi
mov r9, rbx
mov dword [rsp + 0x20], eax
call fcn.1400deaf0
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0xc0]
add ecx, eax
jmp 0x1400050e9
mov ecx, dword [rsp + 0xc0]
test r13b, r13b
je 0x1400050f4
mov eax, ecx
mov qword [r15 + 8], rax
test ebp, ebp
jne 0x140005108
mov rcx, qword [r15 + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x78]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret