Function at 0x180003e98
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rdi, rdx
mov r15, rcx
mov ebx, 0x104
lea rcx, [rsp + 0x40]
mov r8d, ebx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [0x1800728b0]
lea rcx, [0x180072840]
call fcn.180005b54
mov edx, ebx
lea rcx, [rsp + 0x40]
call rax
mov esi, eax
lea r8, [0x1800702d0]
lea rax, [rsp + 0x40]
mov r13d, 1
mov edx, esi
mov qword [rsp + 0x20], rax
mov r9d, r13d
lea rcx, [rsp + 0x40]
call fcn.18000373c
lea rcx, [rbp + 0x160]
call fcn.180004228
mov rcx, rax
mov rdx, qword [rax + 0xa8]
call fcn.180005b54
lea ecx, [r13 + 1]
call rax
lea rcx, [rbp + 0x160]
call fcn.180004228
mov rcx, rax
mov rdx, qword [rax + 0xa8]
call fcn.180005b54
lea ecx, [r13 + 5]
call rax
mov r8d, ebx
lea rcx, [rbp + 0x50]
xor edx, edx
add rsi, r13
call sub.VCRUNTIME140.dll_memset
mov rax, qword gs:[0x58]
mov ecx, dword [0x180072704]
mov edx, 4
mov r14, qword [rax + rcx*8]
mov eax, dword [r14 + rdx]
cmp dword [0x1800731bc], eax
jle 0x180003fe7
lea rcx, [0x1800731bc]
call fcn.180009448
cmp dword [0x1800731bc], 0xffffffff
jne 0x180003fe7
mov dword [rsp + 0x30], 0x5f9a60fd
lea rcx, [0x1800731bc]
mov dword [rsp + 0x34], 0xb5e2a245
movsd xmm0, qword [rsp + 0x30]
mov word [rsp + 0x38], 0x9759
movzx eax, word [rsp + 0x38]
movsd qword [0x180073208], xmm0
mov word [0x180073210], ax
mov byte [0x180073212], r13b
call fcn.1800093e8
cmp byte [0x180073212], 0
lea rcx, [0x180073208]
je 0x18000400f
mov edx, 0xa
call fcn.180001020
lea rcx, [0x180073208]
mov byte [0x180073212], 0
xor ebx, ebx
cmp byte [0x180073208], bl
je 0x180004022
add ebx, r13d
cmp byte [rbx + rcx], 0
jne 0x180004019
mov eax, 4
mov eax, dword [r14 + rax]
cmp dword [0x180073294], eax
jle 0x18000408c
lea rcx, [0x180073294]
call fcn.180009448
cmp dword [0x180073294], 0xffffffff
jne 0x18000408c
mov dword [rsp + 0x30], 0x5f9a60fd
lea rcx, [0x180073294]
mov dword [rsp + 0x34], 0xb5e2a245
movsd xmm0, qword [rsp + 0x30]
mov word [rsp + 0x38], 0x9759
movzx eax, word [rsp + 0x38]
movsd qword [0x180073238], xmm0
mov word [0x180073240], ax
mov byte [0x180073242], r13b
call fcn.1800093e8
cmp byte [0x180073242], 0
je 0x1800040ad
mov edx, 0xa
lea rcx, [0x180073238]
call fcn.180001020
mov byte [0x180073242], 0
lea rax, [rbp + 0x50]
mov r9d, ebx
lea r8, [0x180073238]
mov qword [rsp + 0x20], rax
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.18000373c
and qword [rbp + 0x320], 0
lea r8, [0x1800702d4]
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x320]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [rbp + 0x320]
test rcx, rcx
je 0x1800040d5
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rbp + 0x320]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rcx, eax
xor r8d, r8d
mov qword [rdi], rcx
xor edx, edx
mov rcx, qword [rbp + 0x320]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, qword [rbp + 0x320]
mov rdx, r13
mov qword [r15], rax
mov rcx, rax
mov r8, qword [rdi]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea rcx, [rbp + 0x160]
call fcn.180004228
mov rcx, rax
mov rdx, qword [rax + 0xa8]
call fcn.180005b54
mov ecx, 5
call rax
lea rcx, [rbp + 0x160]
call fcn.180004228
mov rcx, rax
mov rdx, qword [rax + 0xa8]
call fcn.180005b54
mov ecx, r13d
call rax
mov rcx, qword [rbp + 0x320]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret