Function at 0x1400cccf8
Capabilities:
Get file size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c8]
sub rsp, 0x2c8
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rax, qword [rbp + 0x230]
mov r14, rdx
mov r12, qword [rbp + 0x240]
mov rbx, rcx
mov r13, qword [rbp + 0x248]
mov rdi, qword [rbp + 0x258]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp + 0x238]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x70], r9
mov qword [rbp - 0x78], r8
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
mov r15b, 4
cmp rcx, rax
je 0x1400ccd95
test byte [rcx + 0x1c], r15b
je 0x1400ccd95
cmp byte [rcx + 0x19], r15b
jb 0x1400ccd95
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151b50]
mov edx, 0x48
call fcn.14000c0e8
mov rcx, rbx
call fcn.1400cc4f8
xor eax, eax
lea rcx, [rbp - 0x50]
xorps xmm0, xmm0
mov byte [rbx + 0x17c], al
xor edx, edx
mov r8d, 0x200
movups xmmword [rbp - 0x60], xmm0
call sub.msvcrt.dll_memset
or rsi, 0xffffffffffffffff
xor ecx, ecx
inc rsi
cmp word [r14 + rsi*2], cx
jne 0x1400ccdc3
inc rsi
lea rdx, [rsi + rsi]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
xor r11d, r11d
mov qword [rbx + 8], rax
test rax, rax
je 0x1400cce0b
mov r8, r14
mov rdx, rsi
mov rcx, rax
call fcn.140006300
test eax, eax
jns 0x1400cce34
movzx eax, ax
mov rcx, rbx
mov dword [rdi], eax
call fcn.1400cc4f8
mov eax, 8
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400071e0
add rsp, 0x2c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 0x30], r11
xor r9d, r9d
mov dword [rsp + 0x28], 0x60000080
mov edx, 0x80000000
mov rcx, r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1400ccec7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rdi], eax
mov rcx, qword [0x14016a048]
lea rdx, [0x14016a048]
cmp rcx, rdx
je 0x1400cce0b
test byte [rcx + 0x1c], r15b
je 0x1400cce0b
cmp byte [rcx + 0x19], 2
jb 0x1400cce0b
mov edx, 0x49
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151b50]
mov r9, r14
mov dword [rsp + 0x20], eax
call fcn.140014f78
jmp 0x1400cce0b
mov rcx, qword [0x14016a048]
lea rsi, [0x14016a048]
cmp rcx, rsi
je 0x1400ccf03
test byte [rcx + 0x1c], r15b
je 0x1400ccf03
cmp byte [rcx + 0x19], r15b
jb 0x1400ccf03
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151b50]
mov edx, 0x4a
mov qword [rsp + 0x20], rax
mov r9, r14
call fcn.14005aaa8
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
jne 0x1400ccf61
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rbx
mov dword [rdi], eax
call fcn.1400cc4f8
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x1400cce0b
test byte [rcx + 0x1c], r15b
je 0x1400cce0b
cmp byte [rcx + 0x19], 2
jb 0x1400cce0b
mov eax, dword [rdi]
mov edx, 0x4b
jmp 0x1400cceab
mov r9, rdi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1400d4034
mov esi, eax
test eax, eax
je 0x1400ccfbf
mov rcx, qword [0x14016a048]
lea rdx, [0x14016a048]
cmp rcx, rdx
je 0x1400cd6b4
test byte [rcx + 0x1c], r15b
je 0x1400cd6b4
cmp byte [rcx + 0x19], 2
jb 0x1400cd6b4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151b50]
mov edx, 0x4c
mov r9d, eax
call fcn.14001539c
jmp 0x1400cd6b4
mov rax, qword [rsp + 0x70]
xor esi, esi
mov edx, 0x10024
mov qword [rbx + 0x18], rax
xor ecx, ecx
mov qword [rbx + 0x168], rsi
mov qword [rbx + 0x38], rsi
lea r14d, [rsi + 1]
mov qword [rbx + 0x40], rsi
mov byte [rbx + 0x49], r14b
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov edx, 0x10000
xor ecx, ecx
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov edx, 0x10000
xor ecx, ecx
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov edx, 0x10200
mov dword [rbx + 0x68], esi
xor ecx, ecx
mov qword [rbx + 0x60], rax
mov dword [rbx + 0xa8], esi
mov byte [rbx + 0xc0], sil
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov edx, 0x20000
mov byte [rbx + 0xf8], sil
xor ecx, ecx
mov qword [rbx + 0xc8], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov qword [rbx + 0x100], rax
mov rcx, qword [0x14016a048]
lea rdx, [0x14016a048]
cmp rcx, rdx
je 0x1400cd0b0
test byte [rcx + 0x1c], r15b
je 0x1400cd0b0
cmp byte [rcx + 0x19], r15b
jb 0x1400cd0b0
mov rax, qword [rbx + 0x18]
lea edx, [rsi + 0x4d]
mov r9, qword [rbx + 8]
lea r8, [0x140151b50]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.140040240
cmp qword [rbx + 0x50], rsi
je 0x1400cd6c3
cmp qword [rbx + 0x58], rsi
je 0x1400cd6c3
cmp qword [rbx + 0x60], rsi
je 0x1400cd6c3
mov rax, qword [rbx + 0xc8]
test rax, rax
je 0x1400cd6c3
mov rcx, qword [rbx + 0x100]
test rcx, rcx
je 0x1400cd6c3
add rax, 0xffff
mov rdx, 0xffffffffffff0000
and rax, rdx
xor r9d, r9d
mov qword [rbx + 0xd0], rax
xor r8d, r8d
lea rax, [rcx + 0xffff]
xor ecx, ecx
and rax, rdx
mov edx, r14d
mov qword [rbx + 0x108], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov qword [rbx + 0xf0], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rbx + 0x128], rax
cmp qword [rbx + 0xf0], rsi
je 0x1400cd6a1
test rax, rax
je 0x1400cd6a1
mov qword [rsp + 0x40], rdi
lea rax, [rbx + 0x140]
mov qword [rsp + 0x38], rsi
lea r15, [rbx + 0x30]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x50]
mov qword [rbx + 0x138], r14
lea r8, [rsp + 0x68]
lea r14, [rbx + 0x28]
mov qword [rsp + 0x28], r15
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], r14
mov rcx, rbx
mov qword [rbx + 0x130], rsi
call fcn.1400d1e10
mov esi, eax
xor eax, eax
test esi, esi
je 0x1400cd213
mov rcx, rbx
call fcn.1400cc4f8
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x1400cd6bc
test byte [rcx + 0x1c], 4
je 0x1400cd6bc
cmp byte [rcx + 0x19], 2
jb 0x1400cd6bc
mov edx, 0x4e
mov eax, dword [rdi]
lea r8, [0x140151b50]
mov rcx, qword [rcx + 0x10]
mov r9d, esi
mov dword [rsp + 0x20], eax
call fcn.140040538
jmp 0x1400cd6bc
mov r8b, byte [rsp + 0x50]
xorps xmm0, xmm0
movups xmmword [rbx + 0x70], xmm0
mov dword [rbx + 0x80], eax
mov byte [rbx + 0x48], r8b
cmp byte [r15], al
je 0x1400cd2dc
mov r9, rdi
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1400d1a54
mov esi, eax
mov rcx, rbx
test eax, eax
je 0x1400cd284
call fcn.1400cc4f8
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x1400cd6bc
test byte [rcx + 0x1c], 4
je 0x1400cd6bc
cmp byte [rcx + 0x19], 2
jb 0x1400cd6bc
mov edx, 0x4f
jmp 0x1400cd1f5
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x50]
call fcn.1400ce414
mov esi, eax
test eax, eax
je 0x1400cd2d5
mov rcx, rbx
call fcn.1400cc4f8
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x1400cd6bc
test byte [rcx + 0x1c], 4
je 0x1400cd6bc
cmp byte [rcx + 0x19], 2
jb 0x1400cd6bc
mov edx, 0x50
jmp 0x1400cd1f5
mov rsi, qword [rsp + 0x58]
jmp 0x1400cd2df
mov rsi, qword [r14]
mov r10, qword [0x14016a048]
lea r9, [0x14016a048]
mov r8b, 4
cmp r10, r9
je 0x1400cd32c
test byte [r10 + 0x1c], r8b
je 0x1400cd32c
cmp byte [r10 + 0x19], r8b
jb 0x1400cd32c
mov rax, qword [r14]
movzx r9d, byte [r15]
mov rcx, qword [r10 + 0x10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.1400d608c
mov r10, qword [0x14016a048]
lea r9, [0x14016a048]
mov r8b, 4
movabs rax, 0x1fdffe00000
cmp rsi, rax
jg 0x1400cd656
cmp rsi, qword [r14]
jg 0x1400cd656
xor eax, eax
mov r10d, 0x600
mov dword [rbx + 0xb4], r10d
cmp byte [rbx + 0x48], al
je 0x1400cd3a3
lea rax, [rsi + 0xffff]
mov ecx, 0x10000
cqo
idiv rcx
add eax, 0x107f
shr eax, 0xc
add eax, 3
shl eax, 9
mov dword [rbx + 0xb4], eax
mov rcx, qword [0x14016a048]
cmp rcx, r9
je 0x1400cd3d3
test byte [rcx + 0x1c], r8b
je 0x1400cd3d3
cmp byte [rcx + 0x19], r8b
jb 0x1400cd3d3
mov edx, 0x53
mov r9d, eax
jmp 0x1400cd3c3
mov rcx, qword [0x14016a048]
cmp rcx, r9
je 0x1400cd3d3
test byte [rcx + 0x1c], r8b
je 0x1400cd3d3
cmp byte [rcx + 0x19], r8b
jb 0x1400cd3d3
mov edx, 0x54
mov r9d, r10d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151b50]
call fcn.14000c23c
mov rax, qword [r14]
mov ecx, 0x200000
add rax, 0x1fffff
cqo
idiv rcx
lea ecx, [rax*4 + 0x1ff]
mov eax, dword [rbx + 0xb4]
shr ecx, 9
shr eax, 9
add eax, ecx
xor ecx, ecx
cmp byte [r15], cl
lea r9d, [rax + 1]
cmove r9d, eax
mov dword [rbx + 0xb8], r9d
mov rcx, qword [0x14016a048]
lea r10, [0x14016a048]
cmp rcx, r10
je 0x1400cd44a
test byte [rcx + 0x1c], 4
je 0x1400cd44a
cmp byte [rcx + 0x19], 4
jb 0x1400cd44a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151b50]
mov edx, 0x55
call fcn.14000c23c
lea r10, [0x14016a048]
mov rax, qword [r14]
mov r14d, 0x1fffff
add rax, r14
mov qword [rbx + 0x20], rsi
cqo
lea ecx, [r14 + 1]
idiv rcx
mov ecx, 0x10000
mov dword [rbx + 0xbc], eax
mov rax, rsi
cqo
idiv rcx
mov dword [rbx + 0xac], edx
mov r8, rdx
test edx, edx
jne 0x1400cd48c
mov dword [rbx + 0xac], ecx
mov r8d, ecx
mov rcx, qword [0x14016a048]
mov rdx, rsi
cmp rcx, r10
je 0x1400cd4ca
test byte [rcx + 0x1c], 4
je 0x1400cd4ca
cmp byte [rcx + 0x19], 4
jb 0x1400cd4ca
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
lea r8, [0x140151b50]
mov edx, 0x56
call fcn.14000c114
mov rdx, qword [rbx + 0x20]
lea r10, [0x14016a048]
mov al, byte [r15]
mov ecx, 0x10000
neg al
sbb rax, rax
and rax, rcx
mov ecx, 0x200000
add rax, r14
add rax, rdx
cqo
idiv rcx
dec eax
mov dword [rbx + 0xb0], eax
mov rcx, qword [0x14016a048]
mov r15b, 4
cmp rcx, r10
je 0x1400cd525
test byte [rcx + 0x1c], r15b
je 0x1400cd525
cmp byte [rcx + 0x19], r15b
jb 0x1400cd525
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151b50]
mov edx, 0x57
mov r9d, eax
call fcn.14000c114
mov rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rdi
mov r9, rsi
mov qword [rsp + 0x30], rax
mov rcx, rbx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
call fcn.1400ceb24
mov rcx, qword [rsp + 0x60]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
test r14d, r14d
je 0x1400cd5bd
mov rcx, rbx
call fcn.1400cc4f8
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x1400cd5b5
test byte [rcx + 0x1c], r15b
je 0x1400cd5b5
cmp byte [rcx + 0x19], 2
jb 0x1400cd5b5
mov eax, dword [rdi]
lea r8, [0x140151b50]
mov rcx, qword [rcx + 0x10]
mov edx, 0x58
mov r9d, r14d
mov dword [rsp + 0x20], eax
call fcn.140040538
mov eax, r14d
jmp 0x1400cce10
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x58]
mov qword [rbx + 0x88], rax
mov dword [rbx + 0x90], ecx
test r12, r12
je 0x1400cd5e7
test r13, r13
je 0x1400cd5e7
mov qword [r12], rax
mov dword [r13], ecx
jmp 0x1400cd622
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x1400cd61b
test byte [rcx + 0x1c], r15b
je 0x1400cd61b
cmp byte [rcx + 0x19], r15b
jb 0x1400cd61b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151b50]
mov edx, 0x59
call fcn.14000c0e8
mov byte [rbx + 0x94], 1
mov rax, qword [rbx + 0x20]
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x78]
movups xmm0, xmmword [rbp - 0x60]
mov qword [rcx], rax
mov rax, qword [rbx]
mov qword [rdx], rax
mov al, byte [rbx + 0x48]
mov rdx, qword [rbp - 0x70]
mov byte [rdx], al
mov rax, qword [rbp - 0x68]
mov qword [rcx], rsi
movdqu xmmword [rax], xmm0
xor eax, eax
jmp 0x1400cce10
cmp r10, r9
je 0x1400cd69a
test byte [r10 + 0x1c], r8b
je 0x1400cd69a
cmp byte [r10 + 0x19], 2
jb 0x1400cd69a
mov rcx, qword [r14]
lea r8, [0x140151b50]
mov eax, dword [r14]
mov r9, rsi
sar rcx, 0x20
mov edx, 0x52
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov rcx, qword [r10 + 0x10]
sar r9, 0x20
mov dword [rsp + 0x20], esi
call fcn.140094560
mov esi, 2
jmp 0x1400cd6b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rdi], eax
mov esi, 3
mov rcx, rbx
call fcn.1400cc4f8
mov eax, esi
jmp 0x1400cce10
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rbx
mov dword [rdi], eax
call fcn.1400cc4f8
mov eax, 3
jmp 0x1400cce10