Function at 0x18018b2c0
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 [0x18032a080]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rbx, rdx
mov r14, rcx
xor esi, esi
mov dword [rsp + 0x60], esi
movsxd rax, dword [rdx]
test eax, eax
js 0x18018b9e1
cmp eax, dword [rcx + 0xa8]
jg 0x18018b9e1
imul rdi, rax, 0xa8
add rdi, rcx
cmp byte [rdi + 0x11c], sil
je 0x18018b9f3
cmp byte [rdi + 0x115], sil
je 0x18018b9f3
mov eax, dword [rdi + 0x110]
cmp dword [rdx + 0xc], eax
jl 0x18018b9f3
mov rax, qword [rdx + 0x10]
mov rcx, qword [rdi + 0x130]
cmp rax, rcx
jl 0x18018b372
sub rax, rcx
cmp rax, 0x15180
jge 0x18018b372
mov cl, 1
jmp 0x18018b374
xor cl, cl
mov eax, dword [rdi + 0x118]
shl eax, 0x14
test cl, cl
je 0x18018b391
cmp dword [rdi + 0x13c], eax
jbe 0x18018b3b0
inc dword [rdi + 0x138]
jmp 0x18018b397
mov dword [rdi + 0x138], esi
mov rcx, qword [rdi + 0x140]
test rcx, rcx
je 0x18018b3b0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x140], rsi
cmp qword [rdi + 0x140], rsi
jne 0x18018b9dd
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x128], rax
mov dword [rdi + 0x13c], esi
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], rsi
mov dword [rbp - 0x68], esi
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 [0x180291a30]
movdqu xmmword [rbp - 8], xmm1
mov byte [rbp - 0x18], sil
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 0x18018b477
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x18018b46a
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp - 0x18]
call fcn.180007300
lea r8, [rdi + 0xf0]
lea rax, [rsp + 0x78]
cmp rax, r8
je 0x18018b4a3
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x18018b495
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rsp + 0x78]
call fcn.180007300
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 0x18018b551
lea r9d, [r12 + 1]
lea r8d, [r13 + 0x76c]
lea rdx, str._04d__02d_
lea rcx, [rbp + 0x10]
call fcn.1800d8e30
lea rax, [rbp + 0x10]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x18018b4f0
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x70]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x18018b53b
lea rax, [rsi + rcx]
mov qword [rbp - 0x78], rax
lea rbx, [rsp + 0x78]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x78]
add rbx, rcx
mov r8, rsi
lea rdx, [rbp + 0x10]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
jmp 0x18018b551
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x10]
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.18011fd00
lea rax, [rbp - 0x68]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.18001bd40
nop
mov rcx, rax
call fcn.180187840
test al, al
jne 0x18018b595
lea rax, [rbp - 0x68]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.18001bd40
nop
mov rcx, rax
call fcn.1801878b0
lea r10, [r14 + 0x38]
cmp qword [r10 + 0x18], 0x10
jb 0x18018b5a3
mov r10, qword [r10]
lea r9, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae r9, qword [rbp - 0x18]
lea r8, [r14 + 0x58]
cmp qword [r8 + 0x18], 0x10
jb 0x18018b5bf
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.1800d8e30
lea rax, [rbp + 0x10]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x18018b612
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x70]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x18018b65d
lea rax, [rcx + rsi]
mov qword [rbp - 0x78], rax
lea rbx, [rsp + 0x78]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x78]
add rbx, rcx
mov r8, rsi
lea rdx, [rbp + 0x10]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
jmp 0x18018b673
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x10]
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.18011fd00
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rdx, qword [rsp + 0x78]
lea r8, [0x18028ccd0]
lea rcx, [rdi + 0x140]
call fcn.180185f00
cmp qword [rdi + 0x140], 0
je 0x18018b8d3
test eax, eax
js 0x18018b8d3
mov dword [rdi + 0x13c], eax
cmp qword [rdi + 0x120], 0
jle 0x18018b8cf
cmp qword [rdi + 0x150], 8
jb 0x18018b7fa
nop
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 0x18018b7fa
mov rax, qword [rdi + 0x148]
mov rdx, qword [rax]
add rdx, 0x18
cmp qword [rdx + 0x18], 0x10
jb 0x18018b70b
mov rdx, qword [rdx]
xor ebx, ebx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], InitCommonControls
mov byte [rbp - 0x68], bl
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], bl
jne 0x18018b730
lea rcx, [rbp - 0x68]
call fcn.180007300
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
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x18018b78f
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18018b78a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18018b7f3
call fcn.18022acec
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], InitCommonControls
mov byte [rbp - 0x68], 0
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.1800072a0
mov edx, gethostname
mov rcx, rbx
call fcn.18022acec
cmp qword [rdi + 0x150], 0
je 0x18018b845
jmp 0x18018b6d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp qword [rdi + 0x150], 0
je 0x18018b845
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 0x18018b82e
mov rcx, qword [rax + 0x18]
mov r8, qword [rax + 0x28]
cmp r8, qword [rbp - 0x78]
jne 0x18018b845
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18018b8cf
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.18001bd40
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.18018c8f0
mov rdx, rax
mov rax, qword [rdi + 0x150]
movabs rcx, 0x492492492492491
sub rcx, rax
cmp rcx, rbx
jae 0x18018b8ae
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.1800072a0
mov bl, 1
jmp 0x18018b938
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.1800d8e30
mov r8d, 6
lea rdx, str.____________________________r_n
mov rcx, r14
call fcn.1801890e0
mov r8d, 6
lea rdx, [rbp + 0x10]
mov rcx, r14
call fcn.1801890e0
mov r8d, 6
lea rdx, str.____________________________r_n
mov rcx, r14
call fcn.1801890e0
mov byte [rdi + 0x115], 0
xor bl, bl
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x18018b977
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18018b972
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18018b972
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a30]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x18018b9c7
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18018b9c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18018b9c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a30]
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
movzx eax, bl
jmp 0x18018b9f5
mov al, 1
jmp 0x18018b9f5
mov r8d, 6
lea rdx, str.log4z:_openLogger_can_not_open__invalide_logger_id___r_n
call fcn.1801890e0
xor al, al
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.18022a7d0
mov rbx, qword [rsp + 0x370]
add rsp, 0x320
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret