Function at 0x100021af4
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r15, r8
mov r13, rcx
call fcn.100019360
mov rbp, rax
xor eax, eax
mov ebx, 1
mov dword [rsp + 0xb0], eax
mov qword [rsp + 0x30], rax
cmp rcx, rax
je 0x100021dbb
cmp rbp, rax
je 0x100021dbb
mov r12, qword [rsp + 0xd0]
cmp r12, rax
je 0x100021dbb
mov rdi, qword [rsp + 0xd8]
cmp rdi, rax
je 0x100021dbb
mov rsi, qword [rsp + 0xe0]
cmp rsi, rax
je 0x100021dbb
mov r14, qword [rsp + 0xe8]
cmp r14, rax
je 0x100021dbb
or byte [rsi + 0xf], 2
cmp dword [r12], eax
je 0x100021ba0
bt dword [rbp + 0x40], 0x12
jb 0x100021ba0
bt dword [rbp + 0x40], 0x11
jb 0x100021ba0
mov dword [r12], eax
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
call fcn.1000199ec
test eax, eax
je 0x100021d9e
mov rax, qword [0x10005c4b0]
cmp r15, rax
jne 0x100021bec
cmp dword [0x10005d5f4], 0
je 0x100021bec
mov rcx, qword [0x10005c4b8]
mov rdx, r14
call qword [0x10005d640]
jmp 0x100021c03
cmp r15, rax
mov rcx, r15
mov rdx, r14
cmove rcx, qword [0x10005c4b8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100021d9e
mov rax, qword [r14]
mov cl, byte [rsi + 0xf]
mov qword [rsi + 0x18], rax
mov rax, qword [r14]
mov dword [rsi + 0x24], ebx
mov qword [rsi + 8], rax
mov byte [rsi + 0xf], cl
movzx eax, word [rbp + 0x1c4]
mov word [rsi + 0x20], ax
movabs rax, 0xffffffffffffff
test qword [rsi + 8], rax
jne 0x100021c44
mov dword [rdi], ebx
jmp 0x100021db7
and dword [rsp + 0x38], 0
xor edx, edx
lea rcx, [rsp + 0x3c]
lea r8d, [rdx + 0x30]
call fcn.100039740
lea rdx, [rsp + 0x38]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
xor r15d, r15d
cmp eax, r15d
je 0x100021cd2
cmp dword [rsp + 0x60], ebx
jbe 0x100021cd2
lea rax, [r13 + 0x88]
mov rcx, r15
cmp rax, r15
je 0x100021cd2
mov rax, qword [rax]
cmp rax, r15
je 0x100021cd2
mov edx, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x64]
cmp rcx, r15
jne 0x100021cb6
cmp dword [rax], r8d
jne 0x100021ca8
cmp dword [rax + 4], edx
jne 0x100021ca8
lea rcx, [rax + 8]
mov rax, qword [rax + 0x20]
cmp rax, r15
jne 0x100021c95
cmp rcx, r15
je 0x100021cd2
mov rax, qword [rcx]
mov qword [rsi + 0x28], rax
mov rax, qword [rcx + 8]
mov qword [rsi + 0x30], rax
mov eax, dword [rcx + 0x10]
mov dword [rsi + 0x38], eax
mov rax, qword [r14]
add qword [r13 + 0x60], rax
cmp dword [rdi], r15d
jne 0x100021db7
cmp dword [r12], r15d
je 0x100021db7
mov rcx, qword [rsp + 0xb8]
xor edx, edx
call fcn.100016f54
mov rdi, rax
cmp rax, r15
je 0x100021da1
lea r9, [rsp + 0xb0]
mov r8, rax
mov edx, 0x947e
mov rcx, r13
mov dword [rsp + 0xb0], ebx
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x20], r15
call fcn.1000185d8
cmp eax, r15d
jne 0x100021d3c
cmp dword [rsp + 0xb0], r15d
jne 0x100021d3c
mov dword [r12], r15d
lea r9, [rsp + 0x30]
mov r8, rdi
mov edx, 0x9480
mov rcx, r13
mov qword [rsp + 0x20], r15
call fcn.1000185d8
cmp eax, r15d
jne 0x100021d88
mov ecx, dword [rsp + 0x30]
cmp ecx, r15d
je 0x100021d88
mov eax, dword [rbp + 0x210]
xor edx, edx
div ecx
mov eax, ecx
sub eax, edx
cmp eax, ecx
jae 0x100021d88
add qword [rbp + 0x210], rax
mov rax, qword [rbp + 0x210]
mov qword [rsi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100021db7
xor r15d, r15d
mov ebx, r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r15d
je 0x100021db7
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x100021dc8
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret