Function at 0x180217ec0
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
mov eax, dword [rcx + 0x6c]
dec eax
lea rdx, [rax + rax*8]
mov rax, qword [rcx + 0x5f8]
mov rcx, qword [rax]
mov ebx, dword [rcx + rdx*8 + 0x40]
xor r15d, r15d
cmp ebx, 2
jne 0x180217ff8
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r15w
mov r8d, dword [rdi + 0x600]
lea rdx, [0x1803d2358]
lea rcx, [rbp - 0x38]
call fcn.180154b60
mov rcx, qword [rdi + 0x650]
cmp dword [rdi + 0x600], 0x4e
jne 0x180217f7b
lea rdx, [0x1803d22f0]
call qword [sym.imp.USER32.dll_SetWindowTextW]
xor r9d, r9d
xor r8d, r8d
mov edx, pe_nt_image_headers64
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x180217f88
lea rdx, [0x1803bf568]
call qword [sym.imp.USER32.dll_SetWindowTextW]
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
mov rcx, qword [rdi + 0x640]
call qword [sym.imp.USER32.dll_SetWindowTextW]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x180217fe7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180217fe2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180217fe2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r15w
mov qword [rbp - 0x38], r15
mov rcx, qword [rdi + 0x580]
test rcx, rcx
je 0x180218015
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rdi + 0x580], r15
mov eax, dword [rbp - 0x30]
mov dword [rdi + 0x588], eax
mov eax, dword [rbp - 0x2c]
mov dword [rdi + 0x58c], eax
cmp ebx, 2
je 0x180218104
cmp ebx, dword [rdi + 0x5e8]
jne 0x180218104
mov esi, r15d
mov ecx, 8
call fcn.180386914
mov qword [rbp - 0x18], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rbp - 0x38], rax
lea rdx, [rdi + 0x558]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9d, 1
mov r8d, 0x80000000
lea rcx, [rbp - 0x38]
call fcn.180173fa0
test al, al
jne 0x18021808e
mov rbx, qword [rbp - 0x38]
jmp 0x1802180cc
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x1802180c8
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1802180c8
lea rdx, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x1802180bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1802180c8
mov esi, dword [rbp - 0x18]
shl rsi, 0x20
add rsi, r14
jmp 0x1802180cc
mov rsi, qword [rbp - 0x38]
test rbx, rbx
je 0x1802180f8
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1802180e7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r15
mov edx, 8
mov rcx, rbx
call fcn.180386950
mov qword [rbp - 0x38], r15
mov edx, esi
mov rcx, rdi
call fcn.180218ff0
jmp 0x18021810c
mov rcx, rdi
call fcn.180218bf0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1803868f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret