Function at 0x10040540
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f9937
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x420]
push edx
push dword [0x1014e910]
push str._s_s.lnk
push 0x104
push eax
call fcn.100a4830
add esp, 0x14
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHELL32.dll_PathYetAnotherMakeUniqueName]
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push eax
push 0x1010fedc
push 0x17
push 0
push 0x10103e70
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x10040639
mov eax, dword [ebp - 0x424]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
js 0x10040639
test edi, edi
je 0x10040615
mov eax, dword [ebp - 0x424]
push 0
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov esi, eax
test esi, esi
js 0x10040639
push dword [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.10047560
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x428]
test eax, eax
jne 0x1004066e
mov esi, 0x80004005
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x10040650
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d4906
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax]
lea edx, [ebp - 0x218]
push 1
push edx
push eax
call dword [ecx + 0x18]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x10040691
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x100406a8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 9
push eax
push 0x1010fedc
push 0x17
push 0
push 0x10103e70
call dword [sym.imp.ole32.dll_CoCreateInstance]
push dword [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.10047560
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 0x428]
push 2
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
push dword [ebp - 0x424]
lea ecx, [ebp - 0x42c]
call fcn.10035030
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x1004075e
mov ecx, 0xb
lea edx, [ebp - 0x43c]
mov word [ebp - 0x43c], cx
or ecx, 0xffffffff
push edx
mov word [ebp - 0x434], cx
mov ecx, dword [eax]
push 0x10103ecc
push eax
call dword [ecx + 0x18]
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [ebp - 0x42c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x428]
lea edx, [ebp - 0x218]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x10040787
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x1004079b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xe
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x100407b2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100407fc
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 0x434]
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10040652