Function at 0x1800c68f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rdi, rcx
xor r15d, r15d
mov r13d, r15d
mov r12d, r15d
cmp dword [rcx + 0x30], r12d
je 0x1800c6924
call fcn.1800db470
mov r12, rax
mov edx, 0xc0000000
mov eax, 0x80000000
cmp dword [rdi + 0x28], r13d
cmovne edx, eax
mov dword [rsp + 0xa0], r15d
mov ebp, r15d
mov rcx, qword [rdi + 0x38]
cmp dword [rcx - 0x10], r15d
je 0x1800c69a8
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9, r12
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1800c698b
lea rdx, [rsp + 0xa0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x1800c6b86
cmp dword [rsp + 0xa0], r13d
jne 0x1800c69a8
test ebp, ebp
je 0x1800c6b86
mov esi, 2
mov r14d, 4
cmp dword [rdi + 0x28], r13d
cmovne r14d, esi
mov rbx, qword [rdi + 0x40]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], r13d
jl 0x1800c69e2
cmp rax, qword [rbx - 0x18]
jne 0x1800c69e2
lea rsi, [rbx - 0x18]
lock inc dword [rbx - 8]
jmp 0x1800c6a1a
mov rax, qword [rax]
mov r8d, esi
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x1800c6b8b
mov eax, dword [rbx - 0x10]
mov dword [rsi + 8], eax
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rbx
add rdx, rdx
lea rcx, [rsi + 0x18]
call fcn.18007f224
lea rbx, [rsi + 0x18]
mov qword [rsp + 0xb0], rbx
cmp dword [rdi + 0x2c], 0
je 0x1800c6a76
mov rax, qword [rdi + 0x40]
cmp dword [rax - 0x10], 0
je 0x1800c6a76
call fcn.1800d0940
test eax, eax
je 0x1800c6a76
mov r8d, 7
lea rdx, [0x18012e988]
lea rcx, [rsp + 0xb0]
call fcn.180004b00
mov rdx, qword [rdi + 0x40]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0xb0]
call fcn.18001b360
mov rbx, qword [rsp + 0xb0]
mov rax, rbx
cmp dword [rbx - 0x10], 0
cmove rax, r15
mov qword [rsp + 0x28], rax
mov eax, dword [rdi + 0x20]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, r14d
mov rdx, r12
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1800c6b6a
mov edx, 6
cmp dword [rdi + 0x28], 0
mov eax, 4
cmovne edx, eax
mov eax, dword [rdi + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, dword [rdi + 0x24]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1800c6b68
mov r13d, 1
cmp dword [rdi + 0x20], 0
jne 0x1800c6b4b
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x1800c6b4b
mov dword [rsp + 0xa8], ebp
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0xac], eax
mov eax, dword [rdi + 0x24]
mov dword [rsp + 0xb8], eax
mov dword [rsp + 0xbc], r15d
mov rax, qword [rsp + 0xa8]
sub rax, qword [rsp + 0xb8]
mov qword [rsp + 0xa8], rax
shr rax, 0x20
mov ecx, dword [rsp + 0xa8]
or edx, 0xffffffff
test eax, eax
cmovg ecx, edx
mov dword [rdi + 0x20], ecx
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800c6b86
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1800c6b86
jmp 0x1800c6b4b
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800c6b86
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r13d
jmp 0x1800c6b91
call fcn.180004170
int3
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret