Function at 0x140092000
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x1a8
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rax, qword [0x140100070]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rax, r9
mov qword [rsp + 0x60], rax
mov rdi, r8
mov rsi, rdx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x90], rax
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x140092065
mov rcx, qword [rdx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140092953
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140092081
mov rcx, qword [rsi]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x140092953
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
movdqu xmmword [rsp + 0x48], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.14007e160
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400920c5
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400921b3
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400920e1
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1400921b3
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14007e160
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov r14d, 0x1000
cmp rdi, rsi
je 0x1400921b9
mov rdx, rdi
lea rcx, [rsp + 0x130]
call fcn.14007efb0
nop
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
je 0x14009214d
lea rdx, [rsp + 0x130]
mov rcx, rax
call fcn.14007efb0
add qword [rsp + 0x30], 0x20
jmp 0x140092163
lea r8, [rsp + 0x130]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140080e70
nop
mov rdx, qword [rsp + 0x148]
cmp rdx, 8
jb 0x1400921a3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x130]
mov rax, rcx
cmp rdx, r14
jb 0x14009219e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400921ac
call fcn.1400a9870
add rdi, 0x20
jmp 0x14009210f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r14d, 0x1000
mov r12, rbx
mov qword [rsp + 0x58], rbx
mov r13, qword [rsp + 0x30]
sub r13, qword [rsp + 0x28]
sar r13, 5
mov qword [rsp + 0x70], r13
mov edi, r12d
mov rax, qword [rsp + 0x60]
test edi, edi
jne 0x1400928ae
cmp r12, r13
jae 0x1400928ae
cmp byte [0x140104390], bl
jne 0x1400928ae
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0xa0], rcx
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.14007efb0
mov rdi, rax
mov rsi, r12
shl rsi, 5
mov rdx, qword [rsp + 0x28]
add rdx, rsi
lea rcx, [rsp + 0xb0]
call fcn.14007efb0
nop
mov rdx, rdi
mov rcx, rax
call fcn.140091bbc
test al, al
je 0x140092864
mov rcx, qword [rsp + 0x28]
add rcx, rsi
call fcn.14007dcdc
test al, al
jne 0x140092474
lea rdx, str.e:workspace_rt_win_8_1mainlineheadlightslogtransportmain_application_sourcexplatlogtransportdriver.cpp
lea rcx, [rsp + 0xd0]
call fcn.140074e28
nop
mov r8d, 0x458
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xb0]
call fcn.140087720
mov rdi, rax
mov r8, qword [rsp + 0x28]
add r8, rsi
lea rdx, str.Deleting_log_file
lea rcx, [rsp + 0x110]
call fcn.1400942a8
nop
lea r8, str.__File_size_is_more_than_the_threshold
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.14008a310
mov rdx, rax
mov rcx, qword [0x1401043e0]
mov rax, qword [rcx]
mov r8, rdi
mov rax, qword [rax + 0x30]
call qword [case.0x140008940.0]
nop
mov rdx, qword [rsp + 0x108]
cmp rdx, 8
jb 0x140092327
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xf0]
mov rax, rcx
cmp rdx, r14
jb 0x140092322
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009242c
call fcn.1400a9870
mov qword [rsp + 0x100], rbx
mov edi, 7
mov qword [rsp + 0x108], rdi
mov word [rsp + 0xf0], bx
mov rdx, qword [rsp + 0x128]
cmp rdx, 8
jb 0x140092388
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x110]
mov rax, rcx
cmp rdx, r14
jb 0x140092383
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009242c
call fcn.1400a9870
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x128], rdi
mov word [rsp + 0x110], bx
mov rdx, qword [rsp + 0xc8]
cmp rdx, 0x10
jb 0x1400923db
inc rdx
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, r14
jb 0x1400923d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009242c
call fcn.1400a9870
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0xc8], 0xf
mov byte [rsp + 0xb0], bl
mov rdx, qword [rsp + 0xe8]
cmp rdx, 0x10
jb 0x140092438
inc rdx
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
cmp rdx, r14
jb 0x140092433
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140092433
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400a9870
mov rdi, qword [rsp + 0x28]
add rdi, rsi
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14009244d
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140092864
cmp qword [rdi + 0x18], 8
jb 0x140092466
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140092864
call fcn.140091b58
test rax, rax
jne 0x14009253d
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x1400924d7
mov r8, qword [rsp + 0x48]
call fcn.140081524
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, r14
jb 0x1400924c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140092519
call fcn.1400a9870
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbx
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x140092533
mov r8, qword [rsp + 0x30]
call fcn.140081524
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, r14
jb 0x140092520
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140092520
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400a9870
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rbx
mov eax, 1
jmp 0x14009295a
lea rdx, str.e:workspace_rt_win_8_1mainlineheadlightslogtransportmain_application_sourcexplatlogtransportdriver.cpp
lea rcx, [rsp + 0xd0]
call fcn.140074e28
nop
mov r8d, 0x467
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x110]
call fcn.140087720
mov rdi, rax
mov r8, qword [rsp + 0x28]
add r8, rsi
lea rdx, str.Upload_started_for
lea rcx, [rsp + 0xb0]
call fcn.1400942a8
mov rdx, rax
mov rcx, qword [0x1401043e0]
mov rax, qword [rcx]
mov r8, rdi
mov rax, qword [rax + 0x70]
call qword [case.0x140008940.0]
nop
mov rdx, qword [rsp + 0xc8]
cmp rdx, 8
jb 0x1400925eb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, r14
jb 0x1400925e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140092693
call fcn.1400a9870
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0xc8], 7
mov word [rsp + 0xb0], bx
mov rdx, qword [rsp + 0x128]
cmp rdx, 0x10
jb 0x140092642
inc rdx
mov rcx, qword [rsp + 0x110]
mov rax, rcx
cmp rdx, r14
jb 0x14009263d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140092693
call fcn.1400a9870
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x128], 0xf
mov byte [rsp + 0x110], bl
mov rdx, qword [rsp + 0xe8]
cmp rdx, 0x10
jb 0x14009269f
inc rdx
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
cmp rdx, r14
jb 0x14009269a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009269a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400a9870
mov rdi, qword [rsp + 0x28]
add rdi, rsi
call fcn.140091b58
mov r8, rdi
mov rdx, qword [rsp + 0x68]
mov rcx, rax
call fcn.14008afc4
test eax, eax
je 0x1400926cd
mov dword [rsp + 0x20], 1
jmp 0x140092847
lea rdx, str.e:workspace_rt_win_8_1mainlineheadlightslogtransportmain_application_sourcexplatlogtransportdriver.cpp
lea rcx, [rsp + 0x150]
call fcn.140074e28
nop
mov r8d, 0x476
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x130]
call fcn.140087720
mov rdi, rax
mov r8, qword [rsp + 0x28]
add r8, rsi
lea rdx, str.Upload_succeeded_for
lea rcx, [rsp + 0x170]
call fcn.1400942a8
mov rdx, rax
mov rcx, qword [0x1401043e0]
mov rax, qword [rcx]
mov r8, rdi
mov rax, qword [rax + 0x70]
call qword [case.0x140008940.0]
nop
mov rdx, qword [rsp + 0x188]
cmp rdx, 8
jb 0x14009277b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x170]
mov rax, rcx
cmp rdx, r14
jb 0x140092776
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140092824
call fcn.1400a9870
mov qword [rsp + 0x180], rbx
mov qword [rsp + 0x188], 7
mov word [rsp + 0x170], bx
mov rdx, qword [rsp + 0x148]
cmp rdx, 0x10
jb 0x1400927d2
inc rdx
mov rcx, qword [rsp + 0x130]
mov rax, rcx
cmp rdx, r14
jb 0x1400927cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140092824
call fcn.1400a9870
mov qword [rsp + 0x140], rbx
mov edi, 0xf
mov qword [rsp + 0x148], rdi
mov byte [rsp + 0x130], bl
mov rdx, qword [rsp + 0x168]
cmp rdx, 0x10
jb 0x140092830
inc rdx
mov rcx, qword [rsp + 0x150]
mov rax, rcx
cmp rdx, r14
jb 0x14009282b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009282b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400a9870
mov qword [rsp + 0x160], rbx
mov qword [rsp + 0x168], rdi
mov byte [rsp + 0x150], bl
mov rcx, qword [0x140104398]
test rcx, rcx
je 0x140092864
mov edx, 1
call fcn.1400a9870
mov qword [0x140104398], rbx
inc r12
mov qword [rsp + 0x58], r12
mov edi, dword [rsp + 0x20]
jmp 0x1400921d7
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140092903
mov r8, qword [rsp + 0x48]
call fcn.140081524
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, r14
jb 0x1400928f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140092945
call fcn.1400a9870
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbx
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x140092958
mov r8, qword [rsp + 0x30]
call fcn.140081524
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, r14
jb 0x14009294c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009294c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400a9870
jmp 0x140092958
mov edi, 1
mov eax, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400a95a0
add rsp, 0x1a8
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret