Function at 0x140223f50
Capabilities:
Delete file
Move file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x870
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov rsi, rcx
xor r12d, r12d
add rcx, 0x430
mov edi, r12d
mov r15d, r9d
mov r14, r8
mov ebp, edx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rsi + 8], r12d
je 0x140224180
mov eax, dword [rsi + 0x18]
and eax, ebp
movzx eax, ax
test eax, eax
je 0x140224185
cmp dword [rsi + 0x1c], r12d
jle 0x140224000
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
cmp eax, dword [rsi + 0x1c]
jl 0x140224000
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rsi + 0x228]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
lea rcx, [rsi + 0x20]
lea rdx, [rsi + 0x228]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
mov rcx, rsi
call sym.ErrorReportClient.exe_private:_long_int___cdecl_CLog::OpenFile_void____ptr64
mov edi, eax
test eax, eax
jns 0x140224000
mov dword [rsi + 8], r12d
jmp 0x140224185
movzx ecx, bp
sub ecx, 1
je 0x140224040
sub ecx, 1
je 0x140224037
sub ecx, 2
je 0x14022402e
sub ecx, 4
je 0x140224025
cmp ecx, 8
je 0x140224064
lea r8, [0x140454be0]
jmp 0x140224047
lea r8, str.DBG
jmp 0x140224047
lea r8, str.INFO
jmp 0x140224047
lea r8, str.WARN
jmp 0x140224047
lea r8, str.ERR
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.1402243f0
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0x60]
call fcn.1402243a0
mov eax, dword [rsi + 0x18]
bt eax, 0x10
jae 0x1402240e4
xor eax, eax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x5a]
mov edx, 0x400
movzx r8d, word [rsp + 0x58]
movzx eax, word [rsp + 0x5c]
movzx r10d, word [rsp + 0x56]
movzx r11d, word [rsp + 0x52]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x30], r8d
lea r8, str.__02d__02d__02d__02d:_02d:_02d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call fcn.1402243f0
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0x60]
call fcn.1402243a0
mov eax, dword [rsi + 0x18]
bt eax, 0x11
jae 0x140224117
mov rcx, r14
call sym.ErrorReportClient.exe_SfGetFileNamePtrW
mov r8, rax
lea rdx, str._15s__4d_:
mov r9d, r15d
lea rcx, [rsp + 0x60]
call fcn.1401ad470
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0x60]
call fcn.1402243a0
lea rbp, [rsp + 0x8d8]
call fcn.14018be20
mov rcx, qword [rsp + 0x8d0]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov r9, 0xffffffffffffffff
mov qword [rsp + 0x28], r12
mov r8d, 0x3ff
mov qword [rsp + 0x20], rcx
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnwprintf_s]
mov rcx, qword [rsi + 0x10]
lea r8, [rsp + 0x60]
lea rdx, [0x140454c48]
mov word [rsp + 0x85e], r12w
call fcn.1402243a0
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
jmp 0x140224185
mov edi, 0x8004e01b
lea rcx, [rsi + 0x430]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x870
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret