Function at 0x34004156
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3413add4
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.34003e33
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.340020c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x34004430
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 0x3400442e
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, 0x341a3e58
call fcn.3408c1f3
test eax, eax
je 0x34004353
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.340994ba
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 0x3416fd20
push 8
push 0x341a3e5c
call fcn.34090e9e
add esp, 0x5c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.340994e1
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.340b8d10
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.340b8d10
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x58]
call fcn.340b99b0
lea ecx, [ebp - 0x88]
call fcn.340b9df0
cmp eax, dword [0x34163d6c]
jle 0x3400442e
lea ecx, [ebp - 0x38]
call fcn.340020c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x10], eax
mov ecx, 0x341a3e58
call fcn.3408c1f3
test eax, eax
je 0x3400442e
lea ecx, [ebp - 0xa0]
call fcn.340994ba
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 0x3416fda4
push 8
push 0x341a3e5c
call fcn.34090e9e
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.340994e1
jmp 0x3400448c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa4], eax
mov ecx, 0x341a3e58
call fcn.3408c1f3
test eax, eax
je 0x3400448c
lea ecx, [ebp - 0xa8]
call fcn.340994ba
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 0x3416fe50
push 8
push 0x341a3e5c
call fcn.34090e9e
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.340994e1
mov ecx, 0x341a3e58
call fcn.3408c1f3
test eax, eax
je 0x340044d9
lea ecx, [ebp - 0xac]
call fcn.340994ba
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 0x3416fec4
push 8
push 0x341a3e5c
call fcn.34090e9e
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.340994e1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.340a7330
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret