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

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov r13, rdx
mov r14, rcx
xor ebx, ebx
lea ecx, [rbx + 0x38]
call fcn.1400be454
mov r12, rax
test rax, rax
je 0x1401bc980
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r12], rax
mov qword [r12 + 8], rbx
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], rbx
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r12 + 0x20], rax
mov qword [r12 + 0x28], rbx
mov dword [r12 + 0x30], ebx
jmp 0x1401bc983
mov r12, rbx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], rbx
mov rdx, r12
lea rcx, [rsp + 0xa8]
call fcn.14008272c
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rax]
mov qword [rsp + 0x50], rcx
mov qword [rax], rdx
mov rdi, qword [rsp + 0xa8]
test rdi, rdi
je 0x1401bc9d8
lock dec dword [rdi + 8]
jne 0x1401bc9d8
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lock dec dword [rdi + 0xc]
jne 0x1401bc9d8
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov r8, r12
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.1400020a0
nop
mov rcx, qword [rsp + 0x48]
mov rax, qword [r13]
mov qword [rsp + 0x48], rax
mov qword [r13], rcx
mov rdi, qword [r13 + 8]
mov rax, qword [rsp + 0x50]
mov qword [r13 + 8], rax
mov qword [rsp + 0x50], rdi
test rdi, rdi
je 0x1401bca30
lock dec dword [rdi + 8]
jne 0x1401bca30
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lock dec dword [rdi + 0xc]
jne 0x1401bca30
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
test r14, r14
jne 0x1401bca39
mov ecx, ebx
jmp 0x1401bca4b
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, r14
mov rcx, qword [r13]
call fcn.14000c9f8
or qword [rsp + 0x30], 0xffffffffffffffff
mov r9d, 3
mov dword [rsp + 0x20], r9d
mov r8d, 0x80000000
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.140021fb8
test eax, eax
jne 0x1401bca8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1401bcc07
xor edx, edx
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x220
jne 0x1401bcaab
mov r12b, bl
jmp 0x1401bcab9
cmp eax, 0x21f
jne 0x1401bcbf9
mov r12b, 1
mov rdx, qword [r13]
mov dword [rsp + 0xa0], ebx
add rdx, 8
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0xa0]
mov r14d, 8
mov r8d, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401bcbfe
mov dword [rsp + 0xa0], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0xa0]
lea rdx, [rsp + 0x38]
mov rcx, rdi
test r12b, r12b
lea r8d, [r14 - 1]
jne 0x1401bcb17
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, ebx
test eax, eax
setne dl
mov rcx, qword [r13]
mov rax, qword [rsp + 0x38]
mov qword [rcx + 0x10], rax
test edx, edx
je 0x1401bcbfe
mov rdx, qword [r13]
mov dword [rsp + 0xa0], ebx
add rdx, 0x18
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0xa0]
mov r8d, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401bcbfe
mov rdx, qword [r13]
add rdx, 0x20
mov r9d, 1
mov r12d, 0x208
mov r8d, r12d
lea rcx, [rsp + 0x58]
call fcn.14000bd14
mov rdx, qword [rax + 8]
mov dword [rsp + 0xa0], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0xa0]
mov r8d, r12d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x68]
mov r12, qword [rsp + 0x58]
cmp eax, 0xffffffff
jne 0x1401bcbd2
mov rcx, qword [r12]
test rcx, rcx
jne 0x1401bcbc9
mov eax, ebx
jmp 0x1401bcbd6
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x1401bcbef
mov rcx, qword [r12]
cmp eax, dword [rcx - 0xc]
jg 0x1401bcbef
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [r12]
mov word [rax + rcx*2], bx
jmp 0x1401bcbfe
mov ecx, 0x80070057
call fcn.14000cbb8
mov ebx, 0xd
jmp 0x1401bcc0c
mov rdi, qword [rsp + 0x30]
cmp rdi, 0xffffffffffffffff
je 0x1401bcc1b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop r13
pop r12
ret