Function at 0x18000a1f0
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5c8]
sub rsp, 0x6a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov r15, rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], 7
mov word [rbp + 0x10], r12w
lea r8d, [r12 + 4]
lea rdx, str._b_tg
lea rcx, [rbp + 0x10]
call fcn.180007980
nop
mov qword [rbp], r12
mov qword [rbp + 8], r12
mov qword [rbp], r12
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r12w
xor r8d, r8d
lea rdx, [0x1800db478]
lea rcx, [rbp - 0x10]
call fcn.180007980
nop
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r12w
xor r8d, r8d
lea rdx, [0x1800db478]
lea rcx, [rbp - 0x30]
call fcn.180007980
nop
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x30]
call fcn.18002b190
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x18000a31d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a318
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000a318
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8554
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r12w
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x18000a371
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a36c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000a36c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8554
mov qword [rbp], r12
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r12w
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r12w
mov r8d, 4
lea rdx, [0x1800dbf08]
lea rcx, [rsp + 0x70]
call fcn.180007980
nop
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
mov r8, qword [rbp - 0x80]
lea rcx, [rbp + 0x528]
call fcn.180007980
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x18000a419
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a414
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000a414
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8554
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r12w
mov dword [rbp + 0x9c], 1
mov rdx, qword [r15 + 8]
lea rcx, [rbp + 0x520]
call fcn.18002b5b0
cmp rax, 1
jne 0x18000a858
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r12w
lea rax, [rbp + 0x30c]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18000a480
lea rdx, [rbp + 0x30c]
lea rcx, [rsp + 0x48]
call fcn.180007980
mov dword [rsp + 0x30], 1
lea rdi, [r15 + 0x180]
lea rax, [rsp + 0x48]
cmp rdi, rax
je 0x18000a4e5
mov rcx, rdi
call fcn.180007900
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsp + 0x58], r12
mov eax, 7
mov qword [rsp + 0x60], rax
mov word [rsp + 0x48], r12w
jmp 0x18000a4ea
mov rax, qword [rsp + 0x60]
mov ebx, 1
and ebx, 0xfffffffe
mov dword [rsp + 0x30], ebx
cmp rax, 8
jb 0x18000a536
lea rdx, [rax*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a531
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000a531
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8554
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r12w
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r12w
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.18001b500
mov ecx, 8
call fcn.1800c8800
mov qword [rsp + 0x68], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rsp + 0x38], rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x18000a597
mov rdx, qword [rdi]
mov r9d, 0xfde9
mov r8d, dword [rdi + 0x10]
lea rcx, [rsp + 0x48]
call fcn.180020640
or ebx, 4
mov dword [rsp + 0x30], ebx
and ebx, 0xfffffffb
mov dword [rsp + 0x30], ebx
or ebx, 2
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov r9d, 0xfde9
mov r8d, dword [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.180020000
or ebx, 0x20
mov dword [rsp + 0x30], ebx
and ebx, 0xffffffdf
mov dword [rsp + 0x30], ebx
or ebx, 0x10
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9d, 1
mov r8d, 0x80000000
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x38]
call fcn.18001deb0
test al, al
sete sil
and ebx, 0xffffffef
mov dword [rsp + 0x30], ebx
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x18000a674
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a66f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000a66f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8554
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r12w
and ebx, 0xfffffffd
mov dword [rsp + 0x30], ebx
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18000a6cc
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a6c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000a6c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8554
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov rbx, qword [rsp + 0x38]
test sil, sil
jne 0x18000a7d7
mov rsi, r12
test rbx, rbx
je 0x18000a740
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18000a726
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x18000a71b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18000a726
mov esi, dword [rsp + 0x68]
shl rsi, 0x20
add rsi, r14
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18000a740
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18000a740
mov qword [rbx], 0xffffffffffffffff
cmp qword [rbp - 0x40], 0
je 0x18000a7d7
lea rax, [rbp - 0x70]
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x68], rax
cmp rsi, 0x1400000
jb 0x18000a7ac
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r12w
mov r8d, 9
lea rdx, [0x1800dbf18]
call fcn.180007980
nop
mov rcx, qword [r15 + 0x140]
mov r8b, 1
lea rdx, [rbp - 0x70]
call fcn.18000fee0
xor r8d, r8d
lea rdx, [0x1800db478]
mov rcx, rdi
call fcn.180007980
jmp 0x18000a7d7
lea rdx, [rbp - 0x50]
call fcn.1800075b0
nop
mov rcx, qword [r15 + 0x140]
xor r8d, r8d
mov rdx, rax
call fcn.18000fee0
mov dl, 1
mov rcx, qword [r15 + 0x140]
call fcn.1800104b0
nop
test rbx, rbx
je 0x18000a804
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000a7f2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r12
mov edx, 8
mov rcx, rbx
call fcn.1800c8554
mov qword [rsp + 0x38], r12
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x18000a847
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a842
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000a842
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8554
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r12w
lea rcx, [rbp + 0x30]
call fcn.18002b420
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x18000a8a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a8a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000a8a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8554
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], 7
mov word [rbp + 0x10], r12w
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.1800c8530
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret