Function at 0x180084ac0
Capabilities:
Delete file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x370], rbx
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x60], r14d
movsxd rax, dword [rdx]
test eax, eax
js 0x18008508f
cmp eax, dword [rcx + 0xa8]
jg 0x18008508f
imul rdi, rax, 0xa8
add rdi, rcx
cmp byte [rdi + 0x11c], r14b
je 0x1800850a1
cmp byte [rdi + 0x115], r14b
je 0x1800850a1
mov eax, dword [rdi + 0x110]
cmp dword [rdx + 0xc], eax
jl 0x1800850a1
mov rax, qword [rdx + 0x10]
mov rcx, qword [rdi + 0x130]
cmp rax, rcx
jl 0x180084b74
sub rax, rcx
cmp rax, 0x15180
jge 0x180084b74
mov cl, 1
jmp 0x180084b76
xor cl, cl
mov eax, dword [rdi + 0x118]
shl eax, 0x14
test cl, cl
je 0x180084b93
cmp dword [rdi + 0x13c], eax
jbe 0x180084bb3
inc dword [rdi + 0x138]
jmp 0x180084b9a
mov dword [rdi + 0x138], r14d
mov rcx, qword [rdi + 0x140]
test rcx, rcx
je 0x180084bb3
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x140], r14
cmp qword [rdi + 0x140], r14
jne 0x18008508b
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x128], rax
mov dword [rdi + 0x13c], r14d
mov qword [rsp + 0x68], rax
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], eax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rbp - 0x30]
movups xmmword [rbp - 0x58], xmm1
mov eax, dword [rbp - 0x20]
mov dword [rbp - 0x48], eax
mov qword [rbp - 0x64], r14
mov dword [rbp - 0x68], r14d
lea rcx, [rbp - 0x68]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__mktime64]
mov qword [rdi + 0x130], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
movdqa xmm1, xmmword [0x1800e68b0]
movdqu xmmword [rbp - 8], xmm1
mov byte [rbp - 0x18], r14b
movdqu xmmword [rbp - 0x78], xmm0
movdqu xmmword [rbp - 0x78], xmm1
mov byte [rsp + 0x78], 0
lea r8, [rdi + 0xd0]
lea rax, [rbp - 0x18]
cmp rax, r8
je 0x180084c7c
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x180084c6f
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp - 0x18]
call fcn.18000b600
lea r8, [rdi + 0xf0]
lea rax, [rsp + 0x78]
cmp rax, r8
je 0x180084ca8
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x180084c9a
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rsp + 0x78]
call fcn.18000b600
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
mov r13d, dword [rbp - 0x2c]
mov r12d, dword [rbp - 0x30]
cmp byte [rdi + 0x116], 0
je 0x180084d09
lea r9d, [r12 + 1]
lea r8d, [r13 + 0x76c]
lea rdx, str._04d__02d_
lea rcx, [rbp + 0x10]
call fcn.180028fc0
lea rax, [rbp + 0x10]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180084cf1
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x78]
call fcn.18002d9c0
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.1800053c0
mov r14, rax
mov qword [rsp + 0x68], rax
mov rcx, rax
cmp qword [rax + 0x18], 0x10
jb 0x180084d2c
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov ebx, eax
mov rcx, r14
call fcn.180005490
test ebx, ebx
jne 0x180084d60
lea rax, [rbp - 0x68]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.1800053c0
nop
mov rcx, rax
call fcn.180081b70
lea r10, [rsi + 0x38]
cmp qword [r10 + 0x18], 0x10
jb 0x180084d6e
mov r10, qword [r10]
lea r9, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae r9, qword [rbp - 0x18]
lea r8, [rsi + 0x58]
cmp qword [r8 + 0x18], 0x10
jb 0x180084d8a
mov r8, qword [r8]
lea ecx, [r12 + 1]
lea edx, [r13 + 0x76c]
mov eax, dword [rdi + 0x138]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x48], r10
mov eax, dword [rbp - 0x3c]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp - 0x38]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp - 0x34]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea rdx, str._s__s__04d_02d_02d_02d_02d__s__03u.log
lea rcx, [rbp + 0x10]
call fcn.180028fc0
lea rax, [rbp + 0x10]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180084de0
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x78]
call fcn.18002d9c0
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rdx, qword [rsp + 0x78]
lea r8, [0x1800e3904]
lea rcx, [rdi + 0x140]
call fcn.180080460
cmp qword [rdi + 0x140], 0
je 0x18008500d
test eax, eax
js 0x18008500d
mov dword [rdi + 0x13c], eax
cmp qword [rdi + 0x120], 0
jle 0x180085009
cmp qword [rdi + 0x150], 8
jb 0x180084f34
mov rbx, qword [rdi + 0x148]
mov rbx, qword [rbx]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
sub rax, qword [rdi + 0x120]
cmp qword [rbx + 0x10], rax
jge 0x180084f34
mov rax, qword [rdi + 0x148]
mov rdx, qword [rax]
add rdx, 0x18
cmp qword [rdx + 0x18], 0x10
jb 0x180084e8e
mov rdx, qword [rdx]
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], al
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], al
jne 0x180084eb0
lea rcx, [rbp - 0x68]
call fcn.18000b600
nop
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
nop
lea rcx, [rbp - 0x68]
call fcn.180005490
mov rax, qword [rdi + 0x148]
mov rbx, qword [rax]
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [rdi + 0x150]
lea rax, [rbx + 0x10]
mov qword [rsp + 0x68], rax
lea rcx, [rbx + 0x18]
call fcn.180005490
mov edx, 0x38
mov rcx, rbx
call fcn.1800bd2d0
cmp qword [rdi + 0x150], 0
jne 0x180084e53
cmp qword [rdi + 0x150], 0
je 0x180084f7f
mov rax, qword [rdi + 0x148]
mov rax, qword [rax + 8]
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rdx, qword [rsp + 0x78]
lea rcx, [rax + 0x18]
cmp qword [rax + 0x30], 0x10
jb 0x180084f68
mov rcx, qword [rax + 0x18]
mov r8, qword [rax + 0x28]
cmp r8, qword [rbp - 0x78]
jne 0x180084f7f
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180085009
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
nop
mov qword [rbp - 0x40], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x38]
call fcn.1800053c0
nop
mov ebx, 1
mov dword [rsp + 0x60], ebx
mov rsi, qword [rdi + 0x148]
mov r14, qword [rsi + 8]
lea r9, [rbp - 0x40]
mov r8, r14
mov rdx, rsi
call fcn.180086910
mov rdx, rax
mov rax, qword [rdi + 0x150]
movabs rcx, 0x492492492492491
sub rcx, rax
cmp rcx, rbx
jae 0x180084fe8
lea rcx, str.list_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
inc rax
mov qword [rdi + 0x150], rax
mov qword [rsi + 8], rdx
mov qword [r14], rdx
and ebx, 0xfffffffe
mov dword [rsp + 0x60], ebx
lea rcx, [rbp - 0x38]
call fcn.180005490
mov bl, 1
jmp 0x180085072
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae r8, qword [rsp + 0x78]
lea rdx, str.log4z:_can_not_open_log_file__s.__r_n
lea rcx, [rbp + 0x10]
call fcn.180028fc0
mov r8d, 6
lea rdx, str.____________________________r_n
mov rcx, rsi
call fcn.180082ff0
mov r8d, 6
lea rdx, [rbp + 0x10]
mov rcx, rsi
call fcn.180082ff0
mov r8d, 6
lea rdx, str.____________________________r_n
mov rcx, rsi
call fcn.180082ff0
mov byte [rdi + 0x115], 0
xor bl, bl
lea rcx, [rsp + 0x78]
call fcn.180005490
nop
lea rcx, [rbp - 0x18]
call fcn.180005490
movzx eax, bl
jmp 0x1800850a3
mov al, 1
jmp 0x1800850a3
mov r8d, 6
lea rdx, str.log4z:_openLogger_can_not_open__invalide_logger_id___r_n
call fcn.180082ff0
xor al, al
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1800bd270
mov rbx, qword [rsp + 0x370]
add rsp, 0x320
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret