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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0xe0], 0
je 0x18009d7eb
cmp qword [rdx + 0x10], 0
je 0x18009d7eb
xor r13d, r13d
mov qword [rbp - 0x31], r13
lea ecx, [r13 + 8]
call fcn.1802994e4
mov qword [rbp - 0x21], rax
mov r14, 0xffffffffffffffff
mov qword [rax], r14
mov qword [rbp - 0x31], rax
mov dword [rsp + 0x20], 3
lea r9d, [r13 + 1]
mov r8d, 0x80000000
mov rdx, rbx
lea rcx, [rbp - 0x31]
call fcn.18016bb70
mov rbx, qword [rbp - 0x31]
test al, al
je 0x18009d7b6
test rbx, rbx
je 0x18009d7b6
mov rcx, qword [rbx]
cmp rcx, r14
je 0x18009d7b6
lea rdx, [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
cmp eax, 0xffffffff
jne 0x18009d596
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18009d7b6
mov esi, dword [rbp + 0x17]
shl rsi, 0x20
mov rax, r15
add rsi, r15
je 0x18009d7b6
xor eax, eax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r13
mov qword [rbp + 0xf], r13
lea edx, [rsi + 8]
lea rcx, [rbp - 9]
call fcn.18018c430
mov r12, rax
test rax, rax
je 0x18009d72f
mov dword [rbp - 0x11], r13d
cmp qword [rbx], 0xffffffffffffffff
je 0x18009d72f
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x11]
mov r8d, esi
mov rdx, rax
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18009d72f
cmp dword [rbp - 0x11], esi
jne 0x18009d72f
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18009d630
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18009d630
mov qword [rbx], r14
mov rcx, qword [rdi + 0xe0]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x28]
movzx r15d, al
mov byte [rbp - 0x39], al
mov rcx, qword [rdi + 0xe0]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov r13d, eax
mov dword [rbp - 0x21], eax
mov rcx, qword [rdi + 0xe0]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov dword [rbp - 0x29], eax
mov rcx, qword [rdi + 0xe0]
test r15b, r15b
je 0x18009d682
mov r8, qword [rcx]
mov rdx, r12
call qword [r8 + 0x38]
jmp 0x18009d68a
mov rax, qword [rcx]
mov edx, esi
call qword [rax + 0x30]
mov r15d, eax
lea eax, [rax + 0x64]
mov dword [rbp - 0x25], eax
mov edx, eax
imul edx, dword [rbp - 0x29]
add edx, r13d
mov rcx, rdi
call fcn.1800a6c30
test al, al
je 0x18009d72f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
mov r13, rax
test rax, rax
je 0x18009d72f
cmp byte [rbp - 0x39], 0
je 0x18009d6f3
imul r15d, dword [rbp - 0x29]
add r15d, dword [rbp - 0x21]
mov r8d, r15d
mov rdx, r12
mov rcx, rax
call fcn.18029c510
mov rcx, qword [rdi + 0xe0]
mov rax, qword [rcx]
mov r8d, dword [rbp - 0x25]
mov rdx, r13
call qword [rax + 0x18]
mov sil, 1
jmp 0x18009d732
mov rcx, qword [rdi + 0xe0]
mov rax, qword [rcx]
mov r8d, dword [rbp - 0x25]
mov rdx, r13
call qword [rax + 0x18]
mov rcx, qword [rdi + 0xe0]
mov rax, qword [rcx]
mov r9, r13
mov r8d, esi
mov rdx, r12
call qword [rax + 0x40]
test al, al
je 0x18009d72f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x20]
mov sil, 1
jmp 0x18009d732
xor sil, sil
cmp qword [rbp - 1], 0
je 0x18009d74e
lea rcx, [rbp - 1]
call fcn.18003d460
xor r13d, r13d
mov ecx, r13d
mov qword [rbp - 9], rcx
jmp 0x18009d755
mov rcx, qword [rbp - 9]
xor r13d, r13d
mov rax, qword [rbp + 0xf]
test rax, rax
je 0x18009d76f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0xf], r13
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x18009d77d
call fcn.180299904
mov qword [rbp - 9], r13
mov rdi, qword [rbp + 7]
test rdi, rdi
je 0x18009d7b9
mov eax, r14d
lock xadd dword [rdi + 8], eax
sub eax, 1
jne 0x18009d7b0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], r14d
cmp r14d, 1
jne 0x18009d7b0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x31]
jmp 0x18009d7b9
xor sil, sil
test rbx, rbx
je 0x18009d7e5
mov rcx, qword [rbx]
lea r8, [rcx - 1]
cmp r8, 0xfffffffffffffffd
ja 0x18009d7d4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov edx, 8
mov rcx, rbx
call fcn.180299904
mov qword [rbp - 0x31], r13
movzx eax, sil
jmp 0x18009d7ed
xor al, al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1802994c0
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret