Function at 0x14002dec0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12, qword [rcx + 0x18]
mov rsi, rcx
sub r12, qword [rcx + 0x10]
mov r15, rdx
mov rcx, rdx
sar r12, 3
movsxd rdi, r8d
call fcn.14008ae58
lea ebx, [rdi + 1]
mov rcx, rsi
mov dword [rsp + 0x88], ebx
sub r12d, edi
jne 0x14002df1d
mov r8d, 1
mov rdx, r15
call fcn.14002e1e0
mov ebp, eax
jmp 0x14002e179
lea edx, [r12 + 0x14]
lea r8, str.too_many_arguments
call sym.luajit.exe_luaL_checkstack
mov edx, edi
lea r13, [rdi*8]
mov dword [rsp + 0x70], edx
mov ebp, 1
mov r9d, ebx
dec r12d
test ebp, ebp
je 0x14002e16e
mov rcx, qword [rsi + 0x10]
mov eax, dword [rcx + r13 + 4]
cmp eax, 0xfffffffb
jne 0x14002e08c
mov eax, dword [rcx + r13]
movzx ecx, byte [rax + 0x10]
cmp cl, 0x2a
jne 0x14002df72
movzx ecx, byte [rax + 0x11]
cmp cl, 0x6e
jne 0x14002dfbd
lea r8, [rsp + 0x20]
mov rcx, r15
lea rdx, [0x1400abef4]
call sym.luajit.exe_fscanf
mov rcx, qword [rsi + 0x18]
cmp eax, 1
jne 0x14002dfaa
movsd xmm0, qword [rsp + 0x20]
mov ebp, eax
movsd qword [rcx], xmm0
add qword [rsi + 0x18], 8
jmp 0x14002e140
mov dword [rcx + 4], 0xffffffff
add qword [rsi + 0x18], 8
xor ebp, ebp
jmp 0x14002e140
movzx eax, cl
and al, 0xdf
cmp al, 0x4c
jne 0x14002dfe2
xor r8d, r8d
mov rdx, r15
cmp cl, 0x6c
mov rcx, rsi
sete r8b
call fcn.14002e1e0
mov ebp, eax
jmp 0x14002e140
cmp cl, 0x61
mov rcx, rsi
jne 0x14002e1bc
mov ebx, 0x200
mov edx, ebx
call fcn.1400295d0
mov r9, r15
mov edx, 1
mov r8d, ebx
mov rcx, rax
mov r14, rax
call fcn.140083c20
mov rdi, rax
cmp eax, ebx
jne 0x14002e04d
nop word [rax + rax]
add ebx, ebx
mov rcx, rsi
mov edx, ebx
call fcn.1400295d0
mov r8d, ebx
mov ecx, edi
sub r8d, edi
add rcx, rax
mov r9, r15
mov edx, 1
mov r14, rax
call fcn.140083c20
add edi, eax
cmp edi, ebx
je 0x14002e020
mov rbx, qword [rsi + 0x18]
mov rdx, r14
mov r8d, edi
mov rcx, rsi
lea rax, [rbx + 8]
mov qword [rsi + 0x18], rax
call fcn.140013f60
mov dword [rbx], eax
mov dword [rbx + 4], 0xfffffffb
mov ecx, dword [rsi + 8]
mov eax, dword [rcx + 0x24]
cmp dword [rcx + 0x20], eax
jb 0x14002e140
mov rcx, rsi
call fcn.1400134e0
jmp 0x14002e140
mov edx, r9d
mov rcx, rsi
cmp eax, 0xfffeffff
ja 0x14002e1ca
call fcn.140037840
mov ebx, eax
test eax, eax
je 0x14002e108
mov edx, ebx
mov rcx, rsi
call fcn.1400295d0
mov r8d, ebx
mov r9, r15
mov edx, 1
mov rcx, rax
mov rdi, rax
call fcn.140083c20
mov rbx, qword [rsi + 0x18]
mov rdx, rdi
mov r8d, eax
mov r14, rax
lea rcx, [rbx + 8]
mov qword [rsi + 0x18], rcx
mov rcx, rsi
call fcn.140013f60
mov dword [rbx], eax
mov dword [rbx + 4], 0xfffffffb
mov edx, dword [rsi + 8]
mov ecx, dword [rdx + 0x24]
cmp dword [rdx + 0x20], ecx
jb 0x14002e101
mov rcx, rsi
call fcn.1400134e0
xor ebp, ebp
test r14d, r14d
jmp 0x14002e13c
mov rcx, r15
call fcn.14008b74c
mov rdx, r15
mov ecx, eax
mov ebx, eax
call fcn.14008c82c
mov rdx, qword [rsi + 0x18]
xor ebp, ebp
lea rcx, [rdx + 8]
mov qword [rsi + 0x18], rcx
mov ecx, dword [rsi + 8]
add ecx, 0x6c
mov dword [rdx + 4], 0xfffffffb
mov dword [rdx], ecx
cmp ebx, 0xffffffff
setne bpl
mov edx, dword [rsp + 0x70]
add r13, 8
mov r9d, dword [rsp + 0x88]
inc edx
inc r9d
mov dword [rsp + 0x70], edx
mov dword [rsp + 0x88], r9d
test r12d, r12d
jne 0x14002df44
mov ebx, edx
jmp 0x14002e172
mov ebx, dword [rsp + 0x70]
mov edi, dword [rsp + 0x80]
mov rcx, r15
call fcn.1400838cc
test eax, eax
je 0x14002e194
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call sym.luajit.exe_luaL_fileresult
jmp 0x14002e1a7
test ebp, ebp
jne 0x14002e1a3
mov rcx, qword [rsi + 0x18]
mov dword [rcx - 4], 0xffffffff
sub ebx, edi
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
inc edx
mov r8d, 0x4eb
call fcn.14000cfd0
int3
mov r8d, 0x4c8
call fcn.14000cfd0
int3