Function at 0x14002c4a0
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 r12, rdx
mov r14, rcx
xor ebx, ebx
mov dword [rbp - 0x39], ebx
lea rcx, [0x1401c39a8]
mov rax, qword [0x1401c39a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r14], rax
mov esi, 1
mov dword [rbp - 0x39], esi
mov eax, dword [0x1401cbd80]
mov ecx, eax
imul ecx, eax
imul ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 0xf
jne 0x14002c532
lea ecx, [rbx + 4]
call fcn.1400d1e38
mov ecx, dword [0x1401cbd80]
mov dword [rax], ecx
mov rax, qword [r12]
mov edi, 3
cmp dword [rax - 0x10], 0
je 0x14002c5b4
movzx eax, word [rax]
cmp ax, word [0x140154028]
jne 0x14002c551
mov eax, ebx
jmp 0x14002c555
sbb eax, eax
or eax, esi
test eax, eax
je 0x14002c5b4
lea rcx, [rbp + 0x17]
call fcn.14002ac60
nop
mov esi, edi
mov dword [rbp - 0x39], edi
mov rdx, qword [rax]
mov eax, ebx
test rdx, rdx
setne al
test eax, eax
jne 0x14002c582
mov ecx, 0x80004005
call fcn.140001920
int3
mov rax, qword [r12]
sub rdx, rax
nop dword [rax]
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x14002c5a6
add rax, 2
test cx, cx
jne 0x14002c590
mov eax, ebx
jmp 0x14002c5ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x14002c5b4
xor r15b, r15b
jmp 0x14002c5b7
mov r15b, 1
test sil, 2
je 0x14002c5db
and esi, 0xfffffffd
mov dword [rbp - 0x39], esi
mov rdx, qword [rbp + 0x17]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002c5db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r15b, r15b
je 0x14002c65e
lea rcx, [rbp + 0xf]
call fcn.14002ac60
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [r14]
sub rdi, 0x18
cmp rcx, rdi
je 0x14002c63d
cmp dword [rdi + 0x10], 0
jl 0x14002c630
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14002c630
call fcn.140002410
mov rsi, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x14002c627
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 0x14002c63d
mov r8d, dword [rdx - 0x10]
mov rcx, r14
call fcn.1400022c0
nop
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002c981
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14002c981
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14002c6f3
lea rcx, [rbp - 0x11]
call fcn.14002ac60
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [r14]
sub rdi, 0x18
cmp rcx, rdi
je 0x14002c6ea
cmp dword [rdi + 0x10], r15d
jl 0x14002c6dd
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14002c6dd
call fcn.140002410
mov rsi, rax
lock add dword [rdi + 0x10], r13d
jg 0x14002c6d4
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 0x14002c6ea
mov r8d, dword [rdx - 0x10]
mov rcx, r14
call fcn.1400022c0
nop
mov rdx, qword [rbp - 0x11]
jmp 0x14002c641
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 0x14002c741
lea rcx, [rbp + 7]
call fcn.14002ac60
nop
mov rdx, rax
mov rcx, r14
call fcn.140002230
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002c978
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14002c978
cmp dword [rbp + 0x83], r15d
je 0x14002c766
lea rcx, [rbp - 9]
call fcn.14002ac60
nop
mov rdx, rax
mov rcx, r14
call fcn.140002230
nop
mov rdx, qword [rbp - 9]
jmp 0x14002c724
cmp dword [rbp + 0x7f], r15d
je 0x14002c978
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x21], r15
mov edx, dword [rbp + 0x7f]
lea rcx, [rbp - 0x31]
call fcn.14002cd20
mov dword [rbp + 0x77], r15d
mov qword [rsp + 0x20], r15
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 0x14002c7cf
test rsi, rsi
je 0x14002c978
mov rcx, rsi
call fcn.1400d1660
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x21], r15
jmp 0x14002c978
xor r15b, r15b
xor r12b, r12b
movzx eax, byte [rsi]
cmp al, 0xff
jne 0x14002c7ec
cmp byte [rsi + 1], 0xfe
jne 0x14002c7ec
mov r15b, 1
mov edi, 2
jmp 0x14002c814
cmp al, 0xfe
jne 0x14002c804
cmp byte [rsi + 1], 0xff
jne 0x14002c804
mov r15b, 1
movzx r12d, r15b
mov edi, 2
jmp 0x14002c814
cmp al, 0xef
jne 0x14002c879
cmp byte [rsi + 1], 0xbb
jne 0x14002c879
cmp byte [rsi + 2], 0xbf
jne 0x14002c879
movsxd rdx, edi
add rdx, rsi
mov rdi, qword [rbp - 0x29]
cmp rdx, rdi
jne 0x14002c82c
mov rdi, rsi
mov qword [rbp - 0x29], rsi
jmp 0x14002c846
cmp rsi, rdx
je 0x14002c846
sub rdi, rdx
mov r8, rdi
mov rcx, rsi
call fcn.1400d16b0
add rdi, rsi
mov qword [rbp - 0x29], rdi
test r12b, r12b
je 0x14002c87d
mov rcx, rsi
cmp rsi, rdi
je 0x14002c87d
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 0x14002c860
jmp 0x14002c87d
mov rdi, qword [rbp - 0x29]
sub rdi, rsi
cmp byte [rsi + rdi - 1], 0
je 0x14002c8b9
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x31]
call fcn.14002cd20
mov rsi, qword [rbp - 0x31]
mov byte [rsi + rdi], 0
test r15b, r15b
je 0x14002c905
lea rdx, [rdi + 2]
lea rcx, [rbp - 0x31]
call fcn.14002cd20
mov rdx, qword [rbp - 0x31]
mov byte [rdx + rdi + 1], 0
jmp 0x14002c8d5
test r15b, r15b
je 0x14002c905
lea rdx, [rdi + 2]
lea rcx, [rbp - 0x31]
call fcn.14002cd20
mov rdx, qword [rbp - 0x31]
mov word [rdx + rdi], 0
lea rcx, [rbp - 1]
call fcn.140002110
nop
mov rdx, rax
mov rcx, r14
call fcn.140002230
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002c95c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14002c95c
lea rcx, [0x1401c39a8]
mov rax, qword [0x1401c39a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x19], rax
mov rdx, rsi
lea rcx, [rbp - 0x19]
call fcn.140003350
nop
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140002230
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002c950
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, r14
mov rcx, r14
call fcn.140029f00
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14002c978
call fcn.1400d1660
xor ebx, ebx
mov qword [rbp - 0x31], rbx
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], rbx
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