Function at 0x18005ab20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xc0
mov rax, qword [0x1800bf580]
xor rax, rsp
mov qword [rbp + 7], rax
mov ebx, dword [rbp + 0x77]
mov r14, rdx
mov r10, qword [rbp + 0x7f]
xor r11d, r11d
mov r12d, dword [rbp - 0x79]
mov r15, r8
mov r8, rcx
mov qword [rbp - 0x41], rcx
lea edx, [rbx - 0xb]
mov qword [rbp - 0x59], r10
mov dword [rbp - 0x49], ebx
mov rdi, r9
mov dword [rbp - 0x61], edx
mov esi, ebx
lea rcx, [0x180000000]
cmp ebx, edx
jbe 0x18005adf7
mov eax, dword [rbp - 0x79]
lea r13d, [rbx - 0xfb]
mov ebx, dword [rbp - 0x79]
mov qword [rbp - 0x71], rax
mov r9d, 0x73
cmp r13d, 0x22
ja case.default.0x18005abc1
movzx eax, byte [rcx + r13 + 0x5b104]
mov ecx, dword [rcx + rax*4 + 0x5b0d4]
lea rax, [0x180000000]
add rcx, rax
jmp rcx
cmp byte [r8], 0xe5
je 0x18005ade1
cmp byte [r8 + 0xb], 0xf
je 0x18005ade1
mov qword [rsp + 0x20], r8
mov r9d, 0x2e
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.18007d350
mov rcx, qword [rdi]
xor edx, edx
mov qword [rbp - 0x49], rcx
lea rcx, [rbp - 0x49]
mov dword [rbp - 0x79], eax
lea r8d, [rdx + 0x51]
call fcn.180015120
mov rbx, rax
test eax, eax
je 0x18005b0a1
mov edx, dword [rbp - 0x61]
jmp case.0x18005abc1.11
mov eax, dword [0x18009cfc6]
mov dword [rbp - 0x29], eax
movzx eax, word [0x18009cfca]
mov word [rbp - 0x25], ax
jmp case.0x18005abc1.11
mov eax, 0x53
mov word [rbp - 0x31], r9w
mov word [rbp - 0x30], ax
mov eax, 0x7465
mov word [rbp - 0x2f], ax
mov byte [rbp - 0x2d], 0
jmp case.0x18005abc1.11
cmp dword [rdi + 0x4724], 0x10
jge case.0x18005abc1.11
mov rdx, rdi
mov ecx, 0x16
call fcn.180087b80
mov edx, dword [rbp - 0x61]
jmp case.0x18005abc1.11
mov eax, dword [rdi + 0x4720]
lea rcx, [0x180000000]
shr eax, 0x17
mov r9d, eax
mov qword [rbp - 0x71], r9
movzx r12d, byte [rax + r15]
jmp 0x18005adc5
mov eax, 0x41
mov dword [rbp - 0x39], 0x53575f5f
mov word [rbp - 0x35], ax
jmp case.0x18005abc1.11
mov eax, dword [rbp - 0x79]
cmp eax, 2
jb 0x18005acbc
cmp eax, ebx
jb 0x18005ad7c
test eax, eax
jne 0x18005ace3
cmp byte [r8], 0x2e
jne 0x18005acd8
cmp byte [r8 + 1], 0x2e
jne 0x18005acd8
cmp byte [r8 + 2], 0x20
je 0x18005ad7c
cmp dword [r8 + 0x1c], 0
je 0x18005ad7c
mov esi, 0x32
mov eax, esi
sub eax, 0x32
je 0x18005ad36
sub eax, 1
je 0x18005ad0a
sub eax, 1
je 0x18005ad04
cmp eax, 1
je case.0x18005ae42.256
jmp 0x18005ad6b
mov dword [rbp - 0x69], r11d
jmp 0x18005ad6b
cmp dword [r14], 0
je 0x18005ad6b
mov rax, qword [rdi]
lea rcx, [rbp - 0x51]
mov r9, r8
mov qword [rbp - 0x51], rax
mov r8d, 0x9d
mov rdx, r15
call fcn.18004de50
test eax, eax
je 0x18005b0a1
jmp 0x18005ad60
mov rax, qword [rdi]
lea r8, str.referent_offset_not_initialized
mov dword [rsp + 0x28], 0xde
lea rdx, [rbp - 0x51]
xor r9d, r9d
mov qword [rbp - 0x51], rax
mov rcx, r10
mov qword [rsp + 0x20], r11
call fcn.180033180
mov r8, qword [rbp - 0x41]
xor r11d, r11d
mov r10, qword [rbp - 0x59]
inc esi
cmp esi, 0x36
jb 0x18005ace8
mov esi, dword [rbp - 0x49]
mov edx, dword [rbp - 0x61]
mov dword [rbp - 0x69], 1
jmp case.0x18005abc1.11
mov eax, 0x46
mov word [rbp - 0x34], ax
mov eax, 0x44
mov word [rbp - 0x33], ax
mov eax, 0x49
mov word [rbp - 0x32], ax
jmp case.0x18005abc1.11
movsd xmm0, qword [0x18009d014]
movzx eax, word [0x18009d01c]
movsd qword [rbp - 0x23], xmm0
mov word [rbp - 0x1b], ax
lea rcx, [0x180000000]
mov r9, qword [rbp - 0x71]
mov r10, qword [rbp - 0x59]
dec esi
dec r13d
mov dword [rbp - 0x49], esi
xor r11d, r11d
cmp esi, edx
jbe 0x18005ae01
mov r8, qword [rbp - 0x41]
jmp 0x18005ab97
mov dword [rbp - 0x69], 1
jmp case.0x18005ae42.256
mov word [rbp - 0x69], r11w
jmp case.0x18005ae42.256
mov r9d, dword [rbp - 0x79]
mov qword [rbp - 0x71], r9
jmp 0x18005ae04
mov ebx, dword [rbp + 0x77]
lea eax, [rbx + 0xb]
mov dword [rbp - 0x79], eax
cmp ebx, eax
jae case.0x18005ae42.256
mov r13, qword [rbp - 0x51]
mov r14d, dword [rbp - 0x79]
movsxd rsi, r12d
lea eax, [rbx - 0xfc]
mov edx, 0x6c
cmp eax, 0x10
ja case.default.0x18005ae42
mov ecx, dword [rcx + rax*4 + 0x5b128]
lea rax, [0x180000000]
add rcx, rax
jmp rcx
cmp qword [r10], 0
mov rbx, r11
jbe 0x18005aea4
nop dword [rax]
mov ecx, dword [rdi]
xor r9d, r9d
inc ecx
mov qword [rsp + 0x20], r11
xor r8d, r8d
mov rdx, r15
call r13
movsxd rcx, dword [rdi]
mov rdx, r15
call qword [rbp - 0x51]
test eax, eax
je 0x18005ae91
mov rax, qword [rbp - 0x59]
mov rdx, qword [rbp - 0x41]
mov ecx, dword [rdi]
add rdx, rbx
mov r8d, dword [rax]
sub r8d, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
movsxd rcx, eax
add rbx, rcx
mov rax, qword [rbp - 0x59]
mov r11d, 0
cmp rbx, qword [rax]
jb 0x18005ae50
mov r9, qword [rbp - 0x71]
mov qword [rbp - 0x69], rbx
mov ebx, dword [rbp + 0x77]
jmp case.0x18005ae42.257
mov r9d, dword [rdi + 0x4720]
mov ecx, 0x20
sub ecx, r12d
shr r9d, cl
lea rcx, [0x180000000]
and r9d, dword [rcx + rsi*4 + 0xbddc0]
add r9d, dword [r15 + rsi*4 + 0x64c]
mov qword [rbp - 0x71], r9
jmp case.default.0x18005ae42
mov word [rbp - 0x19], dx
jmp case.0x18005ae42.257
mov eax, dword [0x1800970d8]
lea rdx, [rbp - 0x29]
movsd xmm0, qword [str.32.d]
xor r9d, r9d
mov dword [rbp - 1], eax
xor r8d, r8d
movzx eax, word [0x1800970dc]
xor ecx, ecx
mov word [rbp + 3], ax
lea rax, [rbp - 0x39]
mov dword [rsp + 0x28], 0x96
mov qword [rsp + 0x20], rax
movsd qword [rbp - 9], xmm0
call fcn.1800295d0
xor r9d, r9d
mov dword [rsp + 0x28], 0x96
xor r8d, r8d
mov qword [rbp - 0x51], rax
lea rdx, [rbp - 0x11]
mov qword [rsp + 0x20], 0x12
xor ecx, ecx
call fcn.1800295d0
mov r13, rax
jmp 0x18005b079
cmp r12d, 0x11
je 0x18005b09a
cmp r12d, dword [rdi + 0x4724]
jg 0x18005b0a1
jmp case.0x18005ae42.257
mov word [rbp - 0x17], r11w
jmp case.0x18005ae42.257
cmp r12d, 0xff
jge 0x18005afe7
mov edx, 0xa3
mov eax, edx
sub eax, 0xa3
je 0x18005afbe
sub eax, 1
je 0x18005afa9
cmp eax, 1
je case.0x18005ae42.256
jmp 0x18005afdd
sub dword [rdi + 0x4724], r14d
movzx eax, byte [rsi + r15 + 0x400]
mov dword [rbp - 0x69], eax
jmp 0x18005afdd
movzx r14d, byte [rsi + r15 + 0x500]
cmp r14d, dword [rdi + 0x4724]
jg 0x18005b0a1
mov ecx, r14d
shl dword [rdi + 0x4720], cl
inc edx
cmp edx, 0xa6
jb 0x18005af90
movzx ecx, word [rdi + 0x4722]
lea rax, [r15 + 0x62c]
mov esi, 0xa
mov r12d, esi
cmp ecx, dword [rax]
jb 0x18005b00f
inc r12d
lea rax, [rax + 4]
inc rsi
cmp ecx, dword [rax]
jae 0x18005b001
mov ebx, 0xfc
jmp case.0x18005ae42.257
sub dword [rdi + 0x4724], r12d
mov ecx, r12d
shl dword [rdi + 0x4720], cl
movsxd rax, r9d
movzx ecx, byte [rax + r15 + 0x400]
mov dword [rbp - 0x69], ecx
jmp case.0x18005ae42.257
mov r8d, 1
lea rdx, str.load_level
lea rcx, [rbp - 0x29]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
mov r8d, 3
lea rdx, [0x18009d040]
lea rcx, [rbp - 0x11]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov eax, dword [0x18009baf0]
mov dword [rbp - 0xd], eax
movzx eax, word [0x18009baf4]
mov word [rbp - 9], ax
mov r9, qword [rbp - 0x71]
lea rcx, [0x180000000]
inc ebx
mov dword [rbp + 0x77], ebx
cmp ebx, dword [rbp - 0x79]
jae case.0x18005ae42.256
mov r10, qword [rbp - 0x59]
xor r11d, r11d
jmp 0x18005ae1d
add dword [rdi + 0x4724], 0xfffffff0
mov dword [rbp - 0x69], 0xffffffff
mov rax, qword [rbp - 0x69]
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1800938b0
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret