Function at 0x140006434
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, rcx
lea rdx, str.CleanUpCMDLArgs____BEGIN
mov ecx, dword [0x14000e0a0]
call fcn.140007c34
xor r15d, r15d
mov esi, r15d
cmp dword [rbx + 0x40], r15d
jbe 0x14000654c
mov eax, esi
imul rdi, rax, 0x3b0
add rdi, qword [rbx + 0x48]
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x1400064bf
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x1400064bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x14000e0a0]
lea rdx, str.CleanUpCMDLArgs___WinHttpCloseHandle_asArgs.pdaArgs__u_.hReq__failed__GLE_u.
mov r9d, eax
mov r8d, esi
call fcn.140007c34
mov qword [rdi + 0x50], r15
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x140006500
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x1400064fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x14000e0a0]
lea rdx, str.CleanUpCMDLArgs___WinHttpCloseHandle_asArgs.pdaArgs__u_.hConn__failed__GLE_u.
mov r9d, eax
mov r8d, esi
call fcn.140007c34
mov qword [rdi + 0x48], r15
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x140006541
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x14000653d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x14000e0a0]
lea rdx, str.CleanUpCMDLArgs___WinHttpCloseHandle_asArgs.pdaArgs__u_.hInet__failed__GLE_u.
mov r9d, eax
mov r8d, esi
call fcn.140007c34
mov qword [rdi + 0x40], r15
inc esi
cmp esi, dword [rbx + 0x40]
jb 0x140006471
lea rsi, [rbx + 0x30]
mov rcx, qword [rsi]
test rcx, rcx
je 0x140006582
mov edx, 0xafc8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x140006582
mov ecx, dword [0x14000e0a0]
lea rdx, str.CleanUpCMDLArgs___WaitForSingleObject___failed__GLE_u.
mov r8d, eax
call fcn.140007c34
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000659b
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
mov qword [rbx + 0x10], r15
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1400065b4
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
mov qword [rbx + 0x60], r15
mov ebp, r15d
cmp dword [rbx + 0x40], r15d
jbe 0x1400066ba
mov eax, ebp
imul rdi, rax, 0x3b0
add rdi, qword [rbx + 0x48]
mov rcx, rdi
call fcn.140002570
lea rcx, [rdi + 8]
call fcn.140002570
lea rcx, [rdi + 0x10]
call fcn.140002570
lea rcx, [rdi + 0x18]
call fcn.140002570
lea rcx, [rdi + 0x20]
call fcn.140002570
lea rcx, [rdi + 0x28]
call fcn.140002570
lea rcx, [rdi + 0x30]
call fcn.140002570
mov r14d, r15d
cmp dword [rdi + 0x3a0], r15d
jbe 0x140006641
mov rcx, qword [rdi + 0x3a8]
mov eax, r14d
add rax, rax
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
inc r14d
cmp r14d, dword [rdi + 0x3a0]
jb 0x140006618
mov rcx, qword [rdi + 0x3a8]
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
test byte [rbx + 0x18], 1
jne 0x1400066af
lea r14, [rdi + 0x58]
cmp byte [r14], r15b
je 0x14000669e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
test eax, eax
jne 0x14000669e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x14000e0a0]
lea rdx, str.CleanUpCMDLArgs___DeleteFile_asArgs_pdaArgs__lu_.szFile_s__failed__GLE_u.
mov r9, r14
mov dword [rsp + 0x20], eax
mov r8d, ebp
call fcn.140007c34
lea rcx, [rdi + 0x188]
cmp byte [rcx], r15b
je 0x1400066af
call fcn.140003330
inc ebp
cmp ebp, dword [rbx + 0x40]
jb 0x1400065c1
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x1400066d3
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
mov qword [rbx + 0x48], r15
mov ebx, r15d
mov rcx, qword [rsi]
test rcx, rcx
je 0x140006715
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x140006712
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x14000e0a0]
lea rdx, str.WinMain___CloseHandle_asArgs.ahHandles__u___failed__GLE_u.
mov r9d, eax
mov r8d, ebx
call fcn.140007c34
mov qword [rsi], r15
inc ebx
add rsi, 8
cmp ebx, 2
jb 0x1400066d6
mov ecx, dword [0x14000e0a0]
lea rdx, str.CleanUpCMDLArgs____END
call fcn.140007c34
mov rbx, qword [rsp + 0x50]
mov eax, 1
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret