Function at 0x14004c90c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x1401120c0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, r8
mov rbx, rdx
mov r15, qword [0x140126fb8]
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
xor r14d, r14d
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], r14
lea r8d, [r14 + 1]
lea rdx, [0x1400edb2c]
lea rcx, [rbp - 1]
call fcn.1400060ec
nop
lea rax, [0x140126d30]
mov qword [rbp - 9], rax
mov rcx, rax
call fcn.140086500
test eax, eax
jne 0x14004cbc1
cmp dword [0x140126d7c], 0x7fffffff
je 0x14004cbcc
lea edx, [rax + 0xa]
mov rcx, r15
call fcn.140053bbc
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x21], r14
lea r8d, [r14 + 0x13]
lea rdx, str.CUSTOM_INIT_MESSAGE
lea rcx, [rbp - 0x39]
call fcn.140013434
lea rdx, [rbp - 0x39]
mov rcx, r15
call fcn.1400454f0
mov dword [rbp - 0x19], r14d
mov dword [rbp - 0x11], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x11]
lea r8d, [r14 + 4]
lea rdx, [rbp - 0x19]
mov rcx, qword [r15 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [rbp + 0x17]
mov rdi, qword [rbp - 1]
cmp dword [rbp - 0x19], 1
jne 0x14004cb50
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x21], r14
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x14004ca21
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.14001d4f8
lea rdx, [rbp - 0x39]
mov rcx, r15
call fcn.14004564c
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x21], r14
lea r13, [rbp - 1]
mov ecx, 7
cmp r12, rcx
cmova r13, rdi
movabs r14, 0x7ffffffffffffffe
mov rbx, qword [rbp + 0xf]
cmp rbx, r14
ja 0x14004cbe1
cmp rbx, rcx
ja 0x14004ca8b
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], rcx
movups xmm0, xmmword [r13]
movdqu xmmword [rbp - 0x39], xmm0
jmp 0x14004cb0c
mov rax, rbx
or rax, rcx
cmp rax, r14
jbe 0x14004caa6
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14004cad8
mov r14, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r14, rcx
lea rcx, [r14 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14004cbe7
add rcx, rcx
cmp rcx, 0x1000
jb 0x14004cadf
call fcn.140020330
jmp 0x14004caed
test rcx, rcx
je 0x14004caeb
call fcn.140087a74
jmp 0x14004caed
xor eax, eax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], r14
lea r8, [rbx*2 + 2]
mov rdx, r13
mov rcx, rax
call fcn.1400ad600
lea rdx, [rbp - 0x39]
mov rcx, r15
call fcn.14004564c
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
and qword [rbp - 0x29], 0
and qword [rbp - 0x21], 0
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 7
jbe 0x14004cb37
mov rsi, qword [rsi]
mov rdx, rsi
lea rcx, [rbp - 0x39]
call fcn.14001d4f8
lea rdx, [rbp - 0x39]
mov rcx, r15
call fcn.14004564c
nop
lea rcx, [0x140126d30]
call fcn.140086508
nop
cmp r12, 7
jbe 0x14004cb94
lea rdx, [r12*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14004cb8c
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004cbbb
mov rcx, rdi
call fcn.140087a40
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140087a20
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14008e954
nop
mov ecx, 5
call fcn.1400864a4
int3
mov dword [0x140126d7c], 0x7ffffffe
mov ecx, 6
call fcn.1400864a4
nop
call fcn.140001854
int3
call fcn.1400017bc
int3