Function at 0x1801719f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x130], rbx
mov rax, qword [0x1803bc678]
xor rax, rbp
mov qword [rbp + 0xd8], rax
mov rbx, rcx
mov qword [rbp + 0x10], rcx
lea rcx, [0x1803bc070]
mov qword [rbp + 0x98], rdx
call fcn.180172cf0
test eax, eax
je 0x180171a45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
cmp dword [rbx + 8], 0
jne 0x18017235b
mov rcx, qword [rbx]
mov dword [rbx + 8], 0xffffffff
mov qword [rbx + 0x10], 0
test rcx, rcx
je 0x180172351
mov edx, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open]
mov esi, eax
cmp eax, 0xffffffff
je 0x180172351
lea rdx, [rbp + 0xa8]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32]
test eax, eax
jne 0x180171aeb
movsxd r14, dword [rbp + 0xbc]
cmp r14, 0x30
jb 0x180171aeb
mov rcx, r14
call qword [0x180225ae8]
mov qword [rbp + 0x28], rax
mov r12, rax
test rax, rax
je 0x180171aeb
mov rbx, r14
mov rdi, rax
nop dword [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
test eax, eax
jg 0x180171afc
cmp eax, 0xffffffff
jne 0x180171ae2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x180171b04
mov rcx, r12
call qword [0x180225ad8]
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov rax, qword [rbp + 0x10]
jmp 0x180172354
cdqe
add rdi, rax
sub rbx, rax
test rbx, rbx
jne 0x180171ac0
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov eax, dword [r12]
cmp eax, 0x950412de
je 0x180171b35
cmp eax, 0xde120495
je 0x180171b35
mov rcx, r12
call qword [0x180225ad8]
mov rax, qword [rbp + 0x10]
jmp 0x180172354
mov ecx, 0xf8
call qword [0x180225ae8]
mov r15, rax
mov qword [rbp], rax
test rax, rax
mov rax, qword [rbp + 0x10]
je 0x180172354
mov qword [rax + 0x10], r15
xor r10d, r10d
mov dword [r15 + 8], r10d
mov r9d, r10d
mov qword [r15], r12
mov qword [r15 + 0x10], r14
mov ecx, dword [r12]
cmp ecx, 0x950412de
mov qword [r15 + 0x20], r10
setne r9b
mov dword [r15 + 0x18], r9d
mov r8d, dword [r12 + 4]
je 0x180171b89
bswap r8d
mov eax, r8d
sar eax, 0x10
cmp eax, 1
ja 0x180172326
mov eax, dword [r12 + 8]
cmp ecx, 0x950412de
je 0x180171ba7
bswap eax
mov dword [r15 + 0x28], eax
mov eax, dword [r12 + 0xc]
cmp ecx, 0x950412de
je 0x180171bba
bswap eax
mov eax, eax
add rax, r12
mov qword [r15 + 0x30], rax
mov eax, dword [r12 + 0x10]
cmp ecx, 0x950412de
je 0x180171bd2
bswap eax
mov eax, eax
add rax, r12
mov qword [r15 + 0x38], rax
mov eax, dword [r12 + 0x14]
cmp ecx, 0x950412de
je 0x180171bea
bswap eax
mov dword [r15 + 0x58], eax
cmp eax, 2
jbe 0x180171c09
mov eax, dword [r12 + 0x18]
cmp ecx, 0x950412de
je 0x180171c02
bswap eax
mov edx, eax
add rdx, r12
jmp 0x180171c0c
mov rdx, r10
mov qword [r15 + 0x60], rdx
mov dword [r15 + 0x68], r9d
test r8w, r8w
je 0x1801722aa
test rdx, rdx
je 0x180172326
mov r13d, dword [r12 + 0x24]
cmp ecx, 0x950412de
je 0x180171c37
bswap r13d
test r13d, r13d
je 0x1801722aa
mov r15d, dword [r12 + 0x1c]
cmp ecx, 0x950412de
je 0x180171c50
bswap r15d
mov edx, dword [r12 + 0x20]
cmp ecx, 0x950412de
je 0x180171c5f
bswap edx
mov eax, r15d
shl rax, 3
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x180171c79
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1801e70d0
sub rsp, rcx
xor esi, esi
lea rcx, [rsp + 0x30]
mov qword [rbp + 0x38], rcx
test r15d, r15d
je 0x180171d08
mov r14d, edx
mov rbx, rcx
add r14, r12
mov r12, qword [rbp]
lea rdi, [r14 + 4]
sub r14, rcx
nop dword [rax]
mov ecx, dword [r12 + 0x18]
mov eax, dword [rdi]
test ecx, ecx
je 0x180171cbd
bswap eax
mov edx, eax
add rdx, qword [rbp + 0x28]
mov eax, dword [r14 + rbx]
test ecx, ecx
je 0x180171ccd
bswap eax
test eax, eax
je 0x180172323
dec eax
cmp byte [rax + rdx], 0
jne 0x180172323
mov rcx, rdx
call fcn.1801723a0
mov qword [rbx], rax
inc esi
add rbx, 8
add rdi, 8
cmp esi, r15d
jb 0x180171cb0
mov rcx, r12
mov r12, qword [rbp + 0x28]
mov r9d, dword [rcx + 0x18]
jmp 0x180171d0c
mov rcx, qword [rbp]
mov eax, dword [r12 + 0x28]
test r9d, r9d
je 0x180171d18
bswap eax
mov r11d, eax
mov eax, dword [r12 + 0x2c]
add r11, r12
mov qword [rbp + 0x40], r11
test r9d, r9d
je 0x180171d2e
bswap eax
mov edx, eax
xor r14d, r14d
add rdx, r12
xor eax, eax
mov r12d, dword [rcx + 0x58]
shl r12, 2
mov qword [rbp + 0x20], rdx
mov dword [rbp + 8], eax
test r13d, r13d
je 0x18017228c
mov r9d, dword [rcx + 0x18]
nop dword [rax]
nop dword [rax + rax]
lea rdi, [r11 + r14*4]
mov ebx, 1
lea r11, [rbp + 0x88]
xor r10d, r10d
lea rsi, [rdx + r14*4]
test r9d, r9d
je 0x180171d8d
test r10d, r10d
jne 0x180171d87
mov eax, dword [rdi]
bswap eax
jmp 0x180171d98
mov eax, dword [rsi]
bswap eax
jmp 0x180171d98
test r10d, r10d
jne 0x180171d96
mov eax, dword [rdi]
jmp 0x180171d98
mov eax, dword [rsi]
mov rdx, qword [rbp + 0x28]
xor r8d, r8d
add rdx, 4
mov eax, eax
add rdx, rax
mov eax, dword [rdx + 4]
test r9d, r9d
je 0x180171db2
bswap eax
cmp eax, 0xffffffff
je 0x180171e04
mov eax, dword [rdx]
test r9d, r9d
je 0x180171dc0
bswap eax
mov eax, eax
add r8, rax
mov eax, dword [rdx + 4]
test r9d, r9d
je 0x180171dcf
bswap eax
cmp eax, 0xffffffff
je 0x180171e04
cmp eax, r15d
jae 0x18017231d
mov rcx, qword [rbp + 0x38]
mov eax, eax
mov rcx, qword [rcx + rax*8]
test rcx, rcx
je 0x180171e02
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x180171df0
add r8, rax
add rdx, 8
jmp 0x180171db7
xor ebx, ebx
mov qword [r11], r8
test ebx, ebx
je 0x180171e3a
inc r10d
add r11, 8
cmp r10d, 2
jb 0x180171d77
mov r8d, dword [rbp + 8]
mov rcx, qword [rbp + 0x90]
inc r8d
add rcx, qword [rbp + 0x88]
mov dword [rbp + 8], r8d
add r12, rcx
jmp 0x180171e3e
mov r8d, dword [rbp + 8]
mov rdx, qword [rbp + 0x20]
inc r14d
mov r11, qword [rbp + 0x40]
cmp r14d, r13d
jb 0x180171d60
test r8d, r8d
je 0x18017228c
lea ecx, [r8 + r8]
shl rcx, 4
add rcx, r12
call qword [0x180225ae8]
mov r15, qword [rbp]
mov rdx, rax
test rax, rax
je 0x180172326
mov ecx, dword [rbp + 8]
mov rdi, rax
mov rsi, qword [rbp + 0x20]
xor r10d, r10d
shl rcx, 4
add rdx, rcx
mov qword [r15 + 0x20], rax
mov qword [rbp + 0x68], rax
mov rbx, rdx
mov qword [rbp + 0x88], rax
mov eax, dword [r15 + 0x58]
mov qword [rbp + 0x60], rdx
mov qword [rbp + 0x48], rdx
add rdx, rcx
mov rcx, qword [rbp + 0x40]
sub rcx, rsi
mov qword [rbp + 0x80], rdx
mov dword [rbp + 0x30], r10d
lea r12, [rdx + rax*4]
mov qword [rbp + 0x40], rcx
mov eax, r13d
mov qword [rbp + 0x78], rax
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [r15 + 0x18]
lea r11, [rcx + rsi]
mov qword [rbp + 0x70], r11
xor r9d, r9d
nop
test r8d, r8d
je 0x180171f05
test r9d, r9d
mov rax, r11
cmovne rax, rsi
mov ecx, dword [rax]
bswap ecx
jmp 0x180171f11
test r9d, r9d
jne 0x180171f0f
mov ecx, dword [r11]
jmp 0x180171f11
mov ecx, dword [rsi]
mov rdx, qword [rbp + 0x28]
mov eax, ecx
add rdx, 8
add rdx, rax
mov eax, dword [rdx]
mov ecx, eax
test r8d, r8d
je 0x180171f29
bswap ecx
cmp ecx, 0xffffffff
je 0x180171f54
mov rcx, qword [rbp + 0x38]
test r8d, r8d
je 0x180171f39
bswap eax
cmp eax, 0xffffffff
je 0x180171f54
mov eax, eax
cmp qword [rcx + rax*8], 0
je 0x1801721a5
mov eax, dword [rdx + 8]
add rdx, 8
jmp 0x180171f32
inc r9d
cmp r9d, 2
jb 0x180171ef0
xor r13d, r13d
shl r10, 4
mov qword [rbp + 0x58], r10
mov dword [rbp + 0x18], r13d
nop dword [rax]
mov r8d, dword [r15 + 0x18]
test r8d, r8d
je 0x180171f89
test r13d, r13d
mov rax, r11
cmovne rax, rsi
mov ecx, dword [rax]
bswap ecx
jmp 0x180171f95
test r13d, r13d
jne 0x180171f93
mov ecx, dword [r11]
jmp 0x180171f95
mov ecx, dword [rsi]
mov edx, ecx
mov rcx, qword [rbp + 0x28]
mov eax, dword [rdx + rcx]
test r8d, r8d
je 0x180171fa5
bswap eax
mov r14d, eax
lea rsi, [rcx + 4]
add rsi, rdx
add r14, rcx
test r13d, r13d
mov r15, rbx
cmove r15, rdi
mov eax, dword [rsi + 4]
add r15, r10
mov qword [rbp + 0x50], r15
test r8d, r8d
je 0x180171fcd
bswap eax
cmp eax, 0xffffffff
jne 0x180171fe6
mov eax, dword [rsi]
test r8d, r8d
je 0x180171fdb
bswap eax
mov qword [r15 + 8], r14
mov ecx, eax
jmp 0x18017206d
mov r13, qword [rbp + 0x38]
mov qword [r15 + 8], r12
mov r15, qword [rbp]
mov ecx, dword [r15 + 0x18]
mov eax, dword [rsi]
test ecx, ecx
je 0x180171ffe
bswap eax
mov edi, dword [rsi + 4]
test ecx, ecx
je 0x180172007
bswap edi
test eax, eax
je 0x180172021
mov r8d, eax
mov rdx, r14
mov rcx, r12
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
add r12, rbx
add r14, rbx
cmp edi, 0xffffffff
je 0x18017204e
mov eax, edi
or rbx, 0xffffffffffffffff
mov rdx, qword [r13 + rax*8]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x180172031
mov r8, rbx
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
add r12, rbx
add rsi, 8
jmp 0x180171ff2
mov r15, qword [rbp + 0x50]
mov rcx, r12
mov r13d, dword [rbp + 0x18]
mov r10, qword [rbp + 0x58]
mov r11, qword [rbp + 0x70]
sub rcx, qword [r15 + 8]
mov rbx, qword [rbp + 0x60]
mov rdi, qword [rbp + 0x68]
mov rax, qword [rbp]
lea r8d, [r13 + 1]
mov qword [r15], rcx
mov r9d, dword [rax + 0x18]
test r9d, r9d
je 0x180172092
test r8d, r8d
mov rax, r11
cmovne rax, qword [rbp + 0x20]
mov ecx, dword [rax]
bswap ecx
jmp 0x1801720a2
test r8d, r8d
jne 0x18017209c
mov ecx, dword [r11]
jmp 0x1801720a2
mov rcx, qword [rbp + 0x20]
mov ecx, dword [rcx]
mov edx, ecx
mov rcx, qword [rbp + 0x28]
mov eax, dword [rdx + rcx]
test r9d, r9d
je 0x1801720b2
bswap eax
mov r14d, eax
lea rsi, [rcx + 4]
add rsi, rdx
add r14, rcx
test r8d, r8d
mov r15, rbx
cmove r15, rdi
mov eax, dword [rsi + 4]
add r15, r10
mov qword [rbp + 0x50], r15
test r9d, r9d
je 0x1801720da
bswap eax
cmp eax, 0xffffffff
jne 0x1801720f6
mov eax, dword [rsi]
test r9d, r9d
je 0x1801720e8
bswap eax
mov eax, eax
mov qword [r15], rax
mov qword [r15 + 8], r14
jmp 0x18017217c
mov r13, qword [rbp + 0x38]
mov qword [r15 + 8], r12
mov r15, qword [rbp]
mov ecx, dword [r15 + 0x18]
mov eax, dword [rsi]
test ecx, ecx
je 0x18017210e
bswap eax
mov edi, dword [rsi + 4]
test ecx, ecx
je 0x180172117
bswap edi
test eax, eax
je 0x180172131
mov r8d, eax
mov rdx, r14
mov rcx, r12
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
add r12, rbx
add r14, rbx
cmp edi, 0xffffffff
je 0x18017215e
mov eax, edi
or rbx, 0xffffffffffffffff
mov rdx, qword [r13 + rax*8]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x180172141
mov r8, rbx
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
add r12, rbx
add rsi, 8
jmp 0x180172102
mov r15, qword [rbp + 0x50]
mov rax, r12
mov r13d, dword [rbp + 0x18]
mov r10, qword [rbp + 0x58]
mov rbx, qword [rbp + 0x60]
sub rax, qword [r15 + 8]
mov rdi, qword [rbp + 0x68]
mov qword [r15], rax
mov r11, qword [rbp + 0x70]
add r13d, 2
mov r15, qword [rbp]
mov rsi, qword [rbp + 0x20]
mov dword [rbp + 0x18], r13d
cmp r13d, 2
jb 0x180171f70
mov r10d, dword [rbp + 0x30]
inc r10d
mov dword [rbp + 0x30], r10d
mov rcx, qword [rbp + 0x40]
add rsi, 4
sub qword [rbp + 0x78], 1
mov qword [rbp + 0x20], rsi
jne 0x180171ee0
mov r14d, dword [rbp + 8]
cmp r10d, r14d
je 0x1801721cc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rsi, qword [rbp + 0x80]
xor edx, edx
cmp dword [r15 + 0x58], edx
jbe 0x180172205
nop dword [rax + rax]
cmp dword [r15 + 0x68], 0
lea r8, [rdx*4]
mov rax, qword [r15 + 0x60]
mov ecx, dword [r8 + rax]
je 0x1801721f9
bswap ecx
inc edx
mov dword [r8 + rsi], ecx
cmp edx, dword [r15 + 0x58]
jb 0x1801721e0
xor ebx, ebx
test r14d, r14d
je 0x18017226c
add rdi, 8
mov rcx, qword [rdi]
call fcn.180174d70
mov r10d, dword [r15 + 0x58]
xor edx, edx
mov r8d, eax
div r10d
lea ecx, [r10 - 2]
mov eax, r8d
mov r9d, edx
xor edx, edx
div ecx
inc edx
cmp dword [rsi + r9*4], 0
je 0x180172255
mov ecx, r10d
sub ecx, edx
mov eax, edx
sub eax, r10d
cmp r9d, ecx
cmovb eax, edx
add r9d, eax
cmp dword [rsi + r9*4], 0
jne 0x180172240
mov ecx, dword [r15 + 0x28]
add rdi, 0x10
inc ecx
add ecx, ebx
inc ebx
mov dword [rsi + r9*4], ecx
cmp ebx, r14d
jb 0x180172210
mov rax, qword [rbp + 0x88]
xor r10d, r10d
mov qword [r15 + 0x60], rsi
mov dword [r15 + 0x68], 0
mov dword [r15 + 0x40], r14d
mov qword [r15 + 0x48], rax
jmp 0x1801722b6
mov r15, qword [rbp]
xor r14d, r14d
xor eax, eax
mov qword [rbp + 0x48], 0
xor r10d, r10d
mov dword [r15 + 0x40], r14d
mov qword [r15 + 0x48], rax
jmp 0x1801722b6
mov qword [rbp + 0x48], r10
mov qword [r15 + 0x48], r10
mov dword [r15 + 0x40], r10d
mov rcx, qword [rbp + 0x48]
mov rax, r15
mov qword [rax + 0x50], rcx
lea rcx, [r15 + 0x80]
mov qword [r15 + 0x70], r10
mov qword [r15 + 0x78], r10
call fcn.180172e50
mov rdx, qword [rbp + 0x98]
lea rax, [rbp + 0xa0]
mov rcx, qword [rbp + 0x10]
lea r8, [0x18030b3c8]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call fcn.1801731d0
cmp rax, 0xffffffffffffffff
je 0x180172326
lea r8, [r15 + 0xf0]
mov rcx, rax
lea rdx, [r15 + 0xe8]
call fcn.180174db0
mov rax, qword [rbp + 0x10]
jmp 0x180172354
mov r15, qword [rbp]
jmp 0x180172326
mov r15, r12
mov rcx, qword [r15 + 0x20]
call qword [0x180225ad8]
mov rcx, qword [rbp + 0x28]
call qword [0x180225ad8]
mov rcx, r15
call qword [0x180225ad8]
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x10], 0
jmp 0x180172354
mov rax, rbx
mov dword [rax + 8], 1
lea rcx, [0x1803bc070]
call fcn.180172d80
test eax, eax
je 0x180172372
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.1801e5c70
mov rbx, qword [rbp + 0x130]
lea rsp, [rbp + 0xe0]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret