Function at 0x100028454
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x90], rax
movdqu xmm0, xmmword [0x10000f0f8]
and qword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
mov r13, rcx
add rcx, 0x18
mov r14, r8
movdqu xmmword [r11 - 0x58], xmm0
mov rbx, rdx
mov qword [rsp + 0x60], rdx
call fcn.10001c984
movdqu xmm0, xmmword [0x10000f0f8]
xor bpl, bpl
xor r12b, r12b
xor r15b, r15b
movdqu xmmword [rbx], xmm0
and dword [r14], 0
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100028530
test byte [rcx + 0x1c], 1
je 0x100028503
cmp byte [rcx + 0x19], 4
jb 0x100028503
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x107
call fcn.10001c854
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x100028530
test byte [rcx + 0x1c], 1
je 0x100028530
cmp byte [rcx + 0x19], 4
jb 0x100028530
mov r9, qword [r13 + 0x158]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x108
call fcn.10001db08
mov rdx, r14
mov rcx, r13
call fcn.1000244e4
mov ebx, eax
test eax, eax
js 0x100028bcd
mov rcx, qword [r13 + 0x248]
lea r8, [rsp + 0x48]
lea rdx, [0x100004a70]
call fcn.10009bb88
mov rdi, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
js 0x100028bab
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x100028693
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10002865b
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x1000285e6
test byte [rcx + 0x1c], 1
je 0x1000285e6
cmp byte [rcx + 0x19], 2
jb 0x1000285e6
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x109
mov r9, rdi
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.10009e564
mov ebx, eax
test eax, eax
jns 0x10002863e
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x100028b97
test byte [rcx + 0x1c], 1
je 0x100028b97
cmp byte [rcx + 0x19], 2
jb 0x100028b97
mov edx, 0x10a
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov r9, rdi
call fcn.10001ddb0
jmp 0x100028b90
bt dword [rsp + 0x40], 0xe
mov rcx, qword [0x1001653b8]
jae 0x100028b97
mov ebx, 0x80780067
jmp 0x100028b97
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x100028688
test byte [rcx + 0x1c], 1
je 0x100028688
cmp byte [rcx + 0x19], 4
jb 0x100028688
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x10b
call fcn.10001c854
mov bpl, 1
mov r12b, bpl
jmp 0x10002890f
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.10009e564
mov ebx, eax
test eax, eax
jns 0x1000286d4
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x100028b97
test byte [rcx + 0x1c], 1
je 0x100028b97
cmp byte [rcx + 0x19], 2
jb 0x100028b97
mov edx, 0x10c
jmp 0x100028622
bt dword [rsp + 0x40], 0xe
jae 0x1000286e6
mov ebx, 0x80780067
jmp 0x100028b90
mov rbx, qword [rsp + 0x48]
xor eax, eax
lea rdx, [rsp + 0x58]
mov rcx, rbx
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100028756
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x80780121
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
mov dword [r14], r8d
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x100028b97
test byte [rcx + 0x1c], 1
je 0x100028b97
cmp byte [rcx + 0x19], 2
jb 0x100028b97
mov edx, 0x10d
mov dword [rsp + 0x20], r8d
jmp 0x100028626
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
je 0x1000287a7
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x1000288c2
test byte [rcx + 0x1c], 1
je 0x1000288c2
cmp byte [rcx + 0x19], 2
jb 0x1000288c2
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x10e
mov r9, rdi
mov qword [rsp + 0x20], rax
call fcn.10001e82c
jmp 0x1000288bb
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x80]
mov r8d, 0x10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10002881a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x80780121
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
mov dword [r14], r8d
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x100028b97
test byte [rcx + 0x1c], 1
je 0x100028b97
cmp byte [rcx + 0x19], 2
jb 0x100028b97
mov edx, 0x10f
jmp 0x10002874c
lea rax, [rsp + 0x80]
lea rcx, [0x10000f0f8]
mov rdx, qword [rax]
cmp rdx, qword [rcx]
jne 0x10002883f
mov rdx, qword [rax + 8]
cmp rdx, qword [rcx + 8]
jne 0x10002883f
xor eax, eax
jmp 0x100028844
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10002887a
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x1000288c2
test byte [rcx + 0x1c], 1
je 0x1000288c2
cmp byte [rcx + 0x19], 2
jb 0x1000288c2
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x110
mov r9, rdi
call fcn.10001db08
jmp 0x1000288bb
mov r9d, dword [rsp + 0x50]
cmp r9d, 0x10
je 0x10002890f
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x1000288c2
test byte [rcx + 0x1c], 1
je 0x1000288c2
cmp byte [rcx + 0x19], 2
jb 0x1000288c2
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, VarUI4FromDisp
mov qword [rsp + 0x20], rdi
call fcn.10001d9dc
mov rcx, qword [0x1001653b8]
mov r12b, 1
cmp rcx, rsi
je 0x1000288eb
test byte [rcx + 0x1c], r12b
je 0x1000288eb
cmp byte [rcx + 0x19], 4
jb 0x1000288eb
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, VarUI4FromDisp
call fcn.10001c854
mov ecx, dword [r13 + 0x14c]
call fcn.1000a35bc
mov rcx, rbx
mov ebp, eax
shr ebp, 9
and bpl, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x48], 0xffffffffffffffff
mov sil, 1
test r12b, r12b
je 0x1000289a4
lea r8, [rsp + 0x80]
mov dl, bpl
mov rcx, r13
call fcn.10002707c
test eax, eax
js 0x100028af7
movaps xmm0, xmmword [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov r8, rdi
mov rcx, r13
movdqa xmmword [rsp + 0x70], xmm0
call fcn.100027408
test eax, eax
jns 0x1000289a4
mov dword [r14], eax
mov rcx, qword [0x1001653b8]
lea rdx, [0x1001653b8]
cmp rcx, rdx
je 0x10002899d
test byte [rcx + 0x1c], 1
je 0x10002899d
cmp byte [rcx + 0x19], 3
jb 0x10002899d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, VarUI4FromDisp
mov r9, rdi
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
mov ebx, 0x80780122
jmp 0x1000289f3
mov rdx, r14
mov rcx, r13
call fcn.100028014
mov ebx, eax
test eax, eax
jns 0x1000289ec
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000289fa
test byte [rcx + 0x1c], 1
je 0x1000289fa
cmp byte [rcx + 0x19], 3
jb 0x1000289fa
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, reloc.OLEAUT32.dll_VarUI4FromDisp
mov r9d, ebx
call fcn.10001c878
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
test r15b, r15b
jne 0x100028a9b
mov edx, 0x80070070
cmp ebx, edx
je 0x100028a15
cmp dword [r14], edx
jne 0x100028a9b
cmp rcx, rax
je 0x100028a41
test byte [rcx + 0x1c], 1
je 0x100028a41
cmp byte [rcx + 0x19], 4
jb 0x100028a41
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x116
mov r9d, 0x1400000
call fcn.10001d71c
mov edx, 0x1400000
mov rcx, r13
call fcn.100028c60
test eax, eax
js 0x100028b3f
xor ebx, ebx
and dword [r14], ebx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100028a96
test byte [rcx + 0x1c], 1
je 0x100028a96
cmp byte [rcx + 0x19], 4
jb 0x100028a96
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x118
call fcn.10001c854
mov rcx, qword [0x1001653b8]
mov r15b, 1
jmp 0x100028a9e
xor sil, sil
test sil, sil
jne 0x100028912
test ebx, ebx
jns 0x100028b78
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100028b97
test byte [rcx + 0x1c], 1
je 0x100028b97
cmp byte [rcx + 0x19], 2
jb 0x100028b97
mov eax, dword [r14]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x119
mov r9d, ebx
mov dword [rsp + 0x20], eax
call fcn.10001d914
jmp 0x100028b90
mov dword [r14], eax
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100028b38
test byte [rcx + 0x1c], 1
je 0x100028b38
cmp byte [rcx + 0x19], 2
jb 0x100028b38
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, VarUI4FromDisp
mov r9d, eax
call fcn.10001c878
mov rcx, qword [0x1001653b8]
mov ebx, 0x80780122
jmp 0x100028b97
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100028b97
test byte [rcx + 0x1c], 1
je 0x100028b97
cmp byte [rcx + 0x19], 2
jb 0x100028b97
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x117
mov r9d, eax
call fcn.10001c878
jmp 0x100028b90
mov rax, qword [rsp + 0x60]
movaps xmm0, xmmword [rsp + 0x80]
lea rsi, [0x1001653b8]
movdqu xmmword [rax], xmm0
mov rcx, qword [0x1001653b8]
mov rax, qword [rsp + 0x48]
cmp rax, 0xffffffffffffffff
je 0x100028bb2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
test rdi, rdi
je 0x100028bc7
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x100028c04
jmp 0x100028bd4
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x100028c2a
test byte [rcx + 0x1c], 1
je 0x100028c04
cmp byte [rcx + 0x19], 2
jb 0x100028c04
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x11a
mov r9d, ebx
call fcn.10001c878
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x100028c2a
test byte [rcx + 0x1c], 1
je 0x100028c2a
cmp byte [rcx + 0x19], 4
jb 0x100028c2a
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x11b
call fcn.10001c854
mov eax, ebx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.10014e600
mov rbx, qword [rsp + 0xf8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret