Function at 0x18000a3d0
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 [0x180123010]
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.180007b60
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, [0x1800dc488]
lea rcx, [rbp - 0x10]
call fcn.180007b60
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, [0x1800dc488]
lea rcx, [rbp - 0x30]
call fcn.180007b60
nop
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x30]
call fcn.180028f30
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x18000a4fd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a4f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000a4f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8c14
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r12w
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x18000a551
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a54c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000a54c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8c14
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, [0x1800dcf68]
lea rcx, [rsp + 0x70]
call fcn.180007b60
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.180007b60
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x18000a5f9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a5f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000a5f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8c14
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.180029350
cmp rax, 1
jne 0x18000aa38
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 0x18000a660
lea rdx, [rbp + 0x30c]
lea rcx, [rsp + 0x48]
call fcn.180007b60
mov dword [rsp + 0x30], 1
lea rdi, [r15 + 0x180]
lea rax, [rsp + 0x48]
cmp rdi, rax
je 0x18000a6c5
mov rcx, rdi
call fcn.180007ae0
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 0x18000a6ca
mov rax, qword [rsp + 0x60]
mov ebx, 1
and ebx, 0xfffffffe
mov dword [rsp + 0x30], ebx
cmp rax, 8
jb 0x18000a716
lea rdx, [rax*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a711
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000a711
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8c14
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.18001b6e0
mov ecx, 8
call fcn.1800c8ec0
mov qword [rsp + 0x68], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rsp + 0x38], rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x18000a777
mov rdx, qword [rdi]
mov r9d, 0xfde9
mov r8d, dword [rdi + 0x10]
lea rcx, [rsp + 0x48]
call fcn.180020820
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.1800201e0
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.18001e090
test al, al
sete sil
and ebx, 0xffffffef
mov dword [rsp + 0x30], ebx
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x18000a854
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a84f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000a84f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8c14
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 0x18000a8ac
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a8a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000a8a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8c14
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov rbx, qword [rsp + 0x38]
test sil, sil
jne 0x18000a9b7
mov rsi, r12
test rbx, rbx
je 0x18000a920
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18000a906
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x18000a8fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18000a906
mov esi, dword [rsp + 0x68]
shl rsi, 0x20
add rsi, r14
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18000a920
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18000a920
mov qword [rbx], 0xffffffffffffffff
cmp qword [rbp - 0x40], 0
je 0x18000a9b7
lea rax, [rbp - 0x70]
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x68], rax
cmp rsi, 0x1400000
jb 0x18000a98c
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r12w
mov r8d, 9
lea rdx, [0x1800dcf78]
call fcn.180007b60
nop
mov rcx, qword [r15 + 0x140]
mov r8b, 1
lea rdx, [rbp - 0x70]
call fcn.1800100c0
xor r8d, r8d
lea rdx, [0x1800dc488]
mov rcx, rdi
call fcn.180007b60
jmp 0x18000a9b7
lea rdx, [rbp - 0x50]
call fcn.180007790
nop
mov rcx, qword [r15 + 0x140]
xor r8d, r8d
mov rdx, rax
call fcn.1800100c0
mov dl, 1
mov rcx, qword [r15 + 0x140]
call fcn.180010690
nop
test rbx, rbx
je 0x18000a9e4
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000a9d2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r12
mov edx, 8
mov rcx, rbx
call fcn.1800c8c14
mov qword [rsp + 0x38], r12
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x18000aa27
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000aa22
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000aa22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8c14
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r12w
lea rcx, [rbp + 0x30]
call fcn.1800291c0
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x18000aa85
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000aa80
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000aa80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8c14
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.1800c8bf0
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