Function at 0x140097028
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r14, r8
mov r15, rdx
mov r12, rcx
mov rcx, qword [0x14017d3a8]
lea rsi, [0x14017d3a8]
cmp rcx, rsi
je 0x14009707b
test byte [rcx + 0x1c], 1
je 0x14009707b
cmp byte [rcx + 0x19], 4
jb 0x14009707b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009258]
mov edx, 0x2a
call fcn.14001dd24
lea rbx, [0x140008f60]
test r12, r12
jne 0x14009709b
lea r8, [0x140009098]
mov edx, 0x263
mov rcx, rbx
call fcn.1400a8be8
test r15, r15
jne 0x1400970b4
lea r8, [0x1400090a8]
mov edx, 0x264
mov rcx, rbx
call fcn.1400a8be8
test r14, r14
jne 0x1400970cd
lea r8, [0x1400090c0]
mov edx, 0x265
mov rcx, rbx
call fcn.1400a8be8
and qword [rsp + 0x30], 0
and qword [r15], 0
and dword [r14], 0
and qword [rsp + 0x78], 0
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, r12
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_TraceEvent
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140097128
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140097239
lea rdx, [rsp + 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140097153
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140097230
mov rbx, qword [rsp + 0x78]
mov ecx, reloc.ADVAPI32.dll_TraceEvent
mov eax, ebx
cmp rax, rcx
jbe 0x14009716b
mov edi, 0x80070216
jmp 0x14009718b
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
test rax, rax
jne 0x1400971cd
mov edi, 0x8007000e
lea rsi, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x140097230
test byte [rcx + 0x1c], 1
je 0x140097230
cmp byte [rcx + 0x19], 2
jb 0x140097230
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009258]
mov edx, 0x2b
mov r9, r12
mov dword [rsp + 0x20], edi
call fcn.14001ecbc
jmp 0x140097230
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x70]
xor edi, edi
and qword [rsp + 0x20], rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14009720f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14009721b
mov eax, dword [rsp + 0x70]
mov qword [r15], rsi
xor esi, esi
mov dword [r14], eax
test rsi, rsi
je 0x140097229
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rsi, [0x14017d3a8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jns 0x140097271
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x14009729e
test byte [rcx + 0x1c], 1
je 0x140097278
cmp byte [rcx + 0x19], 2
jb 0x140097278
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009258]
mov edx, 0x2c
mov r9, r12
mov dword [rsp + 0x20], edi
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x14009729e
test byte [rcx + 0x1c], 1
je 0x14009729e
cmp byte [rcx + 0x19], 4
jb 0x14009729e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009258]
mov edx, 0x2d
call fcn.14001dd24
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret