Function at 0x180017680
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xa8]
sub rsp, 0x190
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1801610c0]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r14, rcx
xor r15d, r15d
mov dword [rsp + 0x48], r15d
xor eax, eax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180017a53
mov eax, dword [r14 + 0x34]
cmp qword [rsp + 0x40], rax
jle 0x180017a27
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r14 + 8], 0xffffffffffffffff
mov eax, dword [r14 + 0x38]
not eax
and eax, 1
shl eax, 0x1f
add eax, 0x8000080
lea rdi, [r14 + 0x10]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x180017728
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 4
xor r9d, r9d
lea edx, [r9 + 4]
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r14 + 8], rax
cmp rax, 0xffffffffffffffff
je 0x180017a81
lea rcx, [r14 + 8]
call fcn.180016ac0
mov ecx, dword [r14 + 0x34]
cmp rax, rcx
jle 0x180017a27
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r14 + 8], 0xffffffffffffffff
mov rdx, rdi
lea rcx, [rbp]
call fcn.180037890
nop
lea rdx, [r14 + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1800164c0
nop
mov r8, rax
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.180016de0
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rcx, [rbp - 0x80]
call fcn.1800389f0
nop
lea rcx, [rsp + 0x60]
call fcn.1800389f0
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.18008fa40
mov ebx, dword [r14 + 0x30]
dec ebx
mov dword [rsp + 0x40], ebx
cmp ebx, 1
jb 0x18001791e
nop word [rax + rax]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x40]
call fcn.1800164c0
nop
mov r8, rax
mov rdx, rdi
lea rcx, [rbp + 0x20]
call fcn.180016de0
nop
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rcx, [rbp + 0x20]
call fcn.1800389f0
nop
lea rcx, [rbp + 0x40]
call fcn.1800389f0
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call fcn.180090060
cmp dword [rax], 1
seta al
test al, al
je 0x180017905
lea eax, [rbx + 1]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.1800164c0
nop
mov r8, rax
mov rdx, rdi
lea rcx, [rbp + 0x60]
call fcn.180016de0
nop
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rcx, [rbp + 0x60]
call fcn.1800389f0
nop
lea rcx, [rbp - 0x20]
call fcn.1800389f0
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.18008ffb0
nop
lea rcx, [rbp - 0x80]
call fcn.1800389f0
nop
lea rcx, [rsp + 0x60]
call fcn.1800389f0
dec ebx
mov dword [rsp + 0x40], ebx
cmp ebx, 1
jae 0x180017810
mov ebx, 1
mov dword [rsp + 0x40], ebx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x18011d2a0]
movdqu xmmword [rbp - 0x70], xmm1
mov word [rbp - 0x80], r15w
mov dword [rsp + 0x48], ebx
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.1800173d0
test al, al
je 0x180017aaf
lea r8, [rbp - 0x80]
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.180016de0
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rcx, [rbp - 0x20]
call fcn.1800389f0
and ebx, 0xfffffffe
mov dword [rsp + 0x48], ebx
lea rcx, [rbp - 0x80]
call fcn.1800389f0
xor r8d, r8d
lea rdx, [rbp - 0x60]
lea rcx, [rbp]
call fcn.18008ffb0
mov eax, dword [r14 + 0x38]
not eax
and eax, 1
shl eax, 0x1f
add eax, 0x8000080
cmp qword [rdi + 0x18], 8
jb 0x1800179d7
mov rdi, qword [rdi]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 4
xor r9d, r9d
lea edx, [r9 + 4]
lea r8d, [r9 + 7]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r14 + 8], rax
cmp rax, 0xffffffffffffffff
je 0x180017ab5
lea rcx, [rbp - 0x60]
call fcn.1800389f0
nop
lea rcx, [rbp - 0x40]
call fcn.1800389f0
nop
lea rcx, [rbp]
call fcn.1800389f0
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1800916f0
lea r11, [rsp + 0x190]
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
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rax, str.Cant_get_log_file_size._errorcode:
add rdx, rax
lea rcx, [rsp + 0x60]
call fcn.180035d70
lea rdx, [0x18015ddd0]
lea rcx, [rsp + 0x60]
call fcn.1800b2060
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rax, str.Cant_reopen_log_file._errorcode:
add rdx, rax
lea rcx, [rsp + 0x60]
call fcn.180035d70
lea rdx, [0x18015ddd0]
lea rcx, [rsp + 0x60]
call fcn.1800b2060
nop
call fcn.180017650
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rax, str.Cannot_open_log_file._errorcode:
add rdx, rax
lea rcx, [rsp + 0x60]
call fcn.180035d70
lea rdx, [0x18015ddd0]
lea rcx, [rsp + 0x60]
call fcn.1800b2060
int3