Function at 0x1000cee98
Capabilities:
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa48
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0xa30], rax
mov rdi, qword [rsp + 0xab0]
mov rbp, qword [rsp + 0xab8]
mov r12, qword [rsp + 0xac0]
mov rsi, qword [rsp + 0xac8]
xor r15d, r15d
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0xe0], rbp
mov qword [rsp + 0xe8], r12
mov r14, r9
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0xb8], rdx
mov rbx, rcx
mov qword [rsp + 0xa0], rcx
mov dword [rsp + 0x54], r15d
mov qword [rsp + 0xc8], r9
mov byte [rsp + 0xd0], r15b
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x1000cef5d
test byte [rcx + 0x1c], 4
je 0x1000cef5d
cmp byte [rcx + 0x19], 4
jb 0x1000cef5d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x16f
call fcn.10001c7b8
xor eax, eax
lea rcx, [rsp + 0x220]
xor edx, edx
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rbp], r15
mov r8d, 0x100
mov qword [r12], r15
mov dword [rsi], r15d
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x3a0]
xor edx, edx
mov r8d, 0x400
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x320]
xor edx, edx
mov r8d, 0x80
call sub.msvcrt.dll_memset
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000cefe0
test byte [rcx + 0x1c], 4
je 0x1000cefe0
cmp byte [rcx + 0x19], 4
jb 0x1000cefe0
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x170
mov r9, rbx
call fcn.10001da24
mov edi, r15d
lea r12, [rsp + 0x320]
lea r13, [rsp + 0x3b8]
mov rbp, r15
mov ebx, 8
mov edx, 0x20000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + rbp + 0x120], rax
cmp rax, r15
je 0x1000cfde0
xor r9d, r9d
add rax, 0xffff
xor r8d, r8d
and rax, 0xffffffffffff0000
lea edx, [r9 + 1]
xor ecx, ecx
mov qword [rsp + rbp + 0x220], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r13], rax
cmp rax, r15
je 0x1000cfd92
inc edi
mov dword [r12], r15d
add rbp, rbx
add r13, 0x20
add r12, 4
cmp edi, 0x20
jb 0x1000ceffb
lea rcx, [rsp + 0x8a0]
xor edx, edx
mov r8d, 0x180
call sub.msvcrt.dll_memset
cmp r14, 0xffffffffffffffff
je 0x1000cf0d6
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1000cf0ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x120]
mov ebp, 0x20
mov dword [rsi], eax
lea rsi, [rsp + 0x3b8]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsi, 0x20
add rdi, rbx
sub rbp, 1
jne 0x1000cf0a7
lea ebx, [rbp + 0x13]
jmp 0x1000cfe22
mov byte [rsp + 0xd0], 1
mov r14, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rsi
and qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x90]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd8]
lea rcx, [rsp + 0x8a0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x100]
mov rdx, r14
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
call fcn.1000d68dc
mov r13d, eax
test eax, eax
je 0x1000cf5cd
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000cf183
test byte [rcx + 0x1c], 4
je 0x1000cf183
cmp byte [rcx + 0x19], 4
jb 0x1000cf183
mov eax, dword [rsi]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov dword [rsp + 0x28], eax
mov edx, 0x171
mov r9, r14
mov dword [rsp + 0x20], r13d
call fcn.10001dd64
and qword [rsp + 0x30], r15
mov edi, 3
xor r9d, r9d
lea r8d, [rdi - 2]
mov edx, 0x80000000
mov rcx, r14
mov dword [rsp + 0x28], 0x60000080
mov byte [rsp + 0x53], 1
mov byte [rsp + 0x52], 1
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1000cf251
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x120]
lea rbp, [rsp + 0x3b8]
mov dword [rsi], eax
mov r12d, 0x20
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rbp, 0x20
add rdi, rbx
sub r12, 1
jne 0x1000cf1e3
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000cfe22
test byte [rcx + 0x1c], 4
je 0x1000cfe22
cmp byte [rcx + 0x19], 2
jb 0x1000cfe22
mov eax, dword [rsi]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x172
mov r9, r14
mov dword [rsp + 0x20], eax
call fcn.10001daa4
jmp 0x1000cfe22
lea rdx, [rsp + 0x98]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1000cf2b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [rsp + 0x120]
lea rsi, [rsp + 0x3b8]
mov ebp, 0x20
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsi, 0x20
add rdi, rbx
sub rbp, 1
jne 0x1000cf28c
jmp 0x1000cfe22
mov r12, qword [rsp + 0x98]
test r12, r12
jne 0x1000cf302
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [rsp + 0x120]
lea rsi, [rsp + 0x3b8]
lea ebp, [r12 + 0x20]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsi, 0x20
add rdi, rbx
sub rbp, 1
jne 0x1000cf2db
mov edx, 0x20000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
jne 0x1000cf363
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsi, [rsp + 0x120]
lea rbp, [rsp + 0x3b8]
lea r12d, [r14 + 0x20]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rbp, 0x20
add rsi, rbx
sub r12, 1
jne 0x1000cf33c
mov ebx, edi
jmp 0x1000cfe22
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ecx, ecx
mov qword [rsp + 0x88], rax
cmp rax, rcx
jne 0x1000cf3d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsi, [rsp + 0x120]
lea rbp, [rsp + 0x3b8]
mov r12d, 0x20
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rbp, 0x20
add rsi, rbx
sub r12, 1
jne 0x1000cf3af
jmp 0x1000cf35c
mov rdx, qword [rsp + 0x220]
mov eax, 0x10000
mov dword [rsp + 0xc0], ecx
mov edi, eax
cmp r12, rax
mov dword [rsp + 0x3b0], ecx
cmovl edi, r12d
mov dword [rsp + 0x3b4], ecx
lea r9, [rsp + 0x3a0]
mov r8d, edi
mov rcx, rbp
mov dword [rsp + 0x60], edi
call fcn.1000d33d4
lea r8, [rsp + 0x54]
lea rdx, [rsp + 0x3a0]
mov r9d, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1000cf499
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x88]
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [rsp + 0x120]
lea rsi, [rsp + 0x3b8]
mov ebp, 0x20
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsi, 0x20
add rdi, rbx
sub rbp, 1
jne 0x1000cf470
mov ebx, 4
jmp 0x1000cfe22
mov r9d, dword [rsp + 0x54]
cmp r9d, edi
je 0x1000cf53e
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000cf4df
test byte [rcx + 0x1c], 4
je 0x1000cf4df
cmp byte [rcx + 0x19], 2
jb 0x1000cf4df
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x173
mov dword [rsp + 0x20], edi
call fcn.10001e8b4
mov rcx, qword [rsp + 0x88]
mov dword [rsi], 0x45d
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [rsp + 0x120]
lea rsi, [rsp + 0x3b8]
mov ebp, 0x20
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsi, 0x20
add rdi, rbx
sub rbp, 1
jne 0x1000cf51a
jmp 0x1000cf48f
mov rcx, qword [rsp + 0x220]
lea rdx, [0x10000d0e0]
mov r8d, 0x10
call qword [sym.imp.KERNEL32.dll_RtlCompareMemory]
cmp rax, 0x10
je 0x1000cf5b8
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [rsp + 0x120]
lea rsi, [rsp + 0x3b8]
mov ebp, 0x20
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsi, 0x20
add rdi, rbx
sub rbp, 1
jne 0x1000cf594
jmp 0x1000cf2fa
mov dl, byte [rsp + 0x53]
mov qword [rsp + 0x90], 1
mov r8b, dl
jmp 0x1000cf61b
mov rax, qword [rsp + 0x70]
mov dl, byte [rsp + 0x50]
mov rbp, qword [rsp + 0x90]
mov r14, qword [rsp + 0x70]
xor r8b, r8b
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x70]
mov byte [rsp + 0x52], r8b
mov byte [rsp + 0x53], dl
mov qword [rsp + 0x90], rax
test dl, dl
je 0x1000cf612
mov r12, qword [rsp + 0x8b8]
jmp 0x1000cf61b
mov r12d, dword [rsp + 0x60]
shl r12, 0x15
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x1000cf68a
test byte [rcx + 0x1c], 4
je 0x1000cf661
cmp byte [rcx + 0x19], 4
jb 0x1000cf661
mov rcx, qword [rcx + 0x10]
movzx eax, dl
movzx r9d, r8b
lea r8, [0x100003198]
mov edx, 0x174
mov dword [rsp + 0x20], eax
call fcn.10001e8b4
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000cf68a
test byte [rcx + 0x1c], 4
je 0x1000cf68a
cmp byte [rcx + 0x19], 4
jb 0x1000cf68a
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x175
mov r9, r12
call fcn.10001d680
lea rcx, [rsp + 0xc8]
call fcn.1000c2cfc
mov rcx, qword [rsp + 0xa8]
mov r8, r12
xor edx, edx
call qword [rsp + 0xb8]
test al, al
jne 0x1000cf6f3
mov r13d, 1
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000cfc32
test byte [rcx + 0x1c], 4
je 0x1000cfc32
cmp byte [rcx + 0x19], 2
jb 0x1000cfc32
mov edx, 0x176
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov rcx, qword [0x1001653b8]
xor r9b, r9b
mov byte [rsp + 0x51], r9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + rdi*8 + 0x120]
mov ebp, edi
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, r15d
jbe 0x1000cfe22
lea rdi, [rsp + 0x120]
lea rsi, [rsp + 0x3b8]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsi, 0x20
add rdi, rbx
sub rbp, 1
jne 0x1000cfdbf
jmp 0x1000cfe22
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
cmp edi, r15d
jbe 0x1000cfe1d
lea rsi, [rsp + 0x120]
lea rbp, [rsp + 0x3b8]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rbp, 0x20
add rsi, rbx
sub rdi, 1
jne 0x1000cfdfd
mov ebx, 3