Function at 0x1800c45e0
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 [0x1802240e0]
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 0x1800c4d01
cmp eax, dword [rcx + 0xa8]
jg 0x1800c4d01
imul rdi, rax, 0xa8
add rdi, rcx
cmp byte [rdi + 0x11c], sil
je 0x1800c4d13
cmp byte [rdi + 0x115], sil
je 0x1800c4d13
mov eax, dword [rdi + 0x110]
cmp dword [rdx + 0xc], eax
jl 0x1800c4d13
mov rax, qword [rdx + 0x10]
mov rcx, qword [rdi + 0x130]
cmp rax, rcx
jl 0x1800c4692
sub rax, rcx
cmp rax, 0x15180
jge 0x1800c4692
mov cl, 1
jmp 0x1800c4694
xor cl, cl
mov eax, dword [rdi + 0x118]
shl eax, 0x14
test cl, cl
je 0x1800c46b1
cmp dword [rdi + 0x13c], eax
jbe 0x1800c46d0
inc dword [rdi + 0x138]
jmp 0x1800c46b7
mov dword [rdi + 0x138], esi
mov rcx, qword [rdi + 0x140]
test rcx, rcx
je 0x1800c46d0
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 0x1800c4cfd
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 [0x1801c14f0]
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 0x1800c4797
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x1800c478a
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp - 0x18]
call fcn.180007140
lea r8, [rdi + 0xf0]
lea rax, [rsp + 0x78]
cmp rax, r8
je 0x1800c47c3
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x1800c47b5
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rsp + 0x78]
call fcn.180007140
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 0x1800c4871
lea r9d, [r12 + 1]
lea r8d, [r13 + 0x76c]
lea rdx, str._04d__02d_
lea rcx, [rbp + 0x10]
call fcn.180061470
lea rax, [rbp + 0x10]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x1800c4810
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x70]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x1800c485b
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 0x1800c4871
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x10]
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.1800669d0
lea rax, [rbp - 0x68]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.180051fd0
nop
mov rcx, rax
call fcn.1800c0b90
test al, al
jne 0x1800c48b5
lea rax, [rbp - 0x68]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.180051fd0
nop
mov rcx, rax
call fcn.1800c0c00
lea r10, [r14 + 0x38]
cmp qword [r10 + 0x18], 0x10
jb 0x1800c48c3
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 0x1800c48df
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.180061470
lea rax, [rbp + 0x10]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x1800c4932
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x70]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x1800c497d
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 0x1800c4993
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x10]
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.1800669d0
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rdx, qword [rsp + 0x78]
lea r8, [0x1801bccbc]
lea rcx, [rdi + 0x140]
call fcn.1800bf250
cmp qword [rdi + 0x140], 0
je 0x1800c4bf3
test eax, eax
js 0x1800c4bf3
mov dword [rdi + 0x13c], eax
cmp qword [rdi + 0x120], 0
jle 0x1800c4bef
cmp qword [rdi + 0x150], 8
jb 0x1800c4b1a
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 0x1800c4b1a
mov rax, qword [rdi + 0x148]
mov rdx, qword [rax]
add rdx, 0x18
cmp qword [rdx + 0x18], 0x10
jb 0x1800c4a2b
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 0x1800c4a50
lea rcx, [rbp - 0x68]
call fcn.180007140
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 0x1800c4aaf
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c4aaa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800c4b13
call fcn.18017df04
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.1800070e0
mov edx, gethostname
mov rcx, rbx
call fcn.18017df04
cmp qword [rdi + 0x150], 0
je 0x1800c4b65
jmp 0x1800c49f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp qword [rdi + 0x150], 0
je 0x1800c4b65
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 0x1800c4b4e
mov rcx, qword [rax + 0x18]
mov r8, qword [rax + 0x28]
cmp r8, qword [rbp - 0x78]
jne 0x1800c4b65
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800c4bef
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.180051fd0
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.1800c5e70
mov rdx, rax
mov rax, qword [rdi + 0x150]
movabs rcx, 0x492492492492491
sub rcx, rax
cmp rcx, rbx
jae 0x1800c4bce
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.1800070e0
mov bl, 1
jmp 0x1800c4c58
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.180061470
mov r8d, 6
lea rdx, str.____________________________r_n
mov rcx, r14
call fcn.1800c2410
mov r8d, 6
lea rdx, [rbp + 0x10]
mov rcx, r14
call fcn.1800c2410
mov r8d, 6
lea rdx, str.____________________________r_n
mov rcx, r14
call fcn.1800c2410
mov byte [rdi + 0x115], 0
xor bl, bl
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x1800c4c97
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c4c92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800c4c92
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18017df04
movdqa xmm0, xmmword [0x1801c14f0]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x1800c4ce7
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c4ce2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800c4ce2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18017df04
movdqa xmm0, xmmword [0x1801c14f0]
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
movzx eax, bl
jmp 0x1800c4d15
mov al, 1
jmp 0x1800c4d15
mov r8d, 6
lea rdx, str.log4z:_openLogger_can_not_open__invalide_logger_id___r_n
call fcn.1800c2410
xor al, al
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.18017dee0
mov rbx, qword [rsp + 0x370]
add rsp, 0x320
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret