Function at 0x140027600
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, 0xb0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rsp + 0xf8], rbx
mov r14, rdx
mov r15, rcx
xor r12d, r12d
mov dword [rbp - 0x49], r12d
lea rcx, str._k_f_
mov rax, qword [str._k_f_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r15], rax
mov r8d, 1
mov dword [rbp - 0x49], r8d
mov rax, qword [r14]
lea ebx, [r12 + 3]
cmp dword [rax - 0x10], r12d
je 0x1400276d9
movzx eax, word [rax]
cmp ax, word [0x14013e498]
jne 0x14002767a
mov eax, r12d
jmp 0x14002767f
sbb eax, eax
or eax, r8d
test eax, eax
je 0x1400276d9
lea rcx, [rbp - 9]
call fcn.140026120
nop
mov r8d, ebx
mov dword [rbp - 0x49], ebx
mov rdx, qword [rax]
mov eax, r12d
test rdx, rdx
setne al
test eax, eax
jne 0x1400276ae
mov ecx, 0x80004005
call fcn.140001920
int3
mov rax, qword [r14]
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x1400276cb
add rax, 2
test cx, cx
jne 0x1400276b4
mov eax, r12d
jmp 0x1400276d0
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400276d9
xor sil, sil
jmp 0x1400276dc
mov sil, 1
or rdi, 0xffffffffffffffff
test r8b, 2
je 0x140027705
and r8d, 0xfffffffd
mov dword [rbp - 0x49], r8d
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], edi
jg 0x140027705
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x140027788
lea rcx, [rbp + 0xf]
call fcn.140026120
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [r15]
sub rbx, 0x18
cmp rcx, rbx
je 0x140027767
cmp dword [rbx + 0x10], 0
jl 0x14002775a
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14002775a
call fcn.140002520
mov rsi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x140027751
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [r15], rax
jmp 0x140027767
mov r8d, dword [rdx - 0x10]
mov rcx, r15
call fcn.1400023d0
nop
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140027b25
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140027b25
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov qword [rbp - 1], rax
cmp rax, 0xffffffffffffffff
jne 0x14002781d
lea rcx, [rbp + 7]
call fcn.140026120
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [r15]
sub rbx, 0x18
cmp rcx, rbx
je 0x140027814
cmp dword [rbx + 0x10], 0
jl 0x140027807
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140027807
call fcn.140002520
mov rsi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x1400277fe
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [r15], rax
jmp 0x140027814
mov r8d, dword [rdx - 0x10]
mov rcx, r15
call fcn.1400023d0
nop
mov rdx, qword [rbp + 7]
jmp 0x14002776b
xor eax, eax
mov qword [rbp + 0x7f], rax
lea rdx, [rbp + 0x7f]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14002786b
lea rcx, [rbp - 0x21]
call fcn.140026120
nop
mov rdx, rax
mov rcx, r15
call fcn.140002340
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140027b1c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140027b1c
cmp dword [rbp + 0x83], 0
je 0x140027890
lea rcx, [rbp + 0x17]
call fcn.140026120
nop
mov rdx, rax
mov rcx, r15
call fcn.140002340
nop
mov rdx, qword [rbp + 0x17]
jmp 0x14002784e
cmp dword [rbp + 0x7f], 0
je 0x140027b1c
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x31], r12
mov edx, dword [rbp + 0x7f]
lea rcx, [rbp - 0x41]
call fcn.140027bd0
mov dword [rbp + 0x77], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x77]
mov r8d, dword [rbp + 0x7f]
mov r14, qword [rbp - 0x41]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400278f9
test r14, r14
je 0x140027b1c
mov rcx, r14
call fcn.1400c7bc0
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x31], r12
jmp 0x140027b1c
xor r12b, r12b
xor r13b, r13b
movzx eax, byte [r14]
cmp al, 0xff
jne 0x140027918
cmp byte [r14 + 1], 0xfe
jne 0x140027918
mov r12b, 1
mov ebx, 2
jmp 0x14002794f
cmp al, 0xfe
jne 0x140027931
cmp byte [r14 + 1], 0xff
jne 0x140027931
mov r12b, 1
movzx r13d, r12b
mov ebx, 2
jmp 0x14002794f
cmp al, 0xef
jne 0x140027a17
cmp byte [r14 + 1], 0xbb
jne 0x140027a17
cmp byte [r14 + 2], 0xbf
jne 0x140027a17
movsxd rdx, ebx
add rdx, r14
mov rsi, qword [rbp - 0x39]
cmp rdx, rsi
jne 0x140027967
mov rsi, r14
mov qword [rbp - 0x39], r14
jmp 0x140027981
cmp r14, rdx
je 0x140027981
sub rsi, rdx
mov r8, rsi
mov rcx, r14
call fcn.1400c7c10
add rsi, r14
mov qword [rbp - 0x39], rsi
test r13b, r13b
je 0x140027a1b
mov rbx, r14
mov eax, dword [0x1401b4d80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub ecx, edx
cmp ecx, 9
jne 0x1400279f5
movabs rax, 0x665050414b6a74
mov qword [rbp - 0x19], rax
lea rax, [rbp - 0x19]
mov rcx, rdi
nop dword [rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x1400279d0
mov eax, 4
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.1400c7228
mov rcx, rax
call fcn.1400c8c8c
cmp r14, rsi
je 0x140027a1b
nop word [rax + rax]
movzx edx, byte [rbx + 1]
movzx ecx, byte [rbx]
mov byte [rbx + 1], cl
mov byte [rbx], dl
add rbx, 2
cmp rbx, rsi
jne 0x140027a00
jmp 0x140027a1b
mov rsi, qword [rbp - 0x39]
sub rsi, r14
cmp byte [r14 + rsi - 1], 0
je 0x140027a59
lea rdx, [rsi + 1]
lea rcx, [rbp - 0x41]
call fcn.140027bd0
mov r14, qword [rbp - 0x41]
mov byte [r14 + rsi], 0
test r12b, r12b
je 0x140027aa5
lea rdx, [rsi + 2]
lea rcx, [rbp - 0x41]
call fcn.140027bd0
mov rdx, qword [rbp - 0x41]
mov byte [rdx + rsi + 1], 0
jmp 0x140027a75
test r12b, r12b
je 0x140027aa5
lea rdx, [rsi + 2]
lea rcx, [rbp - 0x41]
call fcn.140027bd0
mov rdx, qword [rbp - 0x41]
mov word [rdx + rsi], 0
lea rcx, [rbp - 0x11]
call fcn.140002220
nop
mov rdx, rax
mov rcx, r15
call fcn.140002340
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140027afc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140027afc
lea rcx, str._k_f_
mov rax, qword [str._k_f_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x29], rax
mov rdx, r14
lea rcx, [rbp - 0x29]
call fcn.140003500
nop
lea rdx, [rbp - 0x29]
mov rcx, r15
call fcn.140002340
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140027af0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, r15
mov rcx, r15
call fcn.1400253d0
nop
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140027b18
call fcn.1400c7bc0
xor eax, eax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
mov rsi, qword [rbp - 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r15
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret