Function at 0x487670
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
test esi, esi
je 0x48769c
cmp dword [esi], 0
mov byte [ebp - 0x17], 1
jne 0x4876a0
mov byte [ebp - 0x17], 0
test edi, edi
je 0x4876ad
cmp dword [edi], 0
mov byte [ebp - 0x16], 1
jne 0x4876b1
mov byte [ebp - 0x16], 0
test ebx, ebx
je 0x4876be
cmp dword [ebx], 0
mov byte [ebp - 0x15], 1
jne 0x4876c2
mov byte [ebp - 0x15], 0
cmp byte [ebp - 0x17], 0
je 0x48772f
movzx ecx, word [esi + 4]
movzx edx, word [esi + 8]
movzx eax, word [esi]
mov word [ebp - 0x12], cx
movzx ecx, word [esi + 0x10]
mov word [ebp - 0xe], dx
movzx edx, word [esi + 0x14]
mov word [ebp - 0x14], ax
movzx eax, word [esi + 0xc]
mov word [ebp - 0xa], cx
lea ecx, [ebp - 0x20]
mov word [ebp - 8], dx
mov word [ebp - 0xc], ax
push ecx
lea edx, [ebp - 0x14]
xor eax, eax
push edx
mov word [ebp - 6], ax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov esi, dword [esi + 0x18]
mov eax, dword [ebp - 0x20]
add eax, esi
mov dword [ebp - 0x20], eax
cmp eax, esi
jae 0x48771d
inc dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x20]
push ecx
call esi
jmp 0x487735
mov esi, dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp byte [ebp - 0x16], 0
je 0x48779a
movzx eax, word [edi + 4]
movzx ecx, word [edi + 8]
movzx edx, word [edi]
mov word [ebp - 0x12], ax
movzx eax, word [edi + 0x10]
mov word [ebp - 0xe], cx
movzx ecx, word [edi + 0x14]
mov word [ebp - 0x14], dx
movzx edx, word [edi + 0xc]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x20]
mov word [ebp - 8], cx
mov word [ebp - 0xc], dx
push eax
lea ecx, [ebp - 0x14]
xor edx, edx
push ecx
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edi, dword [edi + 0x18]
mov eax, dword [ebp - 0x20]
add eax, edi
mov dword [ebp - 0x20], eax
cmp eax, edi
jae 0x487790
inc dword [ebp - 0x1c]
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x20]
push eax
call esi
cmp byte [ebp - 0x15], 0
je 0x4877ff
movzx edx, word [ebx + 4]
movzx eax, word [ebx + 8]
movzx ecx, word [ebx]
mov word [ebp - 0x12], dx
movzx edx, word [ebx + 0x10]
mov word [ebp - 0xe], ax
movzx eax, word [ebx + 0x14]
mov word [ebp - 0x14], cx
movzx ecx, word [ebx + 0xc]
mov word [ebp - 0xa], dx
lea edx, [ebp - 0x20]
mov word [ebp - 8], ax
mov word [ebp - 0xc], cx
push edx
lea eax, [ebp - 0x14]
xor ecx, ecx
push eax
mov word [ebp - 6], cx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ebx, dword [ebx + 0x18]
mov eax, dword [ebp - 0x20]
add eax, ebx
mov dword [ebp - 0x20], eax
cmp eax, ebx
jae 0x4877f5
inc dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x20]
push edx
call esi
movzx eax, byte [ebp - 0x17]
movzx edx, byte [ebp - 0x15]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x3c]
and eax, ecx
movzx ecx, byte [ebp - 0x16]
push eax
neg edx
sbb edx, edx
lea eax, [ebp - 0x2c]
and edx, eax
mov eax, dword [ebp - 0x24]
neg ecx
push edx
sbb ecx, ecx
lea edx, [ebp - 0x34]
and ecx, edx
push ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497792
mov esp, ebp
pop ebp
ret 0xc