Function at 0x14004a440
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
mov r12, qword [rcx + 0x28]
mov rsi, rcx
sub r12, qword [rcx + 0x20]
mov r15, qword [rdx]
mov rcx, r15
sar r12, 3
movsxd rbx, r8d
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
lea edi, [rbx + 1]
mov rcx, rsi
mov dword [rsp + 0x70], edi
sub r12d, ebx
jne 0x14004a499
mov r8d, 1
mov rdx, r15
call fcn.14004a7a0
mov ebp, eax
mov r13d, edi
jmp 0x14004a658
lea edx, [r12 + 0x14]
lea r8, str.too_many_arguments
call fcn.14003b140
lea rcx, [rbx*8]
mov ebp, 1
mov qword [rsp + 0x78], rcx
mov r13d, ebx
movabs r14, 0xfffd800000000000
dec r12d
movabs rdx, 0x7fffffffffff
test ebp, ebp
je 0x14004a651
mov rax, qword [rsi + 0x20]
mov rcx, qword [rcx + rax]
mov rax, rcx
sar rax, 0x2f
cmp eax, 0xfffffffb
jne 0x14004a67a
and rcx, rdx
add rcx, 0x18
movzx eax, byte [rcx]
cmp al, 0x2a
jne 0x14004a50b
movzx eax, byte [rcx + 1]
inc rcx
cmp al, 0x6e
jne 0x14004a55b
lea r8, [rsp + 0x88]
mov rcx, r15
lea rdx, [0x1400f5994]
call sym.rustlualoader.exe_fscanf
mov rcx, qword [rsi + 0x28]
cmp eax, 1
jne 0x14004a548
movsd xmm0, qword [rsp + 0x88]
mov ebp, eax
movsd qword [rcx], xmm0
add qword [rsi + 0x28], 8
jmp 0x14004a631
mov qword [rcx], 0xffffffffffffffff
add qword [rsi + 0x28], 8
xor ebp, ebp
jmp 0x14004a631
movzx edx, byte [rcx]
mov rcx, rsi
movzx eax, dl
and al, 0xdf
cmp al, 0x4c
jne 0x14004a583
xor r8d, r8d
cmp dl, 0x6c
mov rdx, r15
sete r8b
call fcn.14004a7a0
mov ebp, eax
jmp 0x14004a631
cmp dl, 0x61
jne 0x14004a775
mov ebx, 0x200
mov edx, ebx
call fcn.140066930
mov r9, r15
mov edx, 1
mov r8d, ebx
mov rcx, rax
mov r14, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rdi, rax
cmp eax, ebx
jne 0x14004a5ed
nop word [rax + rax]
add ebx, ebx
mov rcx, rsi
mov edx, ebx
call fcn.140066930
mov r8d, ebx
mov ecx, edi
sub r8d, edi
add rcx, rax
mov r9, r15
mov edx, 1
mov r14, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add edi, eax
cmp edi, ebx
je 0x14004a5c0
mov rbx, qword [rsi + 0x28]
mov rdx, r14
mov r8d, edi
mov rcx, rsi
lea rax, [rbx + 8]
mov qword [rsi + 0x28], rax
call fcn.140056390
movabs r14, 0xfffd800000000000
or rax, r14
mov qword [rbx], rax
mov rcx, qword [rsi + 0x10]
mov rax, qword [rcx + 0x18]
cmp qword [rcx + 0x10], rax
jb 0x14004a62d
mov rcx, rsi
call fcn.140055790
mov edi, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
inc edi
add rcx, 8
mov dword [rsp + 0x70], edi
inc r13d
mov qword [rsp + 0x78], rcx
test r12d, r12d
jne 0x14004a4c9
mov ebx, dword [rsp + 0x80]
mov rcx, r15
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x14004a74e
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140040fc0
jmp 0x14004a764
sar rcx, 0x2f
mov edx, edi
cmp ecx, 0xfffffff2
mov rcx, rsi
ja 0x14004a785
call fcn.140065300
mov ebx, eax
test eax, eax
je 0x14004a712
mov edx, ebx
mov rcx, rsi
call fcn.140066930
mov r8d, ebx
mov r9, r15
mov edx, 1
mov rcx, rax
mov rdi, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rbx, qword [rsi + 0x28]
mov rdx, rdi
mov r8d, eax
mov r14, rax
lea rcx, [rbx + 8]
mov qword [rsi + 0x28], rcx
mov rcx, rsi
call fcn.140056390
movabs rcx, 0xfffd800000000000
or rax, rcx
mov qword [rbx], rax
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rdx + 0x18]
cmp qword [rdx + 0x10], rcx
jb 0x14004a6fa
mov rcx, rsi
call fcn.140055790
xor ebp, ebp
test r14d, r14d
movabs r14, 0xfffd800000000000
setne bpl
jmp 0x14004a62d
mov rcx, r15
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
mov rdx, r15
mov ecx, eax
mov ebx, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetc
mov rdx, qword [rsi + 0x28]
xor ebp, ebp
lea rcx, [rdx + 8]
mov qword [rsi + 0x28], rcx
mov rcx, qword [rsi + 0x10]
add rcx, 0x78
or rcx, r14
cmp ebx, 0xffffffff
mov qword [rdx], rcx
setne bpl
jmp 0x14004a631
test ebp, ebp
jne 0x14004a75e
mov rcx, qword [rsi + 0x28]
mov qword [rcx - 8], 0xffffffffffffffff
sub r13d, ebx
mov eax, r13d
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea edx, [r13 + 1]
mov r8d, 0x4ff
call fcn.1400460c0
int3
mov r8d, 0x4dc
call fcn.1400460c0
int3