Function at 0x18008bb80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1800df080]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rdi, qword [rcx]
xor r12d, r12d
movsxd rbx, edx
mov rsi, rcx
mov qword [rbp - 0x50], 0xffffffffffffffff
mov r15, rbx
mov qword [rbp + 0x20], rbx
mov qword [rsp + 0x60], r12
cmp dword [rsi + 0x3dc], 2
lea rax, [rbx + rbx*2]
lea r13, [rcx + rax*8]
mov qword [rbp - 0x60], r12
mov ecx, 0x590
mov qword [rbp + 0x18], r13
lea r14d, [rcx - 0x18]
jne 0x18008bc0f
cmp qword [rsi + 0x4c8], 0xffffffffffffffff
mov eax, r14d
cmovne eax, ecx
cmp dword [rax + rsi], 2
je 0x18008bc0f
mov rax, qword [rsi + 0x3c8]
jmp 0x18008bc16
mov rax, qword [rsi + 0x340]
mov edx, 1
mov qword [rbp - 0x58], rax
mov r9d, edx
lea ecx, [rdx + 4]
lea r8d, [rdx + 1]
call fcn.18007a770
test al, al
je 0x18008bc41
lea rdx, [0x1800b96e0]
mov rcx, rdi
call fcn.180077a60
cmp byte [rsi + 0x671], r12b
je 0x18008bc88
lea rcx, [0x1800b976c]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x1800b9758]
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
jne 0x18008bc88
mov edx, 3
lea ecx, [rax + 6]
mov r9d, edx
lea r8d, [rax + 2]
call fcn.18007a770
test al, al
je 0x18008bc88
mov cl, 1
jmp 0x18008bc8a
xor cl, cl
mov rax, qword [r13 + 0x550]
mov byte [rax + 0x6a], cl
cmp dword [rsi + 0x3dc], 2
jne 0x18008bcc0
cmp qword [rsi + 0x4c8], 0xffffffffffffffff
mov rax, r14
mov ecx, 0x590
cmovne rax, rcx
cmp dword [rax + rsi], 2
je 0x18008bcc0
mov rax, qword [rsi + 0x610]
jmp 0x18008bcc7
mov rax, qword [rsi + 0x5c0]
test rax, rax
je 0x18008bd0b
mov edx, 1
lea ecx, [rdx + 5]
lea r9d, [rdx + 2]
lea r8d, [rdx + 1]
call fcn.18007a770
test al, al
je 0x18008bcf2
mov rax, qword [r13 + 0x550]
mov byte [rax + 0x6b], 1
jmp 0x18008bd16
lea rdx, [0x1800b9780]
mov rcx, rdi
call fcn.1800778e0
mov eax, 0x4d
jmp 0x18008c90d
mov rax, qword [r13 + 0x550]
mov byte [rax + 0x6b], r12b
mov rax, qword [r13 + 0x550]
mov qword [rax], r12
cmp dword [rsi + 0x3dc], 2
jne 0x18008bd4c
cmp qword [rsi + 0x4c8], 0xffffffffffffffff
mov rax, r14
mov ecx, 0x590
cmovne rax, rcx
cmp dword [rax + rsi], 2
je 0x18008bd4c
movzx eax, byte [rdi + 0xb03]
jmp 0x18008bd53
movzx eax, byte [rdi + 0xa5b]
test al, al
je 0x18008bd98
mov rcx, rsi
call fcn.1800722d0
mov r9d, ebx
lea rdx, [rbp - 0x60]
xor r8d, r8d
mov rcx, rsi
call fcn.180071cf0
test al, al
jne 0x18008bd90
mov rcx, qword [r13 + 0x550]
mov rax, qword [rbp - 0x60]
mov qword [rcx], rax
mov rax, qword [r13 + 0x550]
mov rcx, qword [rax]
inc dword [rcx + 0x18]
mov rcx, rsi
call fcn.180072300
mov rcx, qword [r13 + 0x550]
cmp qword [rcx], r12
jne 0x18008c617
xorps xmm0, xmm0
mov r9d, 8
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x40], 4
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
cmp byte [rsi + 0x5f8], r12b
je 0x18008be0b
cmp byte [rcx + 0x6b], r12b
mov eax, 0x20
cmovne eax, r9d
mov dword [rbp + 8], eax
cmp byte [rdi + 0xab3], r12b
je 0x18008bdf5
or eax, 0x1800
jmp 0x18008be10
cmp byte [rdi + 0xab5], r12b
je 0x18008be05
or eax, 0x1a00
jmp 0x18008be10
bts eax, 9
jmp 0x18008be10
mov eax, 0x1808
mov dword [rbp + 8], eax
cmp byte [rsi + 0x5f9], r12b
jne 0x18008be22
or eax, 4
mov dword [rbp + 8], eax
movsxd r8, dword [rsi + 0x5b0]
cmp r8d, 7
ja case.default.0x18008be4b
lea rdx, [0x180000000]
mov r12d, 0x60000
mov ecx, dword [rdx + r8*4 + 0x8c938]
add rcx, rdx
jmp rcx
mov ecx, dword [rsi + 0x3dc]
mov r10, qword [rsi]
cmp ecx, 2
jne 0x18008bea6
cmp qword [rsi + 0x4c8], 0xffffffffffffffff
mov rax, r14
mov edx, 0x590
cmovne rax, rdx
cmp dword [rax + rsi], ecx
je 0x18008be84
mov r8d, dword [rsi + 0x600]
mov r9d, dword [rsi + 0x604]
jmp 0x18008bead
cmp ecx, 2
jne 0x18008bea6
cmp qword [rsi + 0x4c8], 0xffffffffffffffff
mov rax, r14
cmovne rax, rdx
cmp dword [rax + rsi], ecx
je 0x18008bea6
mov r9d, dword [rsi + 0x604]
jmp 0x18008bead
mov r9d, dword [rsi + 0x5b4]
test r9d, 0xfffeffff
cmove r9d, r12d
sar r9d, 0x10
cmp r8d, r9d
jg 0x18008bf19
mov edx, dword [rbp - 8]
mov ecx, r8d
sub ecx, 4
je 0x18008befb
sub ecx, 1
je 0x18008bef5
sub ecx, 1
je 0x18008beef
cmp ecx, 1
jne 0x18008bf02
lea rdx, [0x1800b92e0]
mov rcx, r10
call fcn.1800778e0
jmp 0x18008c908
bts edx, 0xb
jmp 0x18008beff
bts edx, 9
jmp 0x18008beff
bts edx, 7
mov dword [rbp - 8], edx
inc r8d
cmp r8d, r9d
jle 0x18008bec4
jmp 0x18008bf19
mov dword [rbp - 8], 0x20
jmp 0x18008bf19
mov dword [rbp - 8], r9d
mov ecx, dword [rsi + 0x3dc]
mov edx, 0x590
cmp ecx, 2
jne 0x18008bf46
cmp qword [rsi + 0x4c8], 0xffffffffffffffff
mov rax, r14
cmovne rax, rdx
cmp dword [rax + rsi], ecx
je 0x18008bf46
mov rax, qword [rsi + 0x630]
jmp 0x18008bf4d
mov rax, qword [rsi + 0x5e0]
test rax, rax
je 0x18008bff6
cmp ecx, 2
jne 0x18008bf76
cmp qword [rsi + 0x4c8], 0xffffffffffffffff
cmovne r14, rdx
cmp dword [r14 + rsi], ecx
je 0x18008bf76
mov rbx, qword [rsi + 0x630]
jmp 0x18008bf7d
mov rbx, qword [rsi + 0x5e0]
xor r15d, r15d
lea rcx, [0x1800df820]
test rbx, rbx
je 0x18008bfee
mov r14, rcx
cmp byte [rbx], 0
lea rax, [0x1800df8d4]
je 0x18008bfe7
cmp r14, rax
jge 0x18008bfe7
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_strtol]
test eax, eax
jne 0x18008bfc2
mov rcx, rbx
call fcn.18008b340
test eax, eax
je 0x18008c047
mov dword [r14], eax
mov edx, 0x3a
mov rcx, rbx
add r14, 4
inc r15d
call sub.VCRUNTIME140.dll_strchr
mov rbx, rax
test rax, rax
je 0x18008bfe7
add rbx, 1
jne 0x18008bf8f
invalid
invalid
invalid
xor bh, byte [rax]
invalid