Function at 0x14001bde0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14005b0e8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x38], r15d
mov rdi, rdx
mov rbx, rcx
call fcn.14001bb70
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14001c0c9
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, eax
mov dword [rsp + 0x38], ecx
lea eax, [rcx - 1]
cmp eax, 0xfffffffd
ja 0x14001c10a
call qword [sym.imp.msvcrt.dll_malloc]
mov r15, rax
test rax, rax
jne 0x14001bf85
mov rsi, qword [0x1417bba30]
mov rbx, qword [rsi + 0x240]
test rbx, rbx
jne 0x14001bed3
mov ecx, 0x2f
lea edx, [rax + 1]
add ecx, 2
call qword [sym.imp.msvcrt.dll_calloc]
mov qword [rsi + 0x240], rax
mov rcx, rax
test rax, rax
je 0x14001c1a9
movups xmm0, xmmword [str.Memory_allocation_failed_in_NWL_LoadIdsToMemory]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140041308]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x140041318]
movsd qword [rax + 0x20], xmm0
mov eax, dword [0x140041320]
mov dword [rcx + 0x28], eax
movzx eax, word [0x140041324]
mov word [rcx + 0x2c], ax
movzx eax, byte [0x140041326]
mov byte [rcx + 0x2e], al
jmp 0x14001c0ad
mov edx, 1
nop dword [rax + rax]
lea eax, [rdx - 1]
cmp byte [rax + rbx], 0
jne 0x14001bef1
mov edi, edx
cmp byte [rdi + rbx], 0
je 0x14001bef5
inc edx
jmp 0x14001bee0
lea ecx, [rdx + 0x2f]
mov r8, 0xffffffffffffffff
add ecx, 2
cmovb rcx, r8
lea edx, [r8 + 2]
call qword [sym.imp.msvcrt.dll_calloc]
mov rbp, rax
test rax, rax
je 0x14001c1a9
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
movups xmm0, xmmword [str.Memory_allocation_failed_in_NWL_LoadIdsToMemory]
mov rcx, rbx
movups xmmword [rdi + rbp], xmm0
movups xmm1, xmmword [0x140041308]
movups xmmword [rdi + rbp + 0x10], xmm1
movsd xmm0, qword [0x140041318]
movsd qword [rdi + rbp + 0x20], xmm0
mov eax, dword [0x140041320]
mov dword [rdi + rbp + 0x28], eax
movzx eax, word [0x140041324]
mov word [rdi + rbp + 0x2c], ax
movzx eax, byte [0x140041326]
mov byte [rdi + rbp + 0x2e], al
call qword [sym.imp.msvcrt.dll_free]
mov qword [rsi + 0x240], rbp
jmp 0x14001c0a8
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, r15
mov qword [rsp + 0x20], 0
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x14001c0f6
mov rcx, rbx
call fcn.140004890
mov rcx, qword [0x1417bba30]
lea r8, str._s_read_error
add rcx, 0x250
mov r9, rax
mov edx, 0xffff
call fcn.1400022d0
mov r13, qword [0x1417bba30]
lea rbp, [r13 + 0x250]
test rbp, rbp
je 0x14001c0ad
mov r8, 0xffffffffffffffff
mov rbx, r8
inc rbx
cmp byte [rbx + rbp], 0
jne 0x14001bff7
mov rdi, qword [r13 + 0x240]
test rdi, rdi
jne 0x14001c040
mov ecx, ebx
mov edx, 1
add ecx, 2
cmovb rcx, r8
call qword [sym.imp.msvcrt.dll_calloc]
mov qword [r13 + 0x240], rax
test rax, rax
je 0x14001c1a9
mov r8d, ebx
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
jmp 0x14001c0a8
mov edx, 1
lea eax, [rdx - 1]
cmp byte [rax + rdi], 0
jne 0x14001c056
mov esi, edx
cmp byte [rsi + rdi], 0
je 0x14001c05a
inc edx
jmp 0x14001c045
lea ecx, [rbx + rdx]
mov edx, 1
add ecx, 2
cmovb rcx, r8
call qword [sym.imp.msvcrt.dll_calloc]
mov r14, rax
test rax, rax
je 0x14001c1a9
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call sub.msvcrt.dll_memcpy
mov r8d, ebx
lea rcx, [rsi + r14]
mov rdx, rbp
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov qword [r13 + 0x240], r14
mov rdi, qword [rsp + 0x30]
test r12, r12
je 0x14001c0bb
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test r15, r15
je 0x14001c0c9
mov rcx, r15
call qword [sym.imp.msvcrt.dll_free]
mov dword [rdi], 0
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140029990
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [rsp + 0x38]
mov dword [rdi], eax
mov rax, r15
jmp 0x14001c0d1
mov rcx, rbx
call fcn.140004890
mov rcx, qword [0x1417bba30]
lea r8, str.Bad__s_file
add rcx, 0x250
mov r9, rax
mov edx, 0xffff
call fcn.1400022d0
mov r13, qword [0x1417bba30]
lea rbp, [r13 + 0x250]
test rbp, rbp
je 0x14001c0ad
mov r8, 0xffffffffffffffff
mov rbx, r8
inc rbx
cmp byte [rbx + rbp], r15b
jne 0x14001c155
mov rdi, qword [r13 + 0x240]
test rdi, rdi
je 0x14001c00c
mov edx, 1
lea eax, [rdx - 1]
cmp byte [rax + rdi], r15b
jne 0x14001c184
mov esi, edx
cmp byte [rsi + rdi], r15b
je 0x14001c188
inc edx
jmp 0x14001c173
lea ecx, [rbx + rdx]
mov edx, 1
add ecx, 2
cmovb rcx, r8
call qword [sym.imp.msvcrt.dll_calloc]
mov r14, rax
test rax, rax
jne 0x14001c07b
lea rdx, str.Failed_to_allocate_memory_in_NWL_NodeAppendMultiSz
mov ecx, 0xe
call fcn.140001650
int3