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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x230
lea rbp, [rsp + 0x60]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x180167010]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rbp + 0xb0], rcx
xor r13d, r13d
mov dword [rbp + 8], r13d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
mov qword [rbp + 0x140], rax
movabs rax, 0xee2b21ee8fcc24b9
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x40], rax
movabs rax, 0x10f4f8c7283448be
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
movabs rax, 0xfb38a927117c8c6d
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x50], rax
movabs rcx, 0xa617ae62e43774a8
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x58], rax
movabs rax, 0x897c1899bbbb75dd
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x1a0], rax
movabs rax, 0x4dd6a69c12652be6
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x1a8], rax
movabs rax, 0xfb38a927117c8c47
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x1b0], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x1b8], rax
vmovdqu ymm0, ymmword [rbp + 0x40]
vpxor ymm1, ymm0, ymmword [rbp + 0x1a0]
vmovdqa ymmword [rbp + 0x40], ymm1
mov qword [rbp + 0x120], r13
lea rax, [rbp + 0x128]
mov qword [rbp], rax
mov cl, 1
vzeroupper
call qword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_]
mov qword [rbp + 0x140], rax
lea rcx, [rbp + 0x128]
call fcn.180041bd0
nop
lea rcx, [rbp + 0x40]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x180018570
lea r8, [rbp + 0x40]
add r8, rax
mov r9d, 1
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x120]
call fcn.180043dd0
nop
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi], r13
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r13
mov dword [rbp + 8], 1
mov r15, qword [rbx]
mov r12, qword [rbx + 8]
cmp r15, r12
je 0x180018a01
movabs rbx, 0x7fffffffffffffff
mov rcx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x1800185d6
mov rcx, qword [r15]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1800189f1
lea rdx, [rbp + 0x118]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x18001862d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add r15, 0x20
jmp 0x1800185b6
xorps xmm0, xmm0
mov rdi, qword [rbp + 0x118]
movdqu xmmword [rbp + 0xf8], xmm0
mov qword [rbp + 0x108], r13
test rdi, rdi
je 0x1800186be
cmp rdi, rbx
ja 0x180018a6c
cmp rdi, 0x1000
jb 0x180018689
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x180018a66
call fcn.18012c104
mov rcx, rax
test rax, rax
je 0x1800189fa
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180018691
mov rcx, rdi
call fcn.18012c104
mov qword [rbp + 0xf8], rax
lea rbx, [rax + rdi]
mov qword [rbp + 0x108], rbx
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x100], rbx
mov rdi, qword [rbp + 0x118]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x110]
mov r8d, edi
mov rdx, qword [rbp + 0xf8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800189ab
mov eax, dword [rbp + 0x110]
cmp rax, qword [rbp + 0x118]
jne 0x1800189ab
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x160], r13
mov qword [rbp + 0x170], r13
mov qword [rbp + 0x178], 0xf
mov byte [rbp + 0x160], 0
mov rdx, qword [rbp + 0xf8]
mov r8, qword [rbp + 0x100]
cmp rdx, r8
je 0x180018744
sub r8, rdx
lea rcx, [rbp + 0x160]
call fcn.1800045d0
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x148], xmm0
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x88]
mov qword [rbp], rax
mov qword [rbp + 0x88], r13
lea rax, [rbp + 0x90]
mov qword [rbp + 0x60], rax
mov rcx, qword [rbp + 0x140]
mov qword [rbp + 0xa8], rcx
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rbp + 0x90]
call fcn.180041bd0
nop
mov rbx, qword [rbp + 0x120]
test rbx, rbx
je 0x1800187a6
lock inc dword [rbx + 0x2c]
lea rcx, [rbp + 0x88]
call fcn.180041280
mov qword [rbp + 0x88], rbx
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0xb8]
call fcn.180040920
nop
lea r8, [rbp + 0x88]
mov rdx, rax
lea rcx, [rbp + 0x148]
call fcn.180017e90
nop
mov rbx, qword [rbp + 0x148]
mov r14, qword [rbp + 0x150]
cmp rbx, r14
je 0x180018990
nop dword [rax + rax]
movabs rax, 0x897c189986861292
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x10], rax
movabs rcx, 0x4dd6a69c12652be6
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x18], rax
movabs rax, 0x897c1899bbbb75dd
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x180], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x188], rax
movdqa xmm0, xmmword [rbp + 0x10]
pxor xmm0, xmmword [rbp + 0x180]
movdqa xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x68], r13
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], 0xf
mov byte [rbp + 0x68], 0
lea rax, [rbp + 0x10]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180018890
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x68]
call fcn.1800045d0
nop
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0xd8]
call fcn.1800553f0
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.1800406c0
mov rdi, rax
lea rcx, [rbp + 0xd8]
call fcn.180041490
nop
lea rcx, [rbp + 0x68]
call fcn.180041490
cmp rdi, 0xffffffffffffffff
je 0x180018983
lea rcx, [rdi + 1]
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], 0xf
mov byte [rbp + 0x20], 0
mov rax, qword [rbx + 0x10]
cmp rax, rcx
jb 0x180018a60
sub rax, rcx
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18001892c
mov rax, qword [rbx]
lea rdx, [rax + rcx]
lea rcx, [rbp + 0x20]
call fcn.1800045d0
or dword [rbp + 8], 2
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x18001896d
movups xmm0, xmmword [rbp + 0x20]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp + 0x30]
movups xmmword [rdx + 0x10], xmm1
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], 0xf
mov byte [rbp + 0x20], 0
add qword [rsi + 8], 0x20
jmp 0x18001897a
lea r8, [rbp + 0x20]
mov rcx, rsi
call fcn.180043560
nop
lea rcx, [rbp + 0x20]
call fcn.180041490
add rbx, 0x20
cmp rbx, r14
jne 0x180018800
lea rcx, [rbp + 0x148]
call fcn.180041150
nop
lea rcx, [rbp + 0x160]
call fcn.180041490
jmp 0x1800189b5
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0xf8]
test rcx, rcx
je 0x1800189f1
mov rdx, qword [rbp + 0x108]
sub rdx, rcx
cmp rdx, 0x1000
mov rax, rcx
jb 0x1800189ec
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800189fa
call fcn.18012be60
add r15, 0x20
jmp 0x1800185b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rbp + 0x120]
call fcn.180041280
mov rcx, qword [rbp + 0x140]
test rcx, rcx
je 0x180018a33
mov r8, qword [rcx]
call qword [r8 + 0x10]
test rax, rax
je 0x180018a33
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, rsi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.18012be40
mov rbx, qword [rsp + 0x280]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180041ce0
nop
call fcn.180001230
int3
call fcn.180044d00
int3