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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rsp + 0xe8], rbx
mov r14, rdx
mov r13, rcx
xor r15d, r15d
mov r12d, r15d
mov dword [rbp + 0x17], r15d
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x7f], rbx
mov r8d, dword [0x180069c80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
or rsi, 0xffffffffffffffff
cmp ecx, 0x17
jne 0x18000b760
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x63
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1800289f0
mov rcx, rax
call fcn.180028a24
mov rcx, qword [r14]
cmp dword [rcx - 0x10], 0
je 0x18000b7b4
lea rdx, [0x180055e66]
call fcn.180029c08
test eax, eax
je 0x18000b7b4
lea rcx, [rbp + 0xf]
call fcn.180009d50
mov r12d, 1
mov rdx, qword [rax]
mov eax, r15d
test rdx, rdx
setne al
test eax, eax
jne 0x18000b7a3
mov ecx, 0x80004005
call fcn.180002bd0
int3
mov rcx, qword [r14]
call fcn.180029c08
test eax, eax
je 0x18000b7b4
xor dil, dil
jmp 0x18000b7b7
mov dil, 1
test r12b, 1
je 0x18000b7d9
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18000b7d5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rbx, qword [rbp + 0x7f]
test dil, dil
je 0x18000b946
lea rcx, [rbp - 0x11]
call fcn.180009d50
nop
mov r13, qword [rax]
lea rcx, [r13 - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x18000b921
cmp dword [rdi + 0x10], 0
jl 0x18000b833
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x18000b833
call fcn.180002110
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x18000b82a
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rVariantCopy + 8]
lea rax, [rbx + 0x18]
jmp 0x18000b91d
movsxd r14, dword [r13 - 0x10]
test r14d, r14d
jne 0x18000b891
mov r14, qword [rdi]
cmp dword [rdi + 8], 0
je 0x18000b921
cmp dword [rdi + 0x10], 0
jge 0x18000b86c
cmp dword [rbx - 0xc], 0
jge 0x18000b860
mov ecx, 0x80070057
call fcn.180002bd0
int3
mov dword [rbx - 0x10], r15d
mov byte [rbx], 0
jmp 0x18000b921
lock add dword [rdi + 0x10], 0xffffffff
jg 0x18000b87f
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + VariantCopy]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
add rax, 0x18
jmp 0x18000b91d
test r13, r13
jne 0x18000b8a1
mov ecx, 0x80070057
call fcn.180002bd0
int3
mov r12d, dword [rbx - 0x10]
mov r15, r13
sub r15, rbx
test r14d, r14d
jns 0x18000b8bb
mov ecx, 0x80070057
call fcn.180002bd0
int3
mov ecx, 1
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, r14d
or eax, ecx
jge 0x18000b8dd
mov edx, r14d
lea rcx, [rbp + 0x7f]
call fcn.180002c50
mov rbx, qword [rbp + 0x7f]
mov rdi, r14
movsxd rdx, dword [rbx - 0xc]
mov r9, r14
mov rcx, rbx
cmp r15, r12
ja 0x18000b8fa
lea r8, [r15 + rbx]
call fcn.180029ae8
jmp 0x18000b902
mov r8, r13
call fcn.180028f24
cmp r14d, dword [rbx - 0xc]
jg 0x18000b912
mov dword [rbx - 0x10], r14d
mov byte [rdi + rbx], 0
jmp 0x18000b921
mov ecx, 0x80070057
call fcn.180002bd0
int3
mov qword [rbp + 0x7f], rax
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18000b939
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rbx, qword [rbp + 0x7f]
mov r13, qword [rbp + 0x67]
jmp 0x18000bdc3
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x18000bac1
lea rcx, [rbp + 7]
call fcn.180009d50
nop
mov r13, qword [rax]
lea rcx, [r13 - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x18000bab8
cmp dword [rdi + 0x10], 0
jl 0x18000b9ca
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x18000b9ca
call fcn.180002110
mov rbx, rax
lock add dword [rdi + 0x10], r12d
jg 0x18000b9c1
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rVariantCopy + 8]
lea rax, [rbx + 0x18]
jmp 0x18000bab4
movsxd r14, dword [r13 - 0x10]
test r14d, r14d
jne 0x18000ba28
mov r14, qword [rdi]
cmp dword [rdi + 8], 0
je 0x18000bab8
cmp dword [rdi + 0x10], 0
jge 0x18000ba03
cmp dword [rbx - 0xc], 0
jge 0x18000b9f7
mov ecx, 0x80070057
call fcn.180002bd0
int3
mov dword [rbx - 0x10], r15d
mov byte [rbx], 0
jmp 0x18000bab8
lock add dword [rdi + 0x10], 0xffffffff
jg 0x18000ba16
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + VariantCopy]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
add rax, 0x18
jmp 0x18000bab4
test r13, r13
jne 0x18000ba38
mov ecx, 0x80070057
call fcn.180002bd0
int3
mov r12d, dword [rbx - 0x10]
mov r15, r13
sub r15, rbx
test r14d, r14d
jns 0x18000ba52
mov ecx, 0x80070057
call fcn.180002bd0
int3
mov ecx, 1
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, r14d
or eax, ecx
jge 0x18000ba74
mov edx, r14d
lea rcx, [rbp + 0x7f]
call fcn.180002c50
mov rbx, qword [rbp + 0x7f]
mov rdi, r14
movsxd rdx, dword [rbx - 0xc]
mov r9, r14
mov rcx, rbx
cmp r15, r12
ja 0x18000ba91
lea r8, [r15 + rbx]
call fcn.180029ae8
jmp 0x18000ba99
mov r8, r13
call fcn.180028f24
cmp r14d, dword [rbx - 0xc]
jg 0x18000baa9
mov dword [rbx - 0x10], r14d
mov byte [rdi + rbx], 0
jmp 0x18000bab8
mov ecx, 0x80070057
call fcn.180002bd0
int3
mov qword [rbp + 0x7f], rax
mov rdx, qword [rbp + 7]
jmp 0x18000b925
xor eax, eax
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 0x39]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x18000bb55
lea rcx, [rbp - 9]
call fcn.180009d50
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x18000bb34
cmp dword [rbx + 0x10], 0
jl 0x18000bb26
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x18000bb26
call fcn.180002110
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x18000bb1c
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rVariantCopy + 8]
lea rax, [rdi + 0x18]
mov qword [rbp + 0x7f], rax
jmp 0x18000bb34
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x7f]
call fcn.180002020
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18000bdb6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
jmp 0x18000bdb6
cmp dword [rbp - 0x35], 0
je 0x18000bbc0
lea rcx, [rbp - 1]
call fcn.180009d50
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x18000bbb7
cmp dword [rbx + 0x10], 0
jl 0x18000bba9
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x18000bba9
call fcn.180002110
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x18000bb9f
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rVariantCopy + 8]
lea rax, [rdi + 0x18]
mov qword [rbp + 0x7f], rax
jmp 0x18000bbb7
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x7f]
call fcn.180002020
nop
mov rdx, qword [rbp - 1]
jmp 0x18000bb38
mov rax, qword [rbp - 0x39]
test eax, eax
je 0x18000bdba
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x21], r15
mov edx, eax
lea rcx, [rbp - 0x31]
call fcn.18000bf00
mov dword [rbp + 0x77], r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x77]
mov r8d, dword [rbp - 0x39]
mov rdi, qword [rbp - 0x31]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000bc1e
test rdi, rdi
je 0x18000bdba
mov rcx, rdi
call fcn.1800289b0
jmp 0x18000bdba
movzx eax, byte [rdi]
cmp al, 0xff
jne 0x18000bc2b
cmp byte [rdi + 1], 0xfe
je 0x18000bc35
cmp al, 0xfe
jne 0x18000bc5e
cmp byte [rdi + 1], 0xff
jne 0x18000bc5e
mov rcx, r13
call fcn.180009d50
nop
mov rcx, rdi
call fcn.1800289b0
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18000be3c
mov rcx, qword [rdx]
jmp 0x18000be36
cmp al, 0xef
jne 0x18000bca0
cmp byte [rdi + 1], 0xbb
jne 0x18000bca0
cmp byte [rdi + 2], 0xbf
jne 0x18000bca0
lea rdx, [rdi + 3]
mov r14, qword [rbp - 0x29]
cmp rdx, r14
jne 0x18000bc84
mov r14, rdi
mov qword [rbp - 0x29], rdi
jmp 0x18000bca4
cmp rdi, rdx
je 0x18000bca4
sub r14, rdx
mov r8, r14
mov rcx, rdi
call fcn.180028a40
add r14, rdi
mov qword [rbp - 0x29], r14
jmp 0x18000bca4
mov r14, qword [rbp - 0x29]
sub r14, rdi
cmp byte [rdi + r14 - 1], 0
je 0x18000bd01
lea rdx, [r14 + 1]
lea rcx, [rbp - 0x31]
call fcn.18000bf00
mov rdi, qword [rbp - 0x31]
mov byte [rdi + r14], 0
mov ecx, dword [0x180069c80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0xb21642c9
imul r8d
add edx, r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub r8d, edx
cmp r8d, 0x13
jne 0x18000bd01
inc dword [0x18006a29c]
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x19], rax
test rdi, rdi
je 0x18000bd2e
mov rax, rsi
inc rax
cmp byte [rdi + rax], 0
jne 0x18000bd22
mov r15d, eax
mov r8d, r15d
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.180002020
nop
mov rdx, qword [rbp - 0x19]
lea rdi, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rdi, rbx
je 0x18000bd94
cmp dword [rbx + 0x10], 0
jl 0x18000bd86
mov rax, qword [rbx]
cmp qword [rdi], rax
jne 0x18000bd86
mov rcx, rdi
call fcn.180002110
mov r14, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x18000bd7c
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rVariantCopy + 8]
lea rax, [r14 + 0x18]
mov qword [rbp + 0x7f], rax
jmp 0x18000bd94
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x7f]
call fcn.180002020
nop
lock add dword [rdi + 0x10], 0xffffffff
jg 0x18000bda8
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + VariantCopy]
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x18000bdb6
call fcn.1800289b0
mov rbx, qword [rbp + 0x7f]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x18000bde6
cmp rax, qword [rbx - 0x18]
jne 0x18000bde6
lea rdi, [rbx - 0x18]
lock inc dword [rbx - 8]
jmp 0x18000be1f
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
jne 0x18000be02
call fcn.180002bf0
int3
mov eax, dword [rbx - 0x10]
mov dword [rdi + 8], eax
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
mov r8, rbx
lea rcx, [rdi + 0x18]
mov r9, rdx
call fcn.180028f24
lea rax, [rdi + 0x18]
mov qword [r13], rax
lock add dword [rbx - 8], 0xffffffff
jg 0x18000be3c
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rax, r13
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret