Function at 0x14003b4d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r12
push r13
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r15d, r15d
mov qword [rbp + 7], rcx
mov dword [rbp + 0x17], r15d
mov rsi, rcx
mov r12, qword [rcx + 0x10]
mov qword [rbp + 0xf], r12
mov rcx, qword [0x1402aa8a0]
lea r13, [0x1402aa8a0]
cmp rcx, r13
je 0x14003b544
test dword [rcx + 0x44], 0x800
je 0x14003b544
cmp byte [rcx + 0x41], 4
jb 0x14003b544
mov r9, qword [r12 + 0x28]
lea edx, [r15 + 0xb]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140261d08]
call fcn.140034f00
mov rcx, qword [r12 + 0x28]
call fcn.140140124
mov qword [rsi + 0x50], rax
test rax, rax
jne 0x14003b58c
mov rcx, qword [0x1402aa8a0]
cmp rcx, r13
je 0x14003b585
test dword [rcx + 0x44], 0x800
je 0x14003b585
cmp byte [rcx + 0x41], 3
jb 0x14003b585
mov rcx, qword [rcx + 0x38]
lea edx, [rax + 0xc]
lea r8, [0x140261d08]
call fcn.140024300
xor eax, eax
jmp 0x14003b84a
mov qword [rsp + 0xc8], rbx
lea rcx, [rsi + 0x20]
mov qword [rsp + 0xd8], r14
lea rdx, [rbp - 0x29]
mov r14, qword [r12 + 0x28]
call fcn.14003c330
mov rbx, qword [rbp - 0x21]
test rbx, rbx
je 0x14003b836
mov qword [rsp + 0xd0], rdi
test r14, r14
je 0x14003b82e
mov rcx, qword [0x1402aa8a0]
mov rdi, qword [rbp - 0x29]
cmp rcx, r13
je 0x14003b613
test dword [rcx + 0x44], 0x800
je 0x14003b613
cmp byte [rcx + 0x41], 4
jb 0x14003b613
mov rcx, qword [rcx + 0x38]
lea r8, [0x140261d08]
or r15d, 3
mov qword [rsp + 0x20], rbx
mov edx, 0xd
mov r9, rdi
call fcn.14003b290
mov rcx, qword [0x1402aa8a0]
test r15b, 2
je 0x14003b61d
and r15d, 0xfffffffd
test r15b, 1
je 0x14003b627
and r15d, 0xfffffffe
mov rax, qword [rsi + 0x18]
mov rsi, qword [rsi + 0x50]
sub rsi, r14
add rsi, qword [r12 + 0x28]
mov r13, qword [rax + 0x20]
lea rax, [0x1402aa8a0]
cmp rcx, rax
je 0x14003b668
test byte [rcx + 0x44], 1
je 0x14003b668
cmp byte [rcx + 0x41], 4
jb 0x14003b668
mov rcx, qword [rcx + 0x38]
lea r8, [0x140261980]
mov edx, 0x13
call fcn.140024300
mov r12d, dword [r13 + 0x34]
lea r8, [rbp + 0x23]
mov rcx, qword [r13 + 0x88]
mov eax, r12d
imul rax, rdi
imul r12, rbx
mov edx, eax
mov qword [rbp + 0x1f], rax
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ecx, 0xffffffff
mov dword [rbp + 0x1f], eax
cmp eax, ecx
jne 0x14003b6fe
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x14003b6f9
mov rax, qword [0x1402aa8a0]
lea r13, [0x1402aa8a0]
cmp rax, r13
je 0x14003b761
test byte [rax + 0x44], 1
je 0x14003b761
cmp byte [rax + 0x41], 2
jb 0x14003b761
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, qword [0x1402aa8a0]
lea r8, [0x140261980]
mov r9d, eax
mov edx, 0x14
mov rcx, qword [rcx + 0x38]
call fcn.1400388f0
jmp 0x14003b761
mov ecx, 0xffffffff
cmp r12, r14
mov rbx, r14
cmovbe rbx, r12
test rbx, rbx
je 0x14003b75a
nop dword [rax]
xor eax, eax
lea r9, [rbp + 0x17]
cmp rbx, rcx
mov dword [rbp + 0x17], eax
mov r8d, ebx
mov qword [rsp + 0x20], rax
cmova r8d, ecx
mov rdx, rsi
mov rcx, qword [r13 + 0x88]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
mov eax, dword [rbp + 0x17]
je 0x14003b751
sub r14, rax
add rsi, rax
mov ecx, 0xffffffff
sub rbx, rax
jne 0x14003b710
jmp 0x14003b75a
sub r14, rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea r13, [0x1402aa8a0]
mov rsi, qword [rbp + 7]
cmp qword [rsi + 0x30], 0
je 0x14003b82e
mov r8, qword [rsi + 0x28]
mov r9d, dword [rsi + 0x48]
mov r10, qword [rsi + 0x20]
movzx eax, byte [r8]
lea rdx, [r8 + 1]
movzx ecx, al
shr al, 4
and cl, 0xf
add cl, al
movzx eax, cl
add rdx, rax
lea rax, [r10 + r9]
cmp rax, rdx
jb 0x14003b82e
mov rax, qword [rsi + 0x38]
xorps xmm0, xmm0
add qword [rsi + 0x40], rax
movzx eax, byte [r8]
movzx ecx, al
mov qword [rbp - 0x29], rdx
and cl, 0xf
shr al, 4
add cl, al
movzx eax, cl
lea rcx, [rbp - 0x29]
sub r9d, eax
sub r9d, r8d
lea r8d, [r10 - 1]
add r8d, r9d
movdqu xmmword [rbp - 0x21], xmm0
call fcn.14003c650
movups xmm0, xmmword [rbp - 0x29]
movsd xmm1, qword [rbp - 0x19]
movups xmmword [rsi + 0x28], xmm0
movsd qword [rsi + 0x38], xmm1
mov rdx, qword [rsi + 0x30]
test rdx, rdx
je 0x14003b82e
mov rcx, qword [rsi + 0x38]
mov qword [rbp - 1], rdx
test rcx, rcx
jne 0x14003b810
mov qword [rbp - 9], 0xffffffffffffffff
jmp 0x14003b818
add rcx, qword [rsi + 0x40]
mov qword [rbp - 9], rcx
movaps xmm0, xmmword [rbp - 9]
mov r12, qword [rbp + 0xf]
movdqa xmmword [rbp - 0x29], xmm0
mov rbx, qword [rbp - 0x21]
jmp 0x14003b5c3
mov rdi, qword [rsp + 0xd0]
mov rax, qword [rsi + 0x50]
mov r14, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140140100
add rsp, 0x90
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret