Function at 0x14000bee0
Capabilities:
Copy file
Get file size

Disassembly:
jmp 0x14000bee0
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2f0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14009a7a8]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r14, rcx
lea rdi, [rcx + 0x120]
mov qword [rsp + 0x78], rdi
test rdi, rdi
je 0x14000bf40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x80], 1
mov byte [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x41]
call fcn.140002af9
nop
cmp byte [rsp + 0x40], 0
jne 0x14000bf75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CLogger::CheckAndMoveLogFile_:_TI_failed_with_error___d
call fcn.1400022cf
jmp 0x14000c1b5
lea rdx, [rsp + 0x70]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000c1b5
cmp qword [rsp + 0x70], 0x100000
jle 0x14000c1b5
mov rcx, r14
call fcn.140002fdb
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.140002be9
lea r15, [r14 + 0x150]
mov r9d, 0x103
mov r8, r15
lea edx, [r9 + 1]
lea rcx, [rbp - 0x30]
call fcn.140001e83
mov edx, 0x2e
lea rcx, [rbp - 0x30]
call fcn.140001244
test rax, rax
je 0x14000c03e
lea rdx, str..old
mov rcx, rax
call fcn.140002f59
lea rdx, [rbp - 0x30]
mov rcx, r14
call fcn.14000378d
test eax, eax
je 0x14000c03e
mov edx, 0x5c
lea rcx, [rbp - 0x30]
call fcn.140001244
test rax, rax
je 0x14000c03e
xor r8d, r8d
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14000c03e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CLogger::MoveLogFile_:_CopyFile_failed_Error__0x_x_
call fcn.1400022cf
mov rbx, rdi
mov qword [rsp + 0x60], rbx
test rdi, rdi
je 0x14000c05e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov sil, 1
mov byte [rsp + 0x68], sil
jmp 0x14000c063
movzx esi, byte [rsp + 0x68]
mov rdx, r15
mov rcx, r14
call fcn.14000378d
test eax, eax
jne 0x14000c07a
test rdi, rdi
jmp 0x14000c1a4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
lea r13, [rbp - 0x78]
mov r9d, 0x1f01ff
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x78]
mov rcx, r14
call fcn.14000332d
test eax, eax
jns 0x14000c0de
lfence
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, r15
lea rcx, str.CLogger::ReCreate_:_CreateSA_failed___s_._Error__0x_x_
call fcn.1400022cf
xor r13d, r13d
mov rdi, qword [rsp + 0x78]
movzx esi, byte [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov r9, r13
mov edx, 0x60004
mov r8d, 7
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r14 + 8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
test r13, r13
je 0x14000c161
xor eax, eax
mov dword [rsp + 0x4c], eax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], eax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x4c]
mov rcx, qword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x14000c15d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000c15d
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x44]
cmp qword [r14 + 8], 0xffffffffffffffff
jne 0x14000c182
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, r15
lea rcx, str.CLogger::ReCreate_:_Error_opening_log_file___s___Error__0x_x_
call fcn.1400022cf
jmp 0x14000c1a1
mov r9d, eax
lea r8, [r14 + 8]
mov rdx, r15
mov rcx, r14
call fcn.1400037fb
test eax, eax
jne 0x14000c1a1
mov rcx, r14
call fcn.140002fdb
nop
test rbx, rbx
je 0x14000c1b5
test sil, sil
je 0x14000c1b5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x58], rax
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x14000c1e3
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rdi, rdi
je 0x14000c1f7
cmp byte [rbp - 0x80], 0
je 0x14000c1f7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140001d20
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret