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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp + 0x58], rax
mov rbx, rdx
mov rdi, rcx
xor r13d, r13d
mov byte [rcx + 0x10], r13b
mov rax, qword [rcx]
call qword [rax]
mov qword [rsp + 0x30], r13
lea ecx, [r13 + 8]
call fcn.1802994e4
mov qword [rsp + 0x38], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r9d, [r13 + 1]
mov r8d, 0x80000000
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1801e1a50
test al, al
jne 0x1801e80a2
lea rcx, [rbp + 0x38]
call fcn.1801f5d90
nop
cmp qword [rdi + 8], r13
je 0x1801e808f
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x70]
call fcn.180037a20
nop
mov rcx, qword [rdi + 8]
mov r9, qword [rcx]
mov r8, rax
xor edx, edx
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0x38]
call fcn.1800338a0
mov rbx, qword [rsp + 0x30]
jmp 0x1801e82e1
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1801e8290
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1801e8290
lea rdx, [rbp - 0xc]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x1801e80dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1801e8290
mov r14d, dword [rbp - 0xc]
shl r14, 0x20
mov rax, rsi
add r14, rsi
je 0x1801e8290
mov r12b, 1
mov dword [rbp - 0x10], r13d
mov rsi, r13
mov ecx, 0x10000
call fcn.18029a0ac
mov r15, rax
movsd xmm6, qword [0x180397df8]
nop
test r15, r15
je 0x1801e820b
cmp qword [rbx], 0xffffffffffffffff
je 0x1801e8225
mov dword [rbp - 0x10], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x10]
mov r8d, 0x10000
mov rdx, r15
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801e820b
movzx eax, byte [rdi + 0x10]
test al, al
jne 0x1801e81b3
mov r8d, dword [rbp - 0x10]
test r8d, r8d
je 0x1801e8206
mov rax, qword [rdi]
mov rdx, r15
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbp - 0x10]
add rsi, rax
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1801e81a5
mov rax, qword [rcx]
xorps xmm1, xmm1
cvtsi2sd xmm1, rsi
test rsi, rsi
jns 0x1801e818e
addsd xmm1, xmm6
xorps xmm0, xmm0
cvtsi2sd xmm0, r14
test r14, r14
jns 0x1801e819f
addsd xmm0, xmm6
divsd xmm1, xmm0
call qword [rax]
mov dword [rbp - 0x10], r13d
mov rbx, qword [rsp + 0x30]
jmp 0x1801e8110
mov qword [rbp + 8], r13
mov qword [rbp + 0x10], r13
mov qword [rbp + 8], r13
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r13w
cmp qword [rdi + 8], 0
je 0x1801e81fa
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x70]
call fcn.180037a20
nop
mov rcx, qword [rdi + 8]
mov r9, qword [rcx]
mov r8, rax
xor edx, edx
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
xor r12b, r12b
lea rcx, [rbp - 8]
call fcn.1800338a0
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1801e8225
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1801e8225
mov qword [rbx], 0xffffffffffffffff
mov rcx, r15
call fcn.180299904
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r13w
cmp qword [rdi + 8], 0
je 0x1801e8284
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x50]
call fcn.180037a20
nop
mov rcx, qword [rdi + 8]
mov r9, qword [rcx]
mov r8, rax
mov dl, 1
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x48]
call fcn.1800338a0
jmp 0x1801e82e4
mov qword [rbp + 0x28], r13
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x28], r13
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], r13w
cmp qword [rdi + 8], 0
je 0x1801e82d8
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x30]
call fcn.180037a20
nop
mov rcx, qword [rdi + 8]
mov r9, qword [rcx]
mov r8, rax
xor edx, edx
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0x18]
call fcn.1800338a0
xor r12b, r12b
test rbx, rbx
je 0x1801e8311
mov rcx, qword [rbx]
lea r8, [rcx - 1]
cmp r8, 0xfffffffffffffffd
ja 0x1801e82ff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov edx, 8
mov rcx, rbx
call fcn.180299904
mov qword [rsp + 0x30], r13
movzx eax, r12b
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.1802994c0
mov rbx, qword [rsp + 0x1c0]
movaps xmm6, xmmword [rsp + 0x160]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret