Function at 0x1802180d0
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 [0x1804ca010]
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 0x180218208
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, [0x1803d13e0]
lea rcx, [rbp - 0x38]
call fcn.180154c50
mov rcx, qword [rdi + 0x650]
cmp dword [rdi + 0x600], 0x4e
jne 0x18021818b
lea rdx, [0x1803d1378]
call qword [sym.imp.USER32.dll_SetWindowTextW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x138
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x180218198
lea rdx, [0x1803be558]
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 0x1802181f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802181f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802181f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
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 0x180218225
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 0x180218314
cmp ebx, dword [rdi + 0x5e8]
jne 0x180218314
mov esi, r15d
mov ecx, 8
call fcn.180385c34
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.180174090
test al, al
jne 0x18021829e
mov rbx, qword [rbp - 0x38]
jmp 0x1802182dc
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x1802182d8
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1802182d8
lea rdx, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x1802182cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1802182d8
mov esi, dword [rbp - 0x18]
shl rsi, 0x20
add rsi, r14
jmp 0x1802182dc
mov rsi, qword [rbp - 0x38]
test rbx, rbx
je 0x180218308
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1802182f7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r15
mov edx, 8
mov rcx, rbx
call fcn.180385c70
mov qword [rbp - 0x38], r15
mov edx, esi
mov rcx, rdi
call fcn.180219200
jmp 0x18021831c
mov rcx, rdi
call fcn.180218e00
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180385c10
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