Function at 0x140017860
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x248]
sub rsp, 0x320
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14003e050]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rsi, rdx
mov rbx, rcx
xor r12d, r12d
mov dword [rsp + 0x60], r12d
movsxd rax, dword [rdx]
test eax, eax
js 0x140017f81
cmp eax, dword [rcx + 0xa8]
jg 0x140017f81
imul rdi, rax, 0xa8
add rdi, rcx
cmp byte [rdi + 0x11c], r12b
je 0x140017f93
cmp byte [rdi + 0x115], r12b
je 0x140017f93
mov eax, dword [rdi + 0x110]
cmp dword [rdx + 0xc], eax
jl 0x140017f93
mov rax, qword [rdx + 0x10]
mov rcx, qword [rdi + 0x130]
cmp rax, rcx
jl 0x140017912
sub rax, rcx
cmp rax, 0x15180
jge 0x140017912
mov cl, 1
jmp 0x140017914
xor cl, cl
mov eax, dword [rdi + 0x118]
shl eax, 0x14
test cl, cl
je 0x140017931
cmp dword [rdi + 0x13c], eax
jbe 0x140017951
inc dword [rdi + 0x138]
jmp 0x140017938
mov dword [rdi + 0x138], r12d
mov rcx, qword [rdi + 0x140]
test rcx, rcx
je 0x140017951
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x140], r12
cmp qword [rdi + 0x140], r12
jne 0x140017f7d
mov rax, qword [rsi + 0x10]
mov qword [rdi + 0x128], rax
mov dword [rdi + 0x13c], r12d
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], r12
mov dword [rbp - 0x68], r12d
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 [0x140031210]
movdqu xmmword [rbp - 8], xmm1
mov byte [rbp - 0x18], r12b
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 0x140017a1a
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x140017a0d
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp - 0x18]
call fcn.14000aa00
lea r8, [rdi + 0xf0]
lea rax, [rsp + 0x78]
cmp rax, r8
je 0x140017a46
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x140017a38
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rsp + 0x78]
call fcn.14000aa00
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
mov esi, dword [rbp - 0x2c]
mov r14d, dword [rbp - 0x30]
cmp byte [rdi + 0x116], 0
je 0x140017aa8
lea r9d, [r14 + 1]
lea r8d, [rsi + 0x76c]
lea rdx, str._04d__02d_
lea rcx, [rbp + 0x10]
call fcn.1400120c0
lea rax, [rbp + 0x10]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140017a90
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x78]
call fcn.14000ab50
lea rax, [rbp - 0x68]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.140009da0
nop
mov rcx, rax
call fcn.140014080
test al, al
jne 0x140017aec
lea rax, [rbp - 0x68]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.140009da0
nop
mov rcx, rax
call fcn.140014130
lea r10, [rbx + 0x38]
cmp qword [r10 + 0x18], 0x10
jb 0x140017afa
mov r10, qword [r10]
lea r9, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae r9, qword [rbp - 0x18]
lea r8, [rbx + 0x58]
cmp qword [r8 + 0x18], 0x10
jb 0x140017b16
mov r8, qword [r8]
lea ecx, [r14 + 1]
lea edx, [rsi + 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.1400120c0
lea rax, [rbp + 0x10]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140017b70
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x78]
call fcn.14000ab50
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rdx, qword [rsp + 0x78]
lea r8, [0x140030018]
lea rcx, [rdi + 0x140]
call fcn.1400122f0
cmp qword [rdi + 0x140], 0
je 0x140017e73
test eax, eax
js 0x140017e73
mov dword [rdi + 0x13c], eax
cmp qword [rdi + 0x120], 0
jle 0x140017e6f
cmp qword [rdi + 0x150], 8
jb 0x140017d54
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 0x140017d54
mov rax, qword [rdi + 0x148]
mov rdx, qword [rax]
add rdx, 0x18
cmp qword [rdx + 0x18], 0x10
jb 0x140017c1e
mov rdx, qword [rdx]
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], 0
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140017c40
lea rcx, [rbp - 0x68]
call fcn.14000aa00
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 0x140017ca4
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017c9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017d46
call fcn.14002866c
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 0xf
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
mov rdx, qword [rbx + 0x30]
cmp rdx, 0x10
jb 0x140017d1a
mov rcx, qword [rbx + 0x18]
inc rdx
cmp rdx, 0x1000
jb 0x140017d15
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140017d4d
mov rcx, r8
call fcn.14002866c
mov qword [rbx + 0x28], r12
mov qword [rbx + 0x30], 0xf
mov byte [rbx + 0x18], 0
mov edx, 0x38
mov rcx, rbx
call fcn.14002866c
cmp qword [rdi + 0x150], 0
je 0x140017d9f
jmp 0x140017be3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp qword [rdi + 0x150], 0
je 0x140017d9f
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 0x140017d88
mov rcx, qword [rax + 0x18]
mov r8, qword [rax + 0x28]
cmp r8, qword [rbp - 0x78]
jne 0x140017d9f
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140017e6f
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.140009da0
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.140019d80
mov rdx, rax
mov rax, qword [rdi + 0x150]
movabs rcx, 0x492492492492491
sub rcx, rax
cmp rcx, rbx
jae 0x140017e08
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
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x140017e5e
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017e59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017e59
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002866c
movdqa xmm0, xmmword [0x140031210]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
mov bl, 1
jmp 0x140017ed8
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.1400120c0
mov r8d, 6
lea rdx, str.____________________________r_n
mov rcx, rbx
call fcn.140015880
mov r8d, 6
lea rdx, [rbp + 0x10]
mov rcx, rbx
call fcn.140015880
mov r8d, 6
lea rdx, str.____________________________r_n
mov rcx, rbx
call fcn.140015880
mov byte [rdi + 0x115], 0
xor bl, bl
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x140017f17
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017f12
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017f12
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002866c
movdqa xmm0, xmmword [0x140031210]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x140017f67
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017f62
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017f62
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002866c
movdqa xmm0, xmmword [0x140031210]
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
movzx eax, bl
jmp 0x140017f95
mov al, 1
jmp 0x140017f95
mov r8d, 6
lea rdx, str.log4z:_openLogger_can_not_open__invalide_logger_id___r_n
call fcn.140015880
xor al, al
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140028370
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret