Function at 0x122140a6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x12347524
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.12213d83
add esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x34]
push ecx
push 0
lea ecx, [ebp - 0x38]
call fcn.12212010
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x12214380
mov word [ebp - 0x48], 0
xor edx, edx
mov dword [ebp - 0x46], edx
mov dword [ebp - 0x42], edx
mov dword [ebp - 0x3e], edx
mov word [ebp - 0x3a], dx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1221437e
mov word [ebp - 0x68], 0
xor edx, edx
mov dword [ebp - 0x66], edx
mov dword [ebp - 0x62], edx
mov dword [ebp - 0x5e], edx
mov word [ebp - 0x5a], dx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x122142a3
mov word [ebp - 0x9c], 0
xor ecx, ecx
mov dword [ebp - 0x9a], ecx
mov dword [ebp - 0x96], ecx
mov dword [ebp - 0x92], ecx
mov word [ebp - 0x8e], cx
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x8c]
call fcn.122a7faa
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x90]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x92]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x94]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x96]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x9a]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x9c]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x5c]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x5e]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x60]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x62]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x66]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x68]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x3c]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x3e]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x40]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x42]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x46]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x48]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x38]
push eax
push str.CTSandboxMgr::CleanupRegBackupFile___s__SystemTime_reg__d__02d__02d__02d:_02d:_02d__current__d__02d__02d__02d:_02d:_02d__LocalTime__d__02d__02d__02d:_02d:_02d_
push 0x1237bd20
push 8
push 0x123af974
call fcn.122a118e
add esp, 0x5c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.122a7fd1
push 0
push 0
push 0
mov ecx, dword [ebp - 0x42]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x46]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x48]
and eax, 0xffff
push eax
lea ecx, [ebp - 0x78]
call fcn.122c5f70
push 0
push 0
push 0
mov ecx, dword [ebp - 0x62]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x66]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x68]
and eax, 0xffff
push eax
lea ecx, [ebp - 0x58]
call fcn.122c5f70
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x58]
call fcn.122c6c10
lea ecx, [ebp - 0x88]
call fcn.122c7050
cmp eax, dword [0x1236fd6c]
jle 0x1221437e
lea ecx, [ebp - 0x38]
call fcn.12212010
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x10], eax
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x1221437e
lea ecx, [ebp - 0xa0]
call fcn.122a7faa
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push str.CTSandboxMgr::CleanupRegBackupFile___s__DeleteFileW__lu_
push 0x1237bda4
push 8
push 0x123af974
call fcn.122a118e
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.122a7fd1
jmp 0x122143dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa4], eax
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x122143dc
lea ecx, [ebp - 0xa8]
call fcn.122a7faa
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0x38]
push eax
push str.CTSandboxMgr::CleanupRegBackupFile___s__GetFileAttributesExW_fail_dwErr__lu_
push 0x1237be50
push 8
push 0x123af974
call fcn.122a118e
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.122a7fd1
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x12214429
lea ecx, [ebp - 0xac]
call fcn.122a7faa
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push str.CTSandboxMgr::CleanupRegBackupFile___s__bRet__lu_
push 0x1237bec4
push 8
push 0x123af974
call fcn.122a118e
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.122a7fd1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.122b5d40
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret