Function at 0x140026470
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 0x140026549
movzx eax, word [rax]
cmp ax, word [0x140133728]
jne 0x1400264ea
mov eax, r12d
jmp 0x1400264ef
sbb eax, eax
or eax, r8d
test eax, eax
je 0x140026549
lea rcx, [rbp + 0x17]
call fcn.140024ee0
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 0x14002651e
mov ecx, 0x80004005
call fcn.140001930
int3
mov rax, qword [r15]
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x14002653b
add rax, 2
test cx, cx
jne 0x140026524
mov eax, r12d
jmp 0x140026540
sbb eax, eax
or eax, 1
test eax, eax
je 0x140026549
xor sil, sil
jmp 0x14002654c
mov sil, 1
or rbx, 0xffffffffffffffff
test r8b, 2
je 0x140026575
and r8d, 0xfffffffd
mov dword [rbp - 0x39], r8d
mov rdx, qword [rbp + 0x17]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], ebx
jg 0x140026575
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x1400265f8
lea rcx, [rbp + 0xf]
call fcn.140024ee0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [r14]
sub rdi, 0x18
cmp rcx, rdi
je 0x1400265d7
cmp dword [rdi + 0x10], 0
jl 0x1400265ca
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400265ca
call fcn.140002390
mov rsi, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x1400265c1
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 0x1400265d7
mov r8d, dword [rdx - 0x10]
mov rcx, r14
call fcn.140002240
nop
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140026985
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140026985
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 0x140026689
lea rcx, [rbp - 0x11]
call fcn.140024ee0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [r14]
sub rdi, 0x18
cmp rcx, rdi
je 0x140026680
cmp dword [rdi + 0x10], 0
jl 0x140026673
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140026673
call fcn.140002390
mov rsi, rax
lock add dword [rdi + 0x10], r13d
jg 0x14002666a
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 0x140026680
mov r8d, dword [rdx - 0x10]
mov rcx, r14
call fcn.140002240
nop
mov rdx, qword [rbp - 0x11]
jmp 0x1400265db
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 0x1400266d7
lea rcx, [rbp + 7]
call fcn.140024ee0
nop
mov rdx, rax
mov rcx, r14
call fcn.1400021b0
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002697c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14002697c
cmp dword [rbp + 0x83], 0
je 0x1400266fc
lea rcx, [rbp - 9]
call fcn.140024ee0
nop
mov rdx, rax
mov rcx, r14
call fcn.1400021b0
nop
mov rdx, qword [rbp - 9]
jmp 0x1400266ba
cmp dword [rbp + 0x7f], 0
je 0x14002697c
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.140026b60
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 0x140026765
test rsi, rsi
je 0x14002697c
mov rcx, rsi
call fcn.1400c3950
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], r12
jmp 0x14002697c
xor r15b, r15b
xor r12b, r12b
movzx eax, byte [rsi]
cmp al, 0xff
jne 0x140026782
cmp byte [rsi + 1], 0xfe
jne 0x140026782
mov r15b, 1
mov edi, 2
jmp 0x1400267aa
cmp al, 0xfe
jne 0x14002679a
cmp byte [rsi + 1], 0xff
jne 0x14002679a
mov r15b, 1
movzx r12d, r15b
mov edi, 2
jmp 0x1400267aa
cmp al, 0xef
jne 0x140026809
cmp byte [rsi + 1], 0xbb
jne 0x140026809
cmp byte [rsi + 2], 0xbf
jne 0x140026809
movsxd rdx, edi
add rdx, rsi
mov rdi, qword [rbp - 0x29]
cmp rdx, rdi
jne 0x1400267c2
mov rdi, rsi
mov qword [rbp - 0x29], rsi
jmp 0x1400267dc
cmp rsi, rdx
je 0x1400267dc
sub rdi, rdx
mov r8, rdi
mov rcx, rsi
call fcn.1400c39a0
add rdi, rsi
mov qword [rbp - 0x29], rdi
test r12b, r12b
je 0x14002680d
mov rcx, rsi
cmp rsi, rdi
je 0x14002680d
nop dword [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 0x1400267f0
jmp 0x14002680d
mov rdi, qword [rbp - 0x29]
sub rdi, rsi
cmp byte [rsi + rdi - 1], 0
je 0x1400268b5
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x31]
call fcn.140026b60
mov rsi, qword [rbp - 0x31]
mov byte [rsi + rdi], 0
test r15b, r15b
je 0x14002684b
lea rdx, [rdi + 2]
lea rcx, [rbp - 0x31]
call fcn.140026b60
mov rsi, qword [rbp - 0x31]
mov byte [rsi + rdi + 1], 0
mov r8d, dword [0x1401a9d80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub ecx, edx
cmp ecx, 0xa
jne 0x1400268d1
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x7b
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.1400c2fb8
mov rcx, rax
call fcn.1400c4098
jmp 0x1400268d1
test r15b, r15b
je 0x140026909
lea rdx, [rdi + 2]
lea rcx, [rbp - 0x31]
call fcn.140026b60
mov rsi, qword [rbp - 0x31]
mov word [rsi + rdi], 0
test r15b, r15b
je 0x140026909
mov rdx, rsi
lea rcx, [rbp - 1]
call fcn.140002090
nop
mov rdx, rax
mov rcx, r14
call fcn.1400021b0
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140026960
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140026960
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.140003150
nop
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400021b0
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140026954
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, r14
mov rcx, r14
call fcn.1400243f0
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14002697c
call fcn.1400c3950
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