Function at 0x12213e41
Capabilities:
Move file
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x123474e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push edi
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.12213cc5
add esp, 0x10
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.12213d83
add esp, 0x10
mov byte [ebp - 4], 1
push 3
lea ecx, [ebp - 0x18]
call fcn.12212010
push eax
lea ecx, [ebp - 0x14]
call fcn.12212010
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1221401f
mov dword [ebp - 0x3c], 0
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push 0
lea ecx, [ebp - 0x18]
call fcn.12212010
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x12213fd6
mov word [ebp - 0x54], 0
xor ecx, ecx
mov dword [ebp - 0x52], ecx
mov dword [ebp - 0x4e], ecx
mov dword [ebp - 0x4a], ecx
mov word [ebp - 0x46], cx
lea edx, [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov dword [ebp - 0x44], 0
xor eax, eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0
push 0
push 3
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x18]
call fcn.12212010
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffff
je 0x12213fd6
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x12213fd6
lea ecx, [ebp - 0x60]
call fcn.122a7faa
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x4e]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x52]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x54]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x18]
push eax
push str.CConfigMgr::BackupRegBackupFile___s____lu___lu___lu__SetFileTime__lu_
push 0x1237baa4
push 8
push 0x123af974
call fcn.122a118e
add esp, 0x24
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.122a7fd1
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x1221401d
lea ecx, [ebp - 0x64]
call fcn.122a7faa
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push str.CConfigMgr::BackupRegBackupFile___s_______s__backup_reg_file
push 0x1237bb30
push 8
push 0x123af974
call fcn.122a118e
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.122a7fd1
jmp 0x12214073
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x12214073
lea ecx, [ebp - 0x6c]
call fcn.122a7faa
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push str.CConfigMgr::BackupRegBackupFile___s_______s__MoveFileExW_fail_err__lu_
push 0x1237bbd0
push 8
push 0x123af974
call fcn.122a118e
add esp, 0x1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.122a7fd1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.122b5d40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.122b5d40
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret