Function at 0x140006810
Capabilities:
Get file size

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov qword [rbp - 0x69], 0xfffffffffffffffe
mov qword [rsp + 0x120], rbx
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, rdx
mov r14, rcx
mov ecx, 0x90
call fcn.1400111ec
mov qword [rbp - 0x41], rax
mov rcx, rax
call fcn.140006c30
mov r15, rax
mov qword [rbp - 0x41], rax
lea rcx, [rax + 0x20]
xor r12d, r12d
cmp rcx, rsi
je 0x1400068bd
mov r9, rsi
cmp qword [rsi + 0x18], 8
jb 0x140006882
mov r9, qword [rsi]
mov rdx, qword [rsi + 0x10]
mov rax, qword [rcx + 0x18]
cmp rdx, rax
ja 0x1400068b8
mov rdi, rcx
cmp rax, 8
jb 0x14000689b
mov rdi, qword [rcx]
mov qword [rcx + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call fcn.14002f4b0
mov word [rdi + rbx], r12w
jmp 0x1400068bd
call fcn.140005e90
lea rdi, [rsi + 0x20]
lea rcx, [r15 + 0x40]
cmp rcx, rdi
je 0x140006917
mov r9, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400068d7
mov r9, qword [rdi]
mov rdx, qword [rdi + 0x10]
mov rax, qword [rcx + 0x18]
cmp rdx, rax
ja 0x140006912
mov r12, rcx
cmp rax, 8
jb 0x1400068f0
mov r12, qword [rcx]
mov qword [rcx + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, r12
call fcn.14002f4b0
xor eax, eax
mov word [rbx + r12], ax
xor r12d, r12d
jmp 0x140006917
call fcn.140005e90
mov rax, qword [rsi + 0x40]
mov qword [r15 + 0x18], rax
lea rcx, [r14 + 0x18]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rdx, qword [r14 + 8]
cmp rdx, qword [r14 + 0x10]
je 0x14000693d
mov qword [rdx], r15
add qword [r14 + 8], 8
jmp 0x14000694d
lea r8, [rbp - 0x41]
mov rcx, r14
call fcn.1400096e0
mov r15, qword [rbp - 0x41]
lea rcx, [r14 + 0x18]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rbx, 0xffffffffffffffff
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14000696b
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, rbx
je 0x1400069b0
lea rdx, [rbp - 0x41]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
cmovne rbx, qword [rbp - 0x41]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov r12d, ecx
cmp rbx, 0xffffffffffffffff
cmovne r12, rbx
mov qword [r15 + 0x10], r12
mov eax, dword [r15 + 8]
mov dword [rbp - 0x41], eax
mov qword [rbp - 0x29], rcx
mov eax, 7
mov qword [rbp - 0x21], rax
mov word [rbp - 0x39], cx
mov qword [rbp - 9], rcx
mov qword [rbp - 1], rax
mov word [rbp - 0x19], cx
mov qword [rbp + 7], rcx
mov dword [rbp + 0xf], ecx
lea rcx, [rbp - 0x39]
cmp rcx, rsi
je 0x140006a39
mov r9, rsi
cmp qword [rsi + 0x18], 8
jb 0x140006a02
mov r9, qword [rsi]
mov rdx, qword [rsi + 0x10]
lea rcx, [rbp - 0x39]
cmp rdx, 7
ja 0x140006a30
mov qword [rbp - 0x29], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.14002f4b0
xor esi, esi
mov word [rbp + rbx - 0x39], si
mov rax, qword [rbp - 1]
jmp 0x140006a3b
call fcn.140005e90
mov rax, qword [rbp - 1]
xor esi, esi
lea rcx, [rbp - 0x19]
cmp rcx, rdi
je 0x140006a8c
mov r9, rdi
cmp qword [rdi + 0x18], 8
jb 0x140006a51
mov r9, qword [rdi]
mov rdx, qword [rdi + 0x10]
cmp rdx, rax
ja 0x140006a83
lea rdi, [rbp - 0x19]
cmp rax, 8
cmovae rdi, qword [rbp - 0x19]
mov qword [rbp - 9], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call fcn.14002f4b0
mov word [rdi + rbx], si
jmp 0x140006a8c
lea rcx, [rbp - 0x19]
call fcn.140005e90
mov qword [rbp + 7], r12
mov eax, dword [rbp - 0x41]
mov dword [rbp + 0xf], eax
mov r9, qword [r14 + 0x20]
add r9, 0x28
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x61]
call fcn.1400083b0
nop
mov rdx, rax
mov rcx, qword [r14 + 0x20]
call fcn.14000ca30
nop
mov r8, qword [rbp - 0x61]
test r8, r8
je 0x140006ad1
xor edx, edx
mov rcx, qword [0x1400600f8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [r15 + 0x18]
cmp qword [r15 + 0x10], rax
jne 0x140006b7e
mov eax, dword [r15 + 8]
mov byte [rbp - 0x41], 1
mov dword [rbp - 0x40], eax
mov r9, qword [r14 + 0x20]
add r9, 0x28
lea r8, [rbp - 0x41]
lea rcx, [rbp - 0x61]
call fcn.1400088d0
nop
mov rdx, rax
mov rcx, qword [r14 + 0x20]
call fcn.14000ca30
nop
mov r8, qword [rbp - 0x61]
test r8, r8
je 0x140006b25
xor edx, edx
mov rcx, qword [0x1400600f8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [r14 + 0x18]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rcx, qword [r14]
mov rax, qword [r14 + 8]
cmp rcx, rax
je 0x140006b6b
mov r8d, dword [r15 + 8]
nop
mov rdx, qword [rcx]
cmp dword [rdx + 8], r8d
je 0x140006b52
add rcx, 8
cmp rcx, rax
jne 0x140006b40
cmp rcx, rax
je 0x140006b6b
mov r8, rax
lea rdx, [rcx + 8]
sub r8, rdx
call fcn.14002f4b0
add qword [r14 + 8], 0xfffffffffffffff8
lea rcx, [r14 + 0x18]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, r15
call fcn.140006e30
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140006bba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006bb5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006c1d
call fcn.1400111e4
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140006bf6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006bf1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006c1d
call fcn.1400111e4
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400111c0
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14003393c
int3