Function at 0x140016f80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x14006b680]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r14d, edx
mov r12, rcx
add r14, 0x40
mov r15d, edx
xor esi, esi
mov rcx, r14
mov dword [rsp + 0x30], esi
call fcn.14001e3b0
mov rbp, rax
test rax, rax
je 0x140016fdd
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.140047d20
jmp 0x140016fe0
mov rbp, rsi
mov ecx, 0x40
call fcn.14001e3b0
mov rbx, rax
test rax, rax
je 0x140017031
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movaps xmm0, xmmword [0x14004ae30]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x14004ae40]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x14004ae50]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x14004ae60]
movups xmmword [rax + 0x30], xmm1
jmp 0x140017045
mov rbx, rsi
call fcn.140027014
mov dword ds:[rax], 0x16
call fcn.14002eccc
xor edx, edx
lea rcx, [rsp + 0x120]
mov r8d, 0x100
call fcn.140047d20
lea r8, [0x14004ae20]
lea rdx, [0x14004ae00]
lea rcx, [rsp + 0x120]
call fcn.140001500
mov r8d, 0x40
lea rcx, [rsp + 0x120]
mov rdx, rbx
call fcn.1400011a0
test rbp, rbp
jne 0x14001709d
call fcn.140027014
mov dword [rax], 0x16
jmp 0x1400170fe
nop dword [rax]
test rbx, rbx
je 0x1400170cc
cmp r14, 0x40
jb 0x1400170cc
movups xmm0, xmmword [rbx]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rbp + 0x30], xmm1
jmp 0x140017105
mov r8, r14
xor edx, edx
mov rcx, rbp
call fcn.140047d20
test rbx, rbx
jne 0x1400170ed
nop
call fcn.140027014
mov dword [rax], 0x16
jmp 0x1400170fe
cmp r14, 0x40
jae 0x140017105
call fcn.140027014
mov dword [rax], 0x22
nop
call fcn.14002eccc
xor eax, eax
mov rdi, rbx
mov ecx, 0x40
rep stosb byte [rdi], al
lea rdi, [rsp + 0x120]
mov ecx, 0x100
rep stosb byte [rdi], al
mov rcx, rbx
call fcn.14001e3b8
lea rdx, ss:[rbp + 0x40]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, r15d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x140017242
cmp r15d, dword [rsp + 0x30]
jne 0x140017242
xorps xmm0, xmm0
mov byte [rsp + 0x40], sil
xor edx, edx
lea rcx, [rsp + 0x41]
mov r8d, 0xd7
movups xmmword [rsp + 0x220], xmm0
movups xmmword [rsp + 0x230], xmm0
call fcn.140047d20
mov edx, 0x20
lea rcx, [rsp + 0x40]
call fcn.1400042b0
mov r8, r14
lea rcx, [rsp + 0x40]
mov rdx, rbp
call fcn.1400048a0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x220]
call fcn.140004240
xor eax, eax
mov rcx, r14
mov rdi, rbp
rep stosb byte [rdi], al
lea rdi, [rsp + 0x40]
mov ecx, 0xd8
rep stosb byte [rdi], al
mov rcx, rbp
call fcn.14001e3b8
mov r9, rsi
lea r10, [0x14006dcf0]
mov edi, 0x20
movzx eax, byte [r9 + r10 + 0x1f]
lea r9, [r9 - 1]
movzx r8d, byte [rsp + r9 + 0x240]
sub r8d, eax
mov eax, r8d
not eax
sar eax, 8
lea edx, [r8 - 1]
sar edx, 8
and edx, eax
and edx, esi
or edx, r8d
mov esi, edx
sub rdi, 1
jne 0x1400171e4
xor eax, eax
sar esi, 8
lea rdi, [rsp + 0x220]
mov ecx, 0x20
rep stosb byte [rdi], al
mov rdi, r10
mov ecx, 0x20
rep stosb byte [rdi], al
lea eax, [rdx - 1]
sar eax, 8
inc eax
add eax, esi
jmp 0x14001726a
xor eax, eax
mov rdi, rbp
mov rcx, r14
rep stosb byte [rdi], al
lea rdi, [0x14006dcf0]
mov ecx, 0x20
rep stosb byte [rdi], al
mov rcx, rbp
call fcn.14001e3b8
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001e390
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret