Function at 0x1400185d0
Capabilities:
Delete file
Move file

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0xe0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x140172b58]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r12, r8
mov rbp, rcx
cmp word [rcx + 0x18], 0
jne 0x140018618
xor edx, edx
call fcn.140018030
lea rax, vtable.CLogMutex.0
mov qword [rsp + 0x70], rax
mov rsi, qword [rbp + 8]
mov qword [rsp + 0x78], rsi
test rsi, rsi
je 0x140018641
mov edx, 0x1388
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
lea rax, vtable.CAhnI2s_File.0
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0xffffffff
mov r8d, 1
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x50]
call fcn.14001bc20
test eax, eax
jne 0x14001868f
lea rcx, [rsp + 0x50]
call fcn.14001bde0
nop
test rsi, rsi
je 0x140018910
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x140018910
lea rcx, [rsp + 0x50]
call fcn.14001bcd0
test eax, eax
jns 0x1400186bf
lea rcx, [rsp + 0x50]
call fcn.14001bde0
nop
test rsi, rsi
je 0x140018910
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x140018910
cmp eax, dword [rbp + 0x438]
jl 0x140018765
lea rcx, [rsp + 0x50]
call fcn.14001bca0
lea rcx, [rbp + 0x220]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x220]
lea rcx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov r8d, 1
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x50]
call fcn.14001bc20
test eax, eax
jne 0x14001872d
lea rcx, [rsp + 0x50]
call fcn.14001bde0
nop
test rsi, rsi
je 0x140018910
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x140018910
lea rcx, [rsp + 0x50]
call fcn.14001bcd0
test eax, eax
js 0x140018743
cmp eax, dword [rbp + 0x438]
jl 0x140018765
lea rcx, [rsp + 0x50]
call fcn.14001bde0
nop
test rsi, rsi
je 0x140018910
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x140018910
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rsp + 0x50]
call fcn.14001bda0
test eax, eax
jns 0x14001879b
lea rcx, [rsp + 0x50]
call fcn.14001bde0
nop
test rsi, rsi
je 0x140018910
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x140018910
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx r11d, word [rsp + 0x6e]
movzx ecx, word [rsp + 0x6c]
movzx r8d, word [rsp + 0x6a]
movzx r10d, word [rsp + 0x68]
movzx r9d, word [rsp + 0x66]
movzx ebx, word [rsp + 0x62]
movzx edi, word [rsp + 0x60]
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub edi, eax
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r9d
mov dword [rsp + 0x20], ebx
mov r9d, edi
lea r8, str._d_x_02d._02d_02d_02d_03d.
mov edx, 0x40
lea rcx, [rsp + 0x90]
call fcn.140016770
mov edx, 0x40
lea rcx, [rsp + 0x90]
call fcn.140018f20
mov r8, rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.14001bd70
mov r8d, dword [0x140178a90]
lea rdx, [0x140178a80]
lea rcx, [rsp + 0x50]
call fcn.14001bd70
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
lea r8, str._x:
mov edx, 0x40
lea rcx, [rsp + 0x90]
call fcn.140016770
mov edx, 0x40
lea rcx, [rsp + 0x90]
call fcn.140018f20
mov r8, rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.14001bd70
mov edx, 0x7fffffff
mov rcx, r12
call fcn.140018f20
mov r8, rax
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.14001bd70
mov r8d, 2
lea rdx, [0x140107f4c]
lea rcx, [rsp + 0x50]
call fcn.14001bd70
lea rcx, [rsp + 0x50]
call fcn.14001bdb0
test byte [rbp + 0x434], 1
je 0x1400188f7
lea rcx, [rsp + 0x50]
call fcn.14001bdd0
nop
lea rcx, [rsp + 0x50]
call fcn.14001bde0
nop
test rsi, rsi
je 0x140018910
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140103060
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret