Function at 0x14002d670
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 rbx, r8d
call fcn.14008ddb0
lea r14d, [rbx + 1]
mov rcx, rsi
mov dword [rsp + 0x88], r14d
sub r12d, ebx
jne 0x14002d6d2
mov r8d, 1
mov rdx, r15
call fcn.14002d9a0
mov ebp, eax
mov edi, r14d
jmp 0x14002d874
lea edx, [r12 + 0x14]
lea r8, str.too_many_arguments
call sym.luajit.exe_luaL_checkstack
mov ebp, 1
mov dword [rsp + 0x70], ebx
mov edi, ebx
lea r13, [rbx*8]
nop word [rax + rax]
dec r12d
test ebp, ebp
je 0x14002d86d
mov rcx, qword [rsi + 0x10]
mov eax, dword [rcx + r13 + 4]
cmp eax, 0xfffffffb
jne 0x14002d896
mov eax, dword [rcx + r13]
movzx ecx, byte [rax + 0x10]
add rax, 0x10
cmp cl, 0x2a
jne 0x14002d735
movzx ecx, byte [rax + 1]
inc rax
cmp cl, 0x6e
jne 0x14002d780
lea r8, [rsp + 0x20]
mov rcx, r15
lea rdx, [0x1400b0f24]
call sym.luajit.exe_fscanf
mov rcx, qword [rsi + 0x18]
cmp eax, 1
jne 0x14002d76d
movsd xmm0, qword [rsp + 0x20]
mov ebp, eax
movsd qword [rcx], xmm0
add qword [rsi + 0x18], 8
jmp 0x14002d84f
mov dword [rcx + 4], 0xffffffff
add qword [rsi + 0x18], 8
xor ebp, ebp
jmp 0x14002d84f
movzx ecx, byte [rax]
movzx eax, cl
and al, 0xdf
cmp al, 0x4c
jne 0x14002d7a8
xor r8d, r8d
mov rdx, r15
cmp cl, 0x6c
mov rcx, rsi
sete r8b
call fcn.14002d9a0
mov ebp, eax
jmp 0x14002d84f
cmp cl, 0x61
mov rcx, rsi
jne 0x14002d97e
mov ebx, 0x200
mov edx, ebx
call fcn.140028da0
mov r9, r15
mov edx, 1
mov r8d, ebx
mov rcx, rax
mov r14, rax
call fcn.14008670c
mov rdi, rax
cmp eax, ebx
jne 0x14002d80d
nop dword [rax]
add ebx, ebx
mov rcx, rsi
mov edx, ebx
call fcn.140028da0
mov r8d, ebx
mov ecx, edi
sub r8d, edi
add rcx, rax
mov r9, r15
mov edx, 1
mov r14, rax
call fcn.14008670c
add edi, eax
cmp edi, ebx
je 0x14002d7e0
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.1400145b0
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 0x14002d843
mov rcx, rsi
call fcn.140013bd0
mov edi, dword [rsp + 0x70]
mov r14d, dword [rsp + 0x88]
inc edi
inc r14d
add r13, 8
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x88], r14d
test r12d, r12d
jne 0x14002d700
mov ebx, dword [rsp + 0x80]
mov rcx, r15
call fcn.1400863b8
test eax, eax
je 0x14002d956
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call sym.luajit.exe_luaL_fileresult
jmp 0x14002d969
mov edx, r14d
mov rcx, rsi
cmp eax, 0xfffeffff
ja 0x14002d98d
call fcn.1400370b0
mov ebx, eax
test eax, eax
je 0x14002d919
mov edx, ebx
mov rcx, rsi
call fcn.140028da0
mov r8d, ebx
mov r9, r15
mov edx, 1
mov rcx, rax
mov rdi, rax
call fcn.14008670c
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.1400145b0
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 0x14002d90b
mov rcx, rsi
call fcn.140013bd0
xor ebp, ebp
test r14d, r14d
setne bpl
jmp 0x14002d843
mov rcx, r15
call fcn.14008e86c
mov rdx, r15
mov ecx, eax
mov ebx, eax
call fcn.14008f9e0
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
cmp ebx, 0xffffffff
mov dword [rdx], ecx
setne bpl
jmp 0x14002d84f
test ebp, ebp
jne 0x14002d965
mov rcx, qword [rsi + 0x18]
mov dword [rcx - 4], 0xffffffff
sub edi, ebx
mov eax, edi
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea edx, [rdi + 1]
mov r8d, 0x4eb
call fcn.14000cf40
int3
mov r8d, 0x4c8
call fcn.14000cf40
int3