Function at 0x522ee0
Capabilities:
Timestomp file

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [esp + 0x88]
cmp eax, 1
je 0x523170
jb 0x523160
cmp eax, 3
jne 0x523062
lea ebx, [esp + 0x38]
xor esi, esi
xor edi, edi
mov ebp, ebx
mov ecx, dword [esp + 0x84]
call fcn.00671290
test eax, eax
jne 0x523080
mov ecx, dword [esp + 0x84]
call fcn.006706d0
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
call fcn.006707e0
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], eax
call fcn.00656b40
lea ecx, [esp + 0x30]
mov word [esp + 0x50], ax
call fcn.00656c30
lea ecx, [esp + 0x30]
mov word [esp + 0x52], ax
call fcn.00656a50
lea ecx, [esp + 0x2c]
mov word [esp + 0x56], ax
call fcn.00658d90
lea ecx, [esp + 0x2c]
mov word [esp + 0x58], ax
call fcn.00658e00
lea ecx, [esp + 0x2c]
mov word [esp + 0x5a], ax
call fcn.00658e40
lea ecx, [esp + 0x2c]
mov word [esp + 0x5c], ax
call fcn.00658dc0
lea ecx, [esp + 0x30]
mov word [esp + 0x5e], ax
call fcn.00657ed0
mov edx, 0x92492493
mov ecx, eax
mov dword [esp], 0
imul edx
mov eax, ecx
sar eax, 0x1f
add edx, ecx
sar edx, 2
sub edx, eax
lea eax, [edx*8]
sub eax, edx
lea edx, [esp + 0x40]
sub ecx, eax
lea eax, [esp + 0x50]
mov dword [esp + 8], edx
mov dword [esp + 0x1c], edx
mov word [esp + 0x54], cx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTime]
sub esp, 0xc
test eax, eax
mov edx, dword [esp + 0x1c]
je 0x523078
mov dword [esp + 4], ebx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
sub esp, 8
test eax, eax
je 0x523078
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edx, eax
sub esp, 0x10
mov eax, 1
test edx, edx
jne 0x523078
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x8c]
mov dword [esi], eax
mov dword [esi + 4], 2
add esp, 0x6c
pop ebx
xor eax, eax
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x8c]
mov dword [eax], 0x57
mov dword [eax + 4], 2
xor eax, eax
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x2c]
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0066fe50
sub esp, 8
lea ecx, [esp + 0x2c]
call fcn.006706d0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
call fcn.006707e0
lea ecx, [esp + 0x50]
mov dword [esp + 0x30], eax
call fcn.00656b40
lea ecx, [esp + 0x50]
mov word [esp + 0x40], ax
call fcn.00656c30
lea ecx, [esp + 0x50]
mov word [esp + 0x42], ax
call fcn.00656a50
lea ecx, [esp + 0x30]
mov word [esp + 0x46], ax
call fcn.00658d90
lea ecx, [esp + 0x30]
mov word [esp + 0x48], ax
call fcn.00658e00
lea ecx, [esp + 0x30]
mov word [esp + 0x4a], ax
call fcn.00658e40
lea ecx, [esp + 0x30]
mov word [esp + 0x4c], ax
call fcn.00658dc0
lea ecx, [esp + 0x50]
mov word [esp + 0x4e], ax
call fcn.00657ed0
mov edx, 0x92492493
mov ecx, eax
imul edx
mov eax, ecx
sar eax, 0x1f
add edx, ecx
sar edx, 2
sub edx, eax
lea eax, [edx*8]
sub eax, edx
sub ecx, eax
mov word [esp + 0x44], cx
lea ecx, [esp + 0x2c]
call fcn.005d42f0
lea edx, [esp + 0x40]
jmp 0x523004
lea ebx, [esp + 0x38]
xor esi, esi
xor ebp, ebp
mov edi, ebx
jmp 0x522f10
lea ebx, [esp + 0x38]
xor edi, edi
xor ebp, ebp
mov esi, ebx
jmp 0x522f10