Function at 0x1800849e0
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 [0x180122010]
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 0x180084faf
cmp eax, dword [rcx + 0xa8]
jg 0x180084faf
imul rdi, rax, 0xa8
add rdi, rcx
cmp byte [rdi + 0x11c], r14b
je 0x180084fc1
cmp byte [rdi + 0x115], r14b
je 0x180084fc1
mov eax, dword [rdi + 0x110]
cmp dword [rdx + 0xc], eax
jl 0x180084fc1
mov rax, qword [rdx + 0x10]
mov rcx, qword [rdi + 0x130]
cmp rax, rcx
jl 0x180084a94
sub rax, rcx
cmp rax, 0x15180
jge 0x180084a94
mov cl, 1
jmp 0x180084a96
xor cl, cl
mov eax, dword [rdi + 0x118]
shl eax, 0x14
test cl, cl
je 0x180084ab3
cmp dword [rdi + 0x13c], eax
jbe 0x180084ad3
inc dword [rdi + 0x138]
jmp 0x180084aba
mov dword [rdi + 0x138], r14d
mov rcx, qword [rdi + 0x140]
test rcx, rcx
je 0x180084ad3
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 0x180084fab
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 [0x1800e3640]
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 0x180084b9c
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x180084b8f
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp - 0x18]
call fcn.18000b650
lea r8, [rdi + 0xf0]
lea rax, [rsp + 0x78]
cmp rax, r8
je 0x180084bc8
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x180084bba
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rsp + 0x78]
call fcn.18000b650
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 0x180084c29
lea r9d, [r12 + 1]
lea r8d, [r13 + 0x76c]
lea rdx, str._04d__02d_
lea rcx, [rbp + 0x10]
call fcn.180028ed0
lea rax, [rbp + 0x10]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180084c11
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x78]
call fcn.18002d8d0
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.180005410
mov r14, rax
mov qword [rsp + 0x68], rax
mov rcx, rax
cmp qword [rax + 0x18], 0x10
jb 0x180084c4c
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov ebx, eax
mov rcx, r14
call fcn.1800054e0
test ebx, ebx
jne 0x180084c80
lea rax, [rbp - 0x68]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.180005410
nop
mov rcx, rax
call fcn.180081a90
lea r10, [rsi + 0x38]
cmp qword [r10 + 0x18], 0x10
jb 0x180084c8e
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 0x180084caa
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.180028ed0
lea rax, [rbp + 0x10]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180084d00
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x78]
call fcn.18002d8d0
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rdx, qword [rsp + 0x78]
lea r8, [0x1800e0674]
lea rcx, [rdi + 0x140]
call fcn.180080380
cmp qword [rdi + 0x140], 0
je 0x180084f2d
test eax, eax
js 0x180084f2d
mov dword [rdi + 0x13c], eax
cmp qword [rdi + 0x120], 0
jle 0x180084f29
cmp qword [rdi + 0x150], 8
jb 0x180084e54
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 0x180084e54
mov rax, qword [rdi + 0x148]
mov rdx, qword [rax]
add rdx, 0x18
cmp qword [rdx + 0x18], 0x10
jb 0x180084dae
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 0x180084dd0
lea rcx, [rbp - 0x68]
call fcn.18000b650
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.1800054e0
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.1800054e0
mov edx, 0x38
mov rcx, rbx
call fcn.1800baa40
cmp qword [rdi + 0x150], 0
jne 0x180084d73
cmp qword [rdi + 0x150], 0
je 0x180084e9f
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 0x180084e88
mov rcx, qword [rax + 0x18]
mov r8, qword [rax + 0x28]
cmp r8, qword [rbp - 0x78]
jne 0x180084e9f
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180084f29
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.180005410
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.180086830
mov rdx, rax
mov rax, qword [rdi + 0x150]
movabs rcx, 0x492492492492491
sub rcx, rax
cmp rcx, rbx
jae 0x180084f08
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.1800054e0
mov bl, 1
jmp 0x180084f92
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.180028ed0
mov r8d, 6
lea rdx, str.____________________________r_n
mov rcx, rsi
call fcn.180082f10
mov r8d, 6
lea rdx, [rbp + 0x10]
mov rcx, rsi
call fcn.180082f10
mov r8d, 6
lea rdx, str.____________________________r_n
mov rcx, rsi
call fcn.180082f10
mov byte [rdi + 0x115], 0
xor bl, bl
lea rcx, [rsp + 0x78]
call fcn.1800054e0
nop
lea rcx, [rbp - 0x18]
call fcn.1800054e0
movzx eax, bl
jmp 0x180084fc3
mov al, 1
jmp 0x180084fc3
mov r8d, 6
lea rdx, str.log4z:_openLogger_can_not_open__invalide_logger_id___r_n
call fcn.180082f10
xor al, al
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1800ba9e0
mov rbx, qword [rsp + 0x370]
add rsp, 0x320
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret