Function at 0x14003b030
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x1402d7d18]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor r14d, r14d
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x78], r14d
mov rdi, rcx
mov rsi, qword [rcx + 0x10]
mov qword [rsp + 0x70], rsi
mov rcx, qword [0x1402daa50]
lea r15, [0x1402daa50]
cmp rcx, r15
je 0x14003b0af
test dword [rcx + 0x44], 0x800
je 0x14003b0af
cmp byte [rcx + 0x41], 4
jb 0x14003b0af
mov r9, qword [rsi + 0x28]
lea edx, [r14 + 0xb]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140291398]
call fcn.140034a00
mov rcx, qword [rsi + 0x28]
call fcn.140154684
mov qword [rdi + 0x50], rax
lea r12, [rdi + 0x20]
mov rbp, qword [rsi + 0x28]
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.14003bea0
mov r13, qword [rsp + 0x48]
test r13, r13
je 0x14003b3be
mov qword [rsp + 0xc8], rbx
test rbp, rbp
je 0x14003b3b8
mov rcx, qword [0x1402daa50]
mov rbx, qword [rsp + 0x40]
cmp rcx, r15
je 0x14003b138
test dword [rcx + 0x44], 0x800
je 0x14003b138
cmp byte [rcx + 0x41], 4
jb 0x14003b138
mov rcx, qword [rcx + 0x38]
lea r8, [0x140291398]
or r14d, 3
mov qword [rsp + 0x20], r13
mov edx, 0xd
mov r9, rbx
call fcn.14003acd0
mov rcx, qword [0x1402daa50]
test r14b, 2
je 0x14003b142
and r14d, 0xfffffffd
test r14b, 1
je 0x14003b14c
and r14d, 0xfffffffe
mov rsi, qword [rsi + 0x28]
mov rax, qword [rdi + 0x18]
sub rsi, rbp
add rsi, qword [rdi + 0x50]
mov r15, qword [rax + 0x20]
lea rax, [0x1402daa50]
cmp rcx, rax
je 0x14003b18c
test byte [rcx + 0x44], 1
je 0x14003b18c
cmp byte [rcx + 0x41], 4
jb 0x14003b18c
mov rcx, qword [rcx + 0x38]
lea r8, [0x140291010]
mov edx, 0x13
call fcn.140024250
mov edi, dword [r15 + 0x34]
lea r8, [rsp + 0x84]
mov rcx, qword [r15 + 0x88]
mov eax, edi
imul rax, rbx
imul rdi, r13
mov edx, eax
mov qword [rsp + 0x80], rax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, 0xffffffff
mov dword [rsp + 0x80], eax
cmp eax, ebx
jne 0x14003b228
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14003b228
mov rax, qword [0x1402daa50]
lea r15, [0x1402daa50]
cmp rax, r15
je 0x14003b28f
test byte [rax + 0x44], 1
je 0x14003b28f
cmp byte [rax + 0x41], 2
jb 0x14003b28f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1402daa50]
lea r8, [0x140291010]
mov r9d, eax
mov edx, 0x14
mov rcx, qword [rcx + 0x38]
call fcn.140038540
jmp 0x14003b28f
cmp rdi, rbp
jbe 0x14003b232
mov rdi, rbp
jmp 0x14003b240
test rdi, rdi
je 0x14003b288
nop word [rax + rax]
mov rcx, qword [r15 + 0x88]
lea r9, [rsp + 0x78]
xor eax, eax
mov r8d, edi
cmp rdi, rbx
mov dword [rsp + 0x78], eax
mov rdx, rsi
mov qword [rsp + 0x20], rax
cmova r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [rsp + 0x78]
je 0x14003b27f
sub rbp, rax
add rsi, rax
sub rdi, rax
jne 0x14003b240
jmp 0x14003b288
sub rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r15, [0x1402daa50]
cmp qword [r12 + 0x10], 0
je 0x14003b37a
mov r8, qword [r12 + 8]
mov r9d, dword [r12 + 0x28]
mov r10, qword [r12]
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 0x14003b37a
mov rax, qword [r12 + 0x18]
xorps xmm0, xmm0
add qword [r12 + 0x20], rax
movzx eax, byte [r8]
movzx ecx, al
mov qword [rsp + 0x40], rdx
and cl, 0xf
shr al, 4
add cl, al
movzx eax, cl
lea rcx, [rsp + 0x40]
sub r9d, eax
sub r9d, r8d
lea r8d, [r10 - 1]
add r8d, r9d
movdqu xmmword [rsp + 0x48], xmm0
call fcn.14003c1c0
movups xmm0, xmmword [rsp + 0x40]
movsd xmm1, qword [rsp + 0x50]
movups xmmword [r12 + 8], xmm0
movsd qword [r12 + 0x18], xmm1
mov rax, qword [r12 + 0x10]
test rax, rax
je 0x14003b37a
mov rdx, qword [r12 + 0x18]
mov qword [rsp + 0x68], rax
test rdx, rdx
jne 0x14003b34c
mov qword [rsp + 0x60], 0xffffffffffffffff
jmp 0x14003b356
add rdx, qword [r12 + 0x20]
mov qword [rsp + 0x60], rdx
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x40], xmm0
test rax, rax
je 0x14003b37a
mov r13, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x70]
jmp 0x14003b0e7
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140154660
lea r11, [rsp + 0x90]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, qword [rdi + 0x50]
jmp 0x14003b383
mov rax, qword [rdi + 0x50]
jmp 0x14003b38b