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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rsp + 0xe8], rbx
mov r15, rdx
mov r14, rcx
xor r12d, r12d
mov dword [rbp - 0x39], r12d
lea rcx, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r14], rax
mov r8d, 1
mov dword [rbp - 0x39], r8d
mov rax, qword [r15]
lea edi, [r12 + 3]
cmp dword [rax - 0x10], r12d
je 0x14002c0c9
movzx eax, word [rax]
cmp ax, word [0x14014b65c]
jne 0x14002c06a
mov eax, r12d
jmp 0x14002c06f
sbb eax, eax
or eax, r8d
test eax, eax
je 0x14002c0c9
lea rcx, [rbp + 0x17]
call fcn.14002a920
nop
mov r8d, edi
mov dword [rbp - 0x39], edi
mov rdx, qword [rax]
mov eax, r12d
test rdx, rdx
setne al
test eax, eax
jne 0x14002c09e
mov ecx, 0x80004005
call fcn.140001920
int3
mov rax, qword [r15]
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x14002c0bb
add rax, 2
test cx, cx
jne 0x14002c0a4
mov eax, r12d
jmp 0x14002c0c0
sbb eax, eax
or eax, 1
test eax, eax
je 0x14002c0c9
xor sil, sil
jmp 0x14002c0cc
mov sil, 1
test r8b, 2
je 0x14002c0f2
and r8d, 0xfffffffd
mov dword [rbp - 0x39], r8d
mov rdx, qword [rbp + 0x17]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002c0f2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x14002c175
lea rcx, [rbp + 0xf]
call fcn.14002a920
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [r14]
sub rdi, 0x18
cmp rcx, rdi
je 0x14002c154
cmp dword [rdi + 0x10], 0
jl 0x14002c147
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14002c147
call fcn.140002540
mov rsi, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x14002c13e
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [r14], rax
jmp 0x14002c154
mov r8d, dword [rdx - 0x10]
mov rcx, r14
call fcn.1400023f0
nop
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002c491
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14002c491
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14002c206
lea rcx, [rbp - 0x11]
call fcn.14002a920
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [r14]
sub rdi, 0x18
cmp rcx, rdi
je 0x14002c1fd
cmp dword [rdi + 0x10], 0
jl 0x14002c1f0
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14002c1f0
call fcn.140002540
mov rsi, rax
lock add dword [rdi + 0x10], r13d
jg 0x14002c1e7
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [r14], rax
jmp 0x14002c1fd
mov r8d, dword [rdx - 0x10]
mov rcx, r14
call fcn.1400023f0
nop
mov rdx, qword [rbp - 0x11]
jmp 0x14002c158
xor eax, eax
mov qword [rbp + 0x7f], rax
lea rdx, [rbp + 0x7f]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14002c254
lea rcx, [rbp + 7]
call fcn.14002a920
nop
mov rdx, rax
mov rcx, r14
call fcn.140002360
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002c488
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14002c488
cmp dword [rbp + 0x83], 0
je 0x14002c279
lea rcx, [rbp - 9]
call fcn.14002a920
nop
mov rdx, rax
mov rcx, r14
call fcn.140002360
nop
mov rdx, qword [rbp - 9]
jmp 0x14002c237
cmp dword [rbp + 0x7f], 0
je 0x14002c488
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], r12
mov edx, dword [rbp + 0x7f]
lea rcx, [rbp - 0x31]
call fcn.14002c650
mov dword [rbp + 0x77], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x77]
mov r8d, dword [rbp + 0x7f]
mov rsi, qword [rbp - 0x31]
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002c2e2
test rsi, rsi
je 0x14002c488
mov rcx, rsi
call fcn.1400cc890
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], r12
jmp 0x14002c488
xor r15b, r15b
xor r12b, r12b
movzx eax, byte [rsi]
cmp al, 0xff
jne 0x14002c2ff
cmp byte [rsi + 1], 0xfe
jne 0x14002c2ff
mov r15b, 1
mov edi, 2
jmp 0x14002c327
cmp al, 0xfe
jne 0x14002c317
cmp byte [rsi + 1], 0xff
jne 0x14002c317
mov r15b, 1
movzx r12d, r15b
mov edi, 2
jmp 0x14002c327
cmp al, 0xef
jne 0x14002c389
cmp byte [rsi + 1], 0xbb
jne 0x14002c389
cmp byte [rsi + 2], 0xbf
jne 0x14002c389
movsxd rdx, edi
add rdx, rsi
mov rdi, qword [rbp - 0x29]
cmp rdx, rdi
jne 0x14002c33f
mov rdi, rsi
mov qword [rbp - 0x29], rsi
jmp 0x14002c359
cmp rsi, rdx
je 0x14002c359
sub rdi, rdx
mov r8, rdi
mov rcx, rsi
call fcn.1400cc8e0
add rdi, rsi
mov qword [rbp - 0x29], rdi
test r12b, r12b
je 0x14002c38d
mov rcx, rsi
cmp rsi, rdi
je 0x14002c38d
nop word [rax + rax]
movzx r8d, byte [rcx + 1]
movzx edx, byte [rcx]
mov byte [rcx + 1], dl
mov byte [rcx], r8b
add rcx, 2
cmp rcx, rdi
jne 0x14002c370
jmp 0x14002c38d
mov rdi, qword [rbp - 0x29]
sub rdi, rsi
cmp byte [rsi + rdi - 1], 0
je 0x14002c3c9
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x31]
call fcn.14002c650
mov rsi, qword [rbp - 0x31]
mov byte [rsi + rdi], 0
test r15b, r15b
je 0x14002c415
lea rdx, [rdi + 2]
lea rcx, [rbp - 0x31]
call fcn.14002c650
mov rdx, qword [rbp - 0x31]
mov byte [rdx + rdi + 1], 0
jmp 0x14002c3e5
test r15b, r15b
je 0x14002c415
lea rdx, [rdi + 2]
lea rcx, [rbp - 0x31]
call fcn.14002c650
mov rdx, qword [rbp - 0x31]
mov word [rdx + rdi], 0
lea rcx, [rbp - 1]
call fcn.140002240
nop
mov rdx, rax
mov rcx, r14
call fcn.140002360
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002c46c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14002c46c
lea rcx, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x19], rax
mov rdx, rsi
lea rcx, [rbp - 0x19]
call fcn.140003550
nop
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140002360
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002c460
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, r14
mov rcx, r14
call fcn.14002a0e0
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14002c488
call fcn.1400cc890
xor eax, eax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret