Function at 0x18003e570
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
movaps xmmword [rsp + 0x1c0], xmm6
mov rax, qword [0x18024bd40]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rbx, rdx
mov qword [rbp - 0x70], rdx
mov rsi, rcx
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x60], rdx
mov dword [rsp + 0x58], 1
xor r14d, r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
lea ecx, [r14 + 0x38]
call fcn.1801904b0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsi], rax
mov dword [rsp + 0x58], 1
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x18003e5fe
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rax
call fcn.18018fb68
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.18003c240
mov dword [rsp + 0x58], 0xf
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rcx, qword [rbp - 0x50]
lea rdx, [0x1801a548c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x18003e695
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003e690
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003e690
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801904ec
movdqa xmm0, xmmword [0x1801a4d80]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
test rdi, rdi
jne 0x18003e6b3
mov rcx, rbx
jmp 0x18003e96c
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbx, eax
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
mov r9, rdi
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsp + 0x78], r14
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x40], r14d
mov qword [rbp - 0x20], r14
mov dword [rbp], r14d
mov dword [rbp + 0x88], r14d
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0x90], r12
lea rax, [rbx + r12]
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0x98], rax
mov dword [rsp + 0x30], r14d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x30]
call fcn.180047920
mov rbx, rax
mov qword [rsp + 0x70], rax
mov edx, dword [0x1802a15b8]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rdx*8]
mov eax, 8
cmp dword [rax + rcx], 0
je 0x18003e7af
mov eax, 0xc
mov ecx, dword [rax + rcx]
jmp 0x18003e7b5
mov ecx, dword [0x18026609c]
mov r13d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x44]
mov r15d, dword [rsp + 0x50]
test ecx, ecx
je 0x18003e80d
mov eax, dword [rsp + 0x40]
imul eax, edx
imul eax, r13d
test r15d, r15d
jle 0x18003e80d
movsxd r14, eax
mov edi, r15d
mov r15d, dword [rsp + 0x40]
mov r9d, r15d
mov r8d, edx
mov edx, r13d
mov rcx, rbx
call fcn.18004eed0
add rbx, r14
sub rdi, 1
mov edx, dword [rsp + 0x44]
jne 0x18003e7e2
mov r15d, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x70]
xor r14d, r14d
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [rsp + 0x40]
mov eax, edx
imul eax, r13d
movsxd rcx, eax
mov rdi, r14
movsxd rax, r15d
mov qword [rsp + 0x50], rax
test r15d, r15d
je 0x18003e95c
mov qword [rsp + 0x60], rsi
movsxd r15, dword [rsp + 0x44]
mov r12, r15
imul r12, rcx
mov r14, rbx
nop dword [rax + rax]
mov rax, qword [rsp + 0x78]
mov ebx, dword [rax + rdi*4]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
mov r9d, r15d
mov r8d, r13d
xor edx, edx
mov rcx, r14
call fcn.18004f860
test rax, rax
jne 0x18003e884
xorps xmm6, xmm6
movups xmmword [rbp - 0x80], xmm6
jmp 0x18003e896
mov qword [rbp - 0x80], rax
mov eax, dword [rsp + 0x48]
mov dword [rbp - 0x78], eax
mov dword [rbp - 0x74], ebx
movups xmm6, xmmword [rbp - 0x80]
mov rbx, qword [rsi]
mov qword [rsp + 0x68], 0
mov ecx, 0x38
call fcn.1801904b0
mov r8, rax
mov qword [rsp + 0x68], rax
mov dword [rax + 0x20], edi
movups xmmword [rax + 0x28], xmm6
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
mov rcx, qword [rsi]
mov rax, qword [rcx + 8]
mov qword [rbp - 0x50], rax
xor edx, edx
mov dword [rbp - 0x48], edx
cmp byte [rax + 0x19], dl
jne 0x18003e905
mov qword [rbp - 0x50], rax
cmp dword [rax + 0x20], edi
jge 0x18003e8f3
mov dword [rbp - 0x48], edx
mov rax, qword [rax + 0x10]
jmp 0x18003e900
mov dword [rbp - 0x48], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], dl
je 0x18003e8e1
cmp byte [rcx + 0x19], dl
jne 0x18003e91e
cmp edi, dword [rcx + 0x20]
jl 0x18003e91e
mov edx, 0x38
mov rcx, r8
call fcn.1801904ec
jmp 0x18003e947
movabs rax, 0x492492492492492
cmp qword [rsi + 8], rax
je 0x18003e9a6
mov qword [rsp + 0x68], rdx
movups xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp - 0x50], xmm0
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.18002ec00
inc rdi
add r14, r12
cmp rdi, qword [rsp + 0x50]
mov edx, dword [rsp + 0x40]
jne 0x18003e850
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbp - 0x70]
call fcn.18002b2f0
mov rax, rsi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1801909d0
mov rbx, qword [rsp + 0x220]
movaps xmm6, xmmword [rsp + 0x1c0]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18002f870
nop
int3