Function at 0x1800178c0
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 - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x180162880]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov rbx, r8
mov qword [rbp - 0x78], rbx
mov r12, rdx
mov qword [rsp + 0x50], rdx
mov qword [rbp - 0x30], rbx
xor esi, esi
mov rcx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x180017912
mov rcx, qword [r8]
lea rdx, [0x1801064f4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x180017955
mov qword [r12], rsi
mov qword [r12 + 8], rsi
lea ecx, [rax + 0x30]
call fcn.1800df498
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [r12], rax
mov rcx, rbx
jmp 0x180017c85
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 r13, 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 + 0x58], rsi
mov qword [rbp], rsi
mov dword [rbp + 0x20], esi
mov dword [rbp + 0xa8], esi
mov qword [rbp + 0xc0], r13
mov qword [rbp + 0xb0], r13
lea rax, [rbx + r13]
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xb8], rax
lea rax, [rbp - 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x10]
call fcn.180013c90
mov rdi, rax
mov qword [rsp + 0x50], rax
mov edx, dword [0x1801ee274]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rdx*8]
mov eax, 0x10
cmp dword [rax + rcx], 0
je 0x180017a35
mov eax, 0x14
mov ecx, dword [rax + rcx]
jmp 0x180017a3b
mov ecx, dword [0x1801ee2cc]
movsxd r15, dword [rsp + 0x44]
mov r14d, dword [rsp + 0x40]
mov edx, dword [rsp + 0x48]
test ecx, ecx
je 0x180017a99
mov esi, dword [rbp - 0x34]
mov eax, esi
imul eax, edx
imul eax, r14d
mov rbx, rdi
test r15d, r15d
jle 0x180017a97
movsxd r14, eax
mov edi, r15d
nop word [rax + rax]
mov r9d, esi
mov r8d, dword [rsp + 0x40]
mov rcx, rbx
call fcn.1800050e0
add rbx, r14
sub rdi, 1
mov edx, dword [rsp + 0x48]
jne 0x180017a70
mov r14d, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
xor esi, esi
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rsi
mov ecx, 0x30
call fcn.1800df498
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp - 0x28], rax
mov r13d, dword [rsp + 0x48]
mov eax, r13d
mov ecx, dword [rbp - 0x34]
imul eax, ecx
movsxd rdx, eax
mov rbx, rsi
mov qword [rsp + 0x48], r15
test r15d, r15d
je 0x180017c2a
movsxd r15, r14d
imul r15, rdx
mov rsi, rdi
nop dword [rax]
mov rax, qword [rsp + 0x58]
mov edi, dword [rax + rbx*4]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov r9d, r14d
mov r8d, r13d
mov rcx, rsi
call fcn.180016ae0
test rax, rax
jne 0x180017b33
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
jmp 0x180017b49
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], edi
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x70], xmm0
mov dword [rbp - 0x48], ebx
movups xmmword [rbp - 0x44], xmm0
mov rdi, qword [rbp - 0x28]
mov rax, qword [rdi + 8]
mov qword [rbp - 0x70], rax
xor edx, edx
mov dword [rbp - 0x68], edx
mov rcx, rdi
cmp byte [rax + 0x19], dl
jne 0x180017b94
nop
mov qword [rbp - 0x70], rax
cmp dword [rax + 0x1c], ebx
jge 0x180017b82
mov dword [rbp - 0x68], edx
mov rax, qword [rax + 0x10]
jmp 0x180017b8f
mov dword [rbp - 0x68], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], dl
je 0x180017b70
cmp byte [rcx + 0x19], dl
jne 0x180017b9e
cmp ebx, dword [rcx + 0x1c]
jge 0x180017c13
movabs rax, 0x555555555555555
cmp qword [rbp - 0x20], rax
je 0x180017cb7
lea rax, [rbp - 0x28]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rdx
mov ecx, 0x30
call fcn.1800df498
nop
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rax + 0x1c], xmm0
movups xmm1, xmmword [rsp + 0x70]
psrldq xmm1, 0xc
movd dword [rax + 0x2c], xmm1
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
mov word [rax + 0x18], 0
mov qword [rbp - 0x50], 0
movups xmm0, xmmword [rbp - 0x70]
movaps xmmword [rsp + 0x70], xmm0
mov r8, rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x28]
call fcn.180018650
inc rbx
add rsi, r15
cmp rbx, qword [rsp + 0x48]
jae 0x180017c28
mov ecx, dword [rbp - 0x34]
jmp 0x180017b00
xor esi, esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r12], rsi
mov qword [r12 + 8], rsi
mov ecx, 0x30
call fcn.1800df498
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov rcx, qword [rbp - 0x28]
mov qword [r12], rcx
mov qword [rbp - 0x28], rax
mov rcx, qword [r12 + 8]
mov rax, qword [rbp - 0x20]
mov qword [r12 + 8], rax
mov qword [rbp - 0x20], rcx
lea rcx, [rbp - 0x28]
call fcn.180018060
nop
mov rcx, qword [rbp - 0x78]
call fcn.180004060
mov rax, r12
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.1800df0f0
mov rbx, qword [rsp + 0x220]
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180024e50
nop
int3