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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
or rbx, 0xffffffffffffffff
mov rbp, rcx
mov rcx, qword [rcx + 0x38]
mov rax, rbx
xor r13d, r13d
mov r12, rdx
mov edi, 0x80041008
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1400030cd
test eax, eax
je 0x140003342
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov r15, rax
cmp rax, rbx
je 0x1400032ec
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
mov dword [rsp + 0x80], eax
cmp eax, 0xffffffff
je 0x1400032e1
lea ecx, [rax + 2]
call qword [sym.imp.wbemcomn.dll_public:_static_void____ptr64___cdecl_CWin32DefaultArena::WbemMemAlloc_unsigned_long_long_unsigned___int64__]
mov rsi, rax
test rax, rax
jne 0x14000314e
mov edi, 0x80041006
jmp 0x1400032e1
mov r8d, dword [rsp + 0x80]
xor edx, edx
add r8d, 2
mov rcx, rsi
call sub.msvcrt.dll_memset
mov r8d, dword [rsp + 0x80]
lea r9, [rsp + 0x90]
mov rdx, rsi
mov qword [rsp + 0x20], r13
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x14000327d
mov eax, 0xfeff
mov edi, r13d
cmp word [rsi], ax
jne 0x1400031ac
lea rcx, [rbp + 0x30]
mov rdx, rsi
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_WString::BindPtr_unsigned_short_int____ptr64____ptr64]
jmp 0x14000326e
inc rbx
cmp byte [rsi + rbx], r13b
jne 0x1400031ac
inc ebx
movsxd rcx, ebx
add rcx, rcx
call qword [sym.imp.wbemcomn.dll_public:_static_void____ptr64___cdecl_CWin32DefaultArena::WbemMemAlloc_unsigned_long_long_unsigned___int64__]
mov r14, rax
test rax, rax
jne 0x1400031d5
mov edi, 0x80041006
jmp 0x140003261
mov edx, 1
mov dword [rsp + 0x28], ebx
mov r9d, ebx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
test eax, eax
jne 0x140003254
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140003244
test byte [rcx + 0x1c], 2
je 0x140003244
cmp byte [rcx + 0x19], 2
jb 0x140003244
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [section..data]
mov r9, rsi
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.140001e88
mov rcx, r14
mov edi, 0x80041001
call qword [sym.imp.wbemcomn.dll_public:_static_int___cdecl_CWin32DefaultArena::WbemMemFree_void____ptr64_]
jmp 0x140003261
lea rcx, [rbp + 0x30]
mov rdx, r14
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_WString::BindPtr_unsigned_short_int____ptr64____ptr64]
mov rcx, rsi
call qword [sym.imp.wbemcomn.dll_public:_static_int___cdecl_CWin32DefaultArena::WbemMemFree_void____ptr64_]
test edi, edi
js 0x1400032e1
mov rdx, r12
mov rcx, rbp
call fcn.1400029a0
mov edi, eax
jmp 0x1400032e1
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400032d3
test byte [rcx + 0x1c], 2
je 0x1400032d3
cmp byte [rcx + 0x19], 2
jb 0x1400032d3
mov rbx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [section..data]
mov edx, 0x1a
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.140001e04
mov rcx, rsi
call qword [sym.imp.wbemcomn.dll_public:_static_int___cdecl_CWin32DefaultArena::WbemMemFree_void____ptr64_]
mov edi, 0x80041001
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x140003342
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140003342
test byte [rcx + 0x1c], 2
je 0x140003342
cmp byte [rcx + 0x19], 2
jb 0x140003342
mov rbx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [section..data]
mov edx, 0x1b
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.140001e04
mov rbx, qword [rsp + 0x88]
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret