Function at 0x507388
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5075a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.004057c0
je 0x507592
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov edx, 2
call fcn.0053392c
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x7bc]
call fcn.004b1734
test eax, eax
jl 0x5073f1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
call fcn.005071f8
mov eax, dword [0x574604]
cmp byte [eax], 0
je 0x507420
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
call fcn.0040568c
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x14], eax
jmp 0x50744e
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 4]
call fcn.00404f2c
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 0x18]
call fcn.00405168
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x50758b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileTime
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x19], al
mov eax, dword [ebp - 0xc]
cmp byte [eax + 8], 0
jne 0x5074a0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
add eax, 0x7c8
push eax
call sub.kernel32.dll_CompareFileTime
test eax, eax
jge 0x5074f6
mov byte [ebp - 0xd], 1
jmp 0x5074f6
cmp byte [ebp - 0x19], 0
je 0x5074c0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call sub.kernel32.dll_CompareFileTime
test eax, eax
jge 0x5074f6
mov byte [ebp - 0xd], 1
jmp 0x5074f6
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x7bc]
call fcn.004b1734
test eax, eax
jge 0x5074f6
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x7bc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov byte [ebp - 0xd], 1
cmp byte [ebp - 0x19], 0
je 0x507574
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
call sub.kernel32.dll_CompareFileTime
test eax, eax
jge 0x50751f
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov dword [ebp - 8], edx
mov edx, dword [eax - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add eax, 1
adc edx, 0
jno 0x507532
call fcn.00403c1c
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
cmp byte [eax + 8], 0
je 0x507547
cmp byte [ebp - 0xd], 0
je 0x507563
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetFileTime
mov eax, dword [ebp - 0xc]
mov byte [eax + 8], 1
jmp 0x507574
push 0
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetFileTime
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507592
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5075af
lea eax, [ebp - 0x18]
call fcn.00404c88
ret