Function at 0x1400a6ee0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rdi, r8
mov r13, rcx
xor esi, esi
mov dword [rsp + 0x40], esi
lea ebx, [rsi + 0xe]
xor r9d, r9d
lea r8, str.plugins.01000600.settings.Ecmd.Enabled
lea rdx, [rbp - 0x70]
call fcn.140081c00
nop
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.140031290
lea r15d, [rsi - 1]
test al, al
je 0x1400a7200
xor edx, edx
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
add rax, 2
je 0x1400a7200
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rsi + 3]
mov rcx, rax
call qword [case.0x1401ba071.53]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400a7200
mov byte [rsp + 0x60], sil
mov rax, qword [case.0x1401b9e8b.6]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r12
mov edi, 1
mov dword [rsp + 0x40], edi
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [rsi - 1]
cmp eax, 0xfffffffd
ja 0x1400a71ef
lea ecx, [rsi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x1400a71ef
mov byte [rsi + rax], 0
mov byte [rsp + 0x78], 0
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], r14
mov dword [rsp + 0x40], 3
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xa8]
mov r8d, esi
mov rdx, r14
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a71da
cmp dword [rbp + 0xa8], esi
jne 0x1400a71da
xor r9d, r9d
lea r8, str.plugins.01000600.settings.Ecmd.AuthType
lea rdx, [rbp - 0x10]
mov rcx, r13
call fcn.140081c00
nop
xor edx, edx
lea rcx, [rbp - 0x10]
call fcn.140031060
sub eax, edi
je 0x1400a716c
cmp eax, edi
jne 0x1400a71d1
mov byte [rbp + 0x98], 0
lea rcx, [r13 + 0x10]
lea rdx, [rsp + 0x50]
call fcn.1400f2bf0
nop
mov rax, qword [rsp + 0x50]
lea rcx, [rax + 0x2c0]
cmp qword [rcx + 0x10], 0
je 0x1400a7092
lea r8, [rbp + 0x98]
mov rdx, r14
call fcn.14003f6b0
jmp 0x1400a70af
mov ecx, dword [rax + 0x2bc]
xor ecx, 0x68dbaf89
je 0x1400a711d
lea r8, [rbp + 0x98]
mov rdx, r14
call fcn.14003ea70
cmp byte [rbp + 0x98], 0
je 0x1400a711d
lea rcx, [rsp + 0x48]
call fcn.14010f540
nop
mov rax, qword [rax]
test rax, rax
je 0x1400a70fb
mov rax, qword [rax + 0x98]
test rax, rax
je 0x1400a70fb
mov rax, qword [rax + 8]
test rax, rax
je 0x1400a70fb
mov r9d, 3
mov r8d, esi
mov rdx, r14
mov ecx, 0x540a
call qword [case.0x14003c8e9.0]
mov edi, eax
jmp 0x1400a7100
mov edi, 0x1b67
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400a7113
add rcx, 0x48
call fcn.14007f890
test edi, edi
mov eax, 0
cmove ebx, eax
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x1400a71d1
mov eax, r15d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400a71d1
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x14003c8e9.0]
mov eax, r15d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400a71d1
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x14003c8e9.0]
jmp 0x1400a71d1
lea rcx, [rsp + 0x48]
call fcn.14010f540
nop
mov rax, qword [rax]
test rax, rax
je 0x1400a71af
mov rax, qword [rax + 0x98]
test rax, rax
je 0x1400a71af
mov rax, qword [rax + 8]
test rax, rax
je 0x1400a71af
mov r9d, 3
mov r8d, esi
mov rdx, r14
mov ecx, 0x540a
call qword [case.0x14003c8e9.0]
mov edi, eax
jmp 0x1400a71b4
mov edi, 0x1b67
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400a71c7
add rcx, 0x48
call fcn.14007f890
test edi, edi
mov eax, 0
cmove ebx, eax
lea rcx, [rbp - 0x10]
call fcn.14000b680
mov edi, 3
and edi, 0xfffffffd
mov dword [rsp + 0x40], edi
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
and edi, 0xfffffffe
mov dword [rsp + 0x40], edi
mov rcx, r12
call qword [case.0x1401b9e8b.6]
nop
lea rcx, [rbp - 0x50]
call fcn.14000b5d0
nop
mov rdi, qword [rbp - 0x68]
test rdi, rdi
je 0x1400a724c
mov eax, r15d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400a724c
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x14003c8e9.0]
lock xadd dword [rdi + 0xc], r15d
cmp r15d, 1
jne 0x1400a724c
mov rdx, qword [rdi]
mov rcx, rdi
mov rax, qword [rdx + 8]
call qword [case.0x14003c8e9.0]
mov eax, ebx
mov rbx, qword [rsp + 0x190]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret