Function at 0x140004950
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 0x1400049e0
mov rdx, qword [rsp + 0xd0]
mov r9, r15
mov r8d, r10d
mov rcx, r11
call fcn.140005090
jmp 0x140004edd
mov rcx, qword [0x14016a048]
mov qword [rsp + 0x78], rbx
mov rbx, rdx
shl rbx, 0x20
or rbx, r14
mov qword [rsp + 0x50], rbx
cmp rbx, rdi
jg 0x140004eb2
cmp r8, qword [rsi + 0x68]
je 0x140004c3f
mov rax, qword [r8 + 0x10]
mov qword [rsp + 0x58], rax
cmp rax, rdi
jg 0x140004c7c
mov rdx, qword [r8 + 0x18]
add rax, rdx
mov qword [rsp + 0xe0], rdx
mov qword [rsp + 0x60], rax
dec rax
cmp rax, rbx
jge 0x140004a46
mov r8, qword [r8]
mov qword [rsp + 0x48], r8
jmp 0x1400049fb
mov r13, qword [rsp + 0x58]
mov edx, ebx
sub edx, r14d
cmp r13, rbx
jg 0x140004b00
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 [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x140004ad6
test byte [rcx + 0x1c], 4
je 0x140004ad6
cmp byte [rcx + 0x19], 5
mov r13, qword [rsp + 0xe0]
jb 0x140004ade
mov rcx, qword [rcx + 0x10]
mov r9d, r13d
mov qword [rsp + 0x20], rbx
call fcn.1400d7244
mov rcx, qword [0x14016a048]
jmp 0x140004ade
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 0x140004bb7
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.140005090
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 0x140004bd7
mov eax, dword [rsp + 0x40]
mov ebp, 1
cmp r13d, eax
je 0x140004b96
mov rcx, qword [0x14016a048]
lea rdx, [0x14016a048]
cmp rcx, rdx
je 0x140004b9d
test byte [rcx + 0x1c], 4
je 0x140004b9d
cmp byte [rcx + 0x19], 2
jb 0x140004b9d
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x1f]
mov dword [rsp + 0x28], r13d
mov r9, rbx
mov dword [rsp + 0x20], eax
call fcn.1400d7370
mov eax, dword [rsp + 0x40]
mov rcx, qword [0x14016a048]
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 0x1400049f6
mov rax, qword [0x14016a048]
lea rcx, [0x14016a048]
cmp rax, rcx
je 0x140004ed8
test byte [rax + 0x1c], 4
je 0x140004ed8
cmp byte [rax + 0x19], 2
jb 0x140004ed8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
lea r8, [0x140151c40]
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.1400c9984
jmp 0x140004ed8
lea rax, [0x14016a048]
cmp rcx, rax
je 0x140004c7c
test byte [rcx + 0x1c], 4
je 0x140004c7c
cmp byte [rcx + 0x19], 5
jb 0x140004c7c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151c40]
mov edx, 0x1d
call fcn.14000c0e8
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 [0x14016a048]
lea r14, [0x14016a048]
cmp rcx, r14
je 0x140004cdf
test byte [rcx + 0x1c], 4
je 0x140004cdf
cmp byte [rcx + 0x19], 5
jb 0x140004cdf
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.1400ca538
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 0x140004d89
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebp, eax
cmp eax, 0x3e5
jne 0x140004d54
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x140004dcd
test byte [rcx + 0x1c], 4
je 0x140004dcd
cmp byte [rcx + 0x19], 5
jb 0x140004dcd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151728]
mov edx, 0x1f8
call fcn.14000c0e8
jmp 0x140004dcd
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x140004d84
test byte [rcx + 0x1c], 4
je 0x140004d84
cmp byte [rcx + 0x19], 2
jb 0x140004d84
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151728]
mov edx, 0x1f9
mov r9d, ebp
call fcn.14000c114
mov qword [r15], rbp
jmp 0x140004db9
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x140004db6
test byte [rcx + 0x1c], 4
je 0x140004db6
cmp byte [rcx + 0x19], 5
jb 0x140004db6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151728]
mov edx, 0x1fa
call fcn.14000c0e8
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 0x140004eb2
test r13b, r13b
jne 0x140004df7
lea r8, str.splitRead
mov edx, 0x2d6
lea rcx, str.base_stor_blb_blbimg_snapvol.cxx
call fcn.140088f60
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 0x140004e6a
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x140004e71
test byte [rcx + 0x1c], 4
je 0x140004e71
cmp byte [rcx + 0x19], 2
jb 0x140004e71
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
lea r8, [0x140151c40]
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.1400c9984
mov rcx, qword [0x14016a048]
mov eax, dword [rsp + 0x40]
cmp edi, eax
je 0x140004ea7
cmp rcx, r14
je 0x140004ea7
test byte [rcx + 0x1c], 4
je 0x140004ea7
cmp byte [rcx + 0x19], 2
jb 0x140004ea7
mov rcx, qword [rcx + 0x10]
mov edx, 0x22
mov dword [rsp + 0x28], edi
mov r9, rbx
mov dword [rsp + 0x20], eax
call fcn.1400d7370
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0xc0]
add ecx, eax
jmp 0x140004eb9
mov ecx, dword [rsp + 0xc0]
test r13b, r13b
je 0x140004ec4
mov eax, ecx
mov qword [r15 + 8], rax
test ebp, ebp
jne 0x140004ed8
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