Function at 0x18008dc60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov edi, dword [rbp + 0x58]
lea eax, [r9 + 9]
mov dword [rbp - 0x2c], eax
mov r12, r8
mov r14, rdx
mov r15, rcx
cmp r9d, eax
jae case.0x18008dce2.5
mov r13, qword [rbp - 0x28]
lea eax, [r9 - 0x86]
mov edx, dword [rbp - 0x2c]
lea r8, [0x180000000]
mov dword [rbp - 0x30], eax
lea rsi, [0x180110768]
mov ecx, dword [rbp - 0x30]
mov eax, dword [rbp + 0x58]
cmp ecx, 0x1d
ja case.default.0x18008dce2
mov eax, dword [rbp - 0x30]
movzx eax, byte [r8 + rax + 0x8e0c0]
mov ecx, dword [r8 + rax*4 + 0x8e09c]
add rcx, r8
jmp rcx
xor r12d, r12d
lea rsi, [0x18111109c]
nop
cmp dword [rsi - 0x20], 0
je 0x18008ddbf
mov eax, dword [rsi]
cmp eax, dword [r14]
je case.0x18008dce2.3
jae 0x18008ddbf
mov edi, dword [rsi - 0x18]
test edi, edi
je 0x18008ddb6
cmp edi, dword [r14]
je case.0x18008dce2.3
mov ebx, 0x13
mov eax, ebx
sub eax, 0x12
je 0x18008dd9d
cmp eax, 1
jne 0x18008dda3
mov rax, qword [r15]
lea rdx, [rbp - 0x20]
xor r9d, r9d
mov qword [rbp - 0x20], rax
mov r8d, 0xfa
mov dword [rbp - 0x18], edi
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x20], 0
call fcn.180088620
test eax, eax
je 0x18008dd93
mov dword [rbp - 0x20], eax
lea r9, [rbp - 0x28]
mov rax, qword [r15]
lea r8, [rbp - 0x18]
lea rdx, [0x181110e70]
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x18], 1
mov dword [rsp + 0x20], 0x2b
call fcn.18002e750
cmp eax, 0xffffffff
jne 0x18008dda3
mov eax, 0xffffffff
jmp 0x18008e061
mov edi, dword [0x181110e70]
dec ebx
cmp ebx, 0x11
ja 0x18008dd24
test edi, edi
jne 0x18008dd16
cmp edi, dword [r14]
je case.0x18008dce2.3
inc r12d
add rsi, 0x30
cmp r12d, 0xa
jl 0x18008dcf0
mov r12, qword [rbp + 0x50]
xor edi, edi
mov edx, dword [rbp - 0x2c]
lea r8, [0x180000000]
lea rsi, [0x180110768]
jmp case.0x18008dce2.8
mov rax, qword [r15]
lea rcx, [rbp - 0x28]
xor edx, edx
mov qword [rbp - 0x28], rax
lea r8d, [rdx + 0x51]
call fcn.180015120
mov rbx, rax
test eax, eax
je 0x18008e079
mov rax, qword [r15]
lea r9, [rbp - 0x20]
lea r8, [rbp - 0x28]
mov qword [rbp - 0x28], rax
mov edx, 0xf6
mov dword [rbp - 0x18], 8
lea rcx, [rbp - 0x18]
mov dword [rbp - 0x20], ebx
mov qword [rsp + 0x20], rsi
call fcn.18000b120
test eax, eax
je 0x18008e079
mov rax, qword [r15]
lea r9, [rbp - 0x20]
xor edx, edx
mov qword [rbp - 0x28], rax
mov r8d, 0x107
mov dword [rbp - 0x20], ebx
lea rcx, [rbp - 0x28]
call fcn.180010210
mov edx, dword [rbp - 0x2c]
lea r8, [0x180000000]
mov qword [0x180110778], rax
jmp case.0x18008dce2.8
mov eax, dword [rbp - 0x10]
lea r9, [rbp - 0x10]
mov dword [rbp - 0x20], eax
lea rdx, [rbp - 0x20]
mov rax, qword [r15]
lea rcx, [rbp - 0x28]
mov r8d, 0x100
mov qword [rbp - 0x28], rax
call fcn.18007bb00
test eax, eax
je 0x18008e079
mov eax, dword [rbp - 0x10]
mov esi, dword [r12]
and eax, 0xfffffff
cmp eax, 0xffffff7
jne 0x18008df64
mov ebx, 0x12b
nop dword [rax + rax]
mov eax, ebx
sub eax, 0x66
je 0x18008df81
sub eax, 0x23
je 0x18008df21
sub eax, 0xa2
je 0x18008df17
sub eax, 0x75f7
je 0x18008df06
cmp eax, 0x75f7
jne 0x18008df50
movsx eax, byte [r13]
mov ecx, dword [rbp - 0xc]
btr eax, ecx
mov byte [r13], al
jmp 0x18008df50
mov r13d, dword [rbp - 8]
mov eax, esi
and eax, 7
mov dword [rbp - 0xc], eax
add r13, r14
jmp 0x18008df50
mov eax, esi
shr eax, 3
mov dword [rbp - 8], eax
jmp 0x18008df50
test r14, r14
je 0x18008df50
mov rdx, qword [r14]
xor r8d, r8d
mov ecx, 0x97
call fcn.180079da0
mov rdx, qword [r14 + 8]
xor r8d, r8d
mov ecx, 0x97
call fcn.180079da0
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add ebx, 0x75f7
cmp ebx, 0x24dd3
jbe 0x18008ded0
jmp 0x18008df81
xor r9d, r9d
mov dword [rbp - 0x20], esi
lea rax, [rbp - 0x20]
mov rdx, r14
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0x44]
call fcn.18002ec80
mov ecx, dword [rbp - 0x10]
lea eax, [rcx - 2]
mov dword [r12], eax
mov eax, ecx
and eax, 0xfffffff
je 0x18008ddd6
cmp eax, 0xffffff7
je 0x18008ddd6
cmp eax, 0xfffffff
je 0x18008ddd6
mov rax, qword [r15]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x20], ecx
mov r8d, 0x64
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x28], rax
call fcn.18001f840
test eax, eax
je 0x18008ddd6
mov ecx, dword [r12]
mov eax, ecx
and cl, 7
shr rax, 3
movzx edx, byte [rax + r14]
sar dl, cl
test dl, 1
je case.0x18008dce2.2
jmp 0x18008ddd6
cmp qword [0x180110778], 0
je 0x18008e079
mov rax, qword [r15]
lea rdx, [0x180008170]
mov qword [rsp + 0x28], 0
lea rcx, [rbp - 0x28]
xor r9d, r9d
mov qword [rbp - 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x20], 0xd6
call fcn.1800376b0
test eax, eax
je 0x18008e079
mov edx, dword [rbp - 0x2c]
lea r8, [0x180000000]
jmp case.0x18008dce2.8
mov eax, dword [r12]
add eax, 2
mov dword [rbp - 0x10], eax
mov ecx, dword [rbp - 0x30]
mov eax, dword [rbp + 0x58]
inc eax
inc ecx
mov dword [rbp + 0x58], eax
mov dword [rbp - 0x30], ecx
cmp eax, edx
jb 0x18008dcc2
mov eax, edi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
jmp 0x18008e061
movsxd r8, dword [r12]
mov r9, r15
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
jmp 0x18008e061
mov eax, 1
jmp 0x18008e061