Function at 0x140026a20
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, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
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 0x140026af9
movzx eax, word [rax]
cmp ax, word [0x140133848]
jne 0x140026a9a
mov eax, r12d
jmp 0x140026a9f
sbb eax, eax
or eax, r8d
test eax, eax
je 0x140026af9
lea rcx, [rbp + 0x17]
call fcn.1400254f0
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 0x140026ace
mov ecx, 0x80004005
call fcn.140001920
int3
mov rax, qword [r15]
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x140026aeb
add rax, 2
test cx, cx
jne 0x140026ad4
mov eax, r12d
jmp 0x140026af0
sbb eax, eax
or eax, 1
test eax, eax
je 0x140026af9
xor sil, sil
jmp 0x140026afc
mov sil, 1
test r8b, 2
je 0x140026b22
and r8d, 0xfffffffd
mov dword [rbp - 0x39], r8d
mov rdx, qword [rbp + 0x17]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140026b22
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x140026ba5
lea rcx, [rbp + 0xf]
call fcn.1400254f0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [r14]
sub rdi, 0x18
cmp rcx, rdi
je 0x140026b84
cmp dword [rdi + 0x10], 0
jl 0x140026b77
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140026b77
call fcn.1400025b0
mov rsi, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x140026b6e
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 0x140026b84
mov r8d, dword [rdx - 0x10]
mov rcx, r14
call fcn.140002460
nop
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140026ec1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140026ec1
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 0x140026c36
lea rcx, [rbp - 0x11]
call fcn.1400254f0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [r14]
sub rdi, 0x18
cmp rcx, rdi
je 0x140026c2d
cmp dword [rdi + 0x10], 0
jl 0x140026c20
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140026c20
call fcn.1400025b0
mov rsi, rax
lock add dword [rdi + 0x10], r13d
jg 0x140026c17
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 0x140026c2d
mov r8d, dword [rdx - 0x10]
mov rcx, r14
call fcn.140002460
nop
mov rdx, qword [rbp - 0x11]
jmp 0x140026b88
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 0x140026c84
lea rcx, [rbp + 7]
call fcn.1400254f0
nop
mov rdx, rax
mov rcx, r14
call fcn.1400023c0
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140026eb8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140026eb8
cmp dword [rbp + 0x83], 0
je 0x140026ca9
lea rcx, [rbp - 9]
call fcn.1400254f0
nop
mov rdx, rax
mov rcx, r14
call fcn.1400023c0
nop
mov rdx, qword [rbp - 9]
jmp 0x140026c67
cmp dword [rbp + 0x7f], 0
je 0x140026eb8
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.140026f60
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 0x140026d12
test rsi, rsi
je 0x140026eb8
mov rcx, rsi
call fcn.1400c27f0
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], r12
jmp 0x140026eb8
xor r15b, r15b
xor r12b, r12b
movzx eax, byte [rsi]
cmp al, 0xff
jne 0x140026d2f
cmp byte [rsi + 1], 0xfe
jne 0x140026d2f
mov r15b, 1
mov edi, 2
jmp 0x140026d57
cmp al, 0xfe
jne 0x140026d47
cmp byte [rsi + 1], 0xff
jne 0x140026d47
mov r15b, 1
movzx r12d, r15b
mov edi, 2
jmp 0x140026d57
cmp al, 0xef
jne 0x140026db9
cmp byte [rsi + 1], 0xbb
jne 0x140026db9
cmp byte [rsi + 2], 0xbf
jne 0x140026db9
movsxd rdx, edi
add rdx, rsi
mov rdi, qword [rbp - 0x29]
cmp rdx, rdi
jne 0x140026d6f
mov rdi, rsi
mov qword [rbp - 0x29], rsi
jmp 0x140026d89
cmp rsi, rdx
je 0x140026d89
sub rdi, rdx
mov r8, rdi
mov rcx, rsi
call fcn.1400c2840
add rdi, rsi
mov qword [rbp - 0x29], rdi
test r12b, r12b
je 0x140026dbd
mov rcx, rsi
cmp rsi, rdi
je 0x140026dbd
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 0x140026da0
jmp 0x140026dbd
mov rdi, qword [rbp - 0x29]
sub rdi, rsi
cmp byte [rsi + rdi - 1], 0
je 0x140026df9
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x31]
call fcn.140026f60
mov rsi, qword [rbp - 0x31]
mov byte [rsi + rdi], 0
test r15b, r15b
je 0x140026e45
lea rdx, [rdi + 2]
lea rcx, [rbp - 0x31]
call fcn.140026f60
mov rdx, qword [rbp - 0x31]
mov byte [rdx + rdi + 1], 0
jmp 0x140026e15
test r15b, r15b
je 0x140026e45
lea rdx, [rdi + 2]
lea rcx, [rbp - 0x31]
call fcn.140026f60
mov rdx, qword [rbp - 0x31]
mov word [rdx + rdi], 0
lea rcx, [rbp - 1]
call fcn.1400022a0
nop
mov rdx, rax
mov rcx, r14
call fcn.1400023c0
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140026e9c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140026e9c
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x19], rax
mov rdx, rsi
lea rcx, [rbp - 0x19]
call fcn.1400032d0
nop
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400023c0
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140026e90
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, r14
mov rcx, r14
call fcn.140024b80
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140026eb8
call fcn.1400c27f0
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