Function at 0x14000b490
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rdi
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xd8
mov rax, qword [0x14010c598]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r15d, r15d
mov byte [rcx + 9], 0
mov qword [rcx + 0x10], r15
mov rdi, rcx
mov rcx, qword [rcx]
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
je 0x14000b817
cmp byte [rdi + 8], r15b
je 0x14000b817
mov qword [rsp + 0x38], r15
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rbp - 0x29]
mov qword [rsp + 0x110], rsi
mov dword [rsp + 0x28], 0x20
xor r8d, r8d
mov edx, 0x74004
mov qword [rsp + 0x20], rax
mov sil, 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14000b589
mov rax, qword [rbp - 0x21]
mov byte [rdi + 9], sil
xor sil, sil
mov qword [rdi + 0x10], rax
cmp word [rbx], 0x5c
jne 0x14000b589
cmp word [rbx + 2], 0x5c
jne 0x14000b589
cmp word [rbx + 4], 0x2e
jne 0x14000b589
cmp word [rbx + 6], 0x5c
jne 0x14000b589
cmp word [rbx + 0xa], 0x3a
jne 0x14000b589
cmp word [rbx + 0xc], r15w
jne 0x14000b589
movzx eax, word [rbx + 8]
lea r9, [rbp - 0x51]
lea r8, [rbp - 0x59]
mov word [rbp + 0x1f], ax
lea rdx, [rbp - 0x49]
mov dword [rbp + 0x21], 0x5c003a
lea rcx, [rbp + 0x1f]
mov word [rbp + 0x25], r15w
call fcn.14000dd30
test al, al
je 0x14000b586
mov rax, qword [rbp - 0x59]
mov qword [rdi + 0x10], rax
jmp 0x14000b589
mov sil, 1
movzx edx, byte [rdi + 9]
test dl, dl
jne 0x14000b67c
mov rcx, qword [rdi]
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x38], r15
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rbp - 9]
mov dword [rsp + 0x28], 0x28
mov edx, 0x700a0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
setne dl
mov byte [rdi + 9], dl
test eax, eax
je 0x14000b5e1
mov rax, qword [rbp + 0xf]
mov qword [rdi + 0x10], rax
jmp 0x14000b67c
mov rcx, qword [rdi]
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x38], r15
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rbp - 0x41]
mov dword [rsp + 0x28], 0x18
mov edx, 0x70000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
setne dl
mov byte [rdi + 9], dl
test eax, eax
jne 0x14000b65b
mov rcx, qword [rdi]
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x38], r15
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rbp - 0x41]
mov dword [rsp + 0x28], 0x18
mov edx, 0x2404c
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
setne dl
mov byte [rdi + 9], dl
movzx eax, dl
test dl, dl
je 0x14000b67c
mov eax, dword [rbp - 0x31]
mov ecx, dword [rbp - 0x2d]
imul rcx, rax
mov eax, dword [rbp - 0x35]
imul rcx, rax
imul rcx, qword [rbp - 0x41]
mov qword [rdi + 0x10], rcx
test sil, sil
je 0x14000b80f
test dl, dl
je 0x14000b80f
mov rbx, qword [rdi + 0x10]
test rbx, rbx
je 0x14000b80f
mov rcx, qword [rdi]
lea r8, [rbp + 0x1f]
and rbx, 0xffffffffffffc000
xor r9d, r9d
mov rax, rbx
mov edx, ebx
sar rax, 0x20
mov dword [rbp + 0x1f], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14000b6d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000b7ee
mov ecx, 0x4000
mov qword [rsp + 0xd0], r14
call fcn.1400a76c0
mov rcx, qword [rdi]
lea r9, [rbp + 0x1f]
mov r8d, 0x4000
mov dword [rbp + 0x1f], r15d
mov rdx, rax
mov qword [rsp + 0x20], r15
mov rsi, rax
mov r14b, 1
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000b75f
nop dword [rax + rax]
mov ecx, dword [rbp + 0x1f]
test ecx, ecx
je 0x14000b75a
xor r14b, r14b
lea rax, [rbx + rcx]
mov qword [rdi + 0x10], rax
cmp ecx, 0x4000
jne 0x14000b7de
mov r8d, ecx
mov dword [rbp + 0x1f], r15d
mov rcx, qword [rdi]
lea r9, [rbp + 0x1f]
mov rdx, rsi
mov qword [rsp + 0x20], r15
add rbx, 0x4000
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000b710
jmp 0x14000b7de
test r14b, r14b
je 0x14000b7de
test rbx, rbx
je 0x14000b7de
mov rcx, qword [rdi]
lea r8, [rbp + 0x1f]
sub rbx, 0x4000
xor r9d, r9d
mov rax, rbx
mov edx, ebx
sar rax, 0x20
mov dword [rbp + 0x1f], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14000b796
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000b7de
test rsi, rsi
jne 0x14000b7ad
mov ecx, 0x4000
call fcn.1400a76c0
mov rsi, rax
test rax, rax
je 0x14000b7de
mov rcx, qword [rdi]
lea r9, [rbp + 0x1f]
mov r8d, 0x4000
mov dword [rbp + 0x1f], r15d
mov rdx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000b7de
mov eax, dword [rbp + 0x1f]
test eax, eax
je 0x14000b75f
add rax, rbx
mov qword [rdi + 0x10], rax
mov rcx, rsi
call fcn.1400a76a0
mov r14, qword [rsp + 0xd0]
mov rcx, qword [rdi]
lea r8, [rbp + 0x1f]
xor r9d, r9d
mov dword [rbp + 0x1f], r15d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14000b80f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0x110]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400c7aa0
add rsp, 0xd8
pop r15
pop rdi
pop rbx
pop rbp
ret