Function at 0x418d00
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x594
mov eax, dword [0x4527b8]
push ebx
mov dword [esp + 0x594], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push esi
push edi
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
je 0x4191af
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], edi
je 0x4191af
mov eax, dword [ebp + 8]
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x88]
push ecx
call fcn.0040de70
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, edi
jne 0x418dec
xor eax, eax
mov cl, byte [esp + eax + 0x80]
mov byte [esp + eax + 0x188], cl
inc eax
test cl, cl
jne 0x418d70
push edi
push edi
push 3
push edi
push 3
push 0xc0000000
lea edx, [esp + 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp dword [esp + 0x14], edi
mov dword [esp + 0x28], ebx
je 0x418ebd
cmp ebx, 0xffffffff
je 0x418e4e
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
lea eax, [esp + 0x10]
push eax
push 0x20
lea ecx, [esp + 0x6c]
push ecx
push edi
push edi
push 0x74004
push ebx
call esi
test eax, eax
je 0x418e2c
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
jmp 0x418e94
push edi
lea edx, [esp + 0x18c]
push edx
lea eax, [esp + 0x498]
push eax
lea ecx, [esp + 0x8c]
push ecx
call fcn.0040df30
add esp, 0x10
cmp eax, edi
mov dword [esp + 0x24], eax
je 0x418d83
mov ecx, dword [esp + 0x59c]
call fcn.0041d4a3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [esp + 0x10]
push ecx
push 0x18
lea edx, [esp + 0x54]
push edx
push edi
push edi
push 0x70000
push ebx
call esi
test eax, eax
jne 0x418e66
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x59c]
call fcn.0041d4a3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x54]
mul dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
push edi
push ecx
push edx
push eax
call fcn.0041f0c0
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
push edx
push eax
call fcn.0041f0c0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x18]
or edx, dword [esp + 0x1c]
jne 0x418ebd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 8
mov ecx, dword [esp + 0x59c]
call fcn.0041d4a3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xffffffff
je 0x418e4e
call fcn.0040e3b0
call fcn.0041b010
test eax, eax
jne 0x4191af
cmp dword [esp + 0x14], edi
jne 0x418f29
cmp dword [0x4506d4], edi
je 0x418f29
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x40]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x418f21
push 0x30
push 0x43fc00
push str.GETFILETIME_FAILED_PW
mov dword [esp + 0x2c], edi
call fcn.00417ce0
add esp, 4
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x418f29
mov dword [esp + 0x20], 1
mov dword [esp + 0xc], edi
lea ecx, [ecx]
cmp edi, 1
jne 0x418f51
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
push ebx
call fcn.0040e780
add esp, 0x10
test eax, eax
je 0x418fa8
push 0x200
lea ecx, [esp + 0x294]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 0x200
jne 0x418fb6
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x298]
push ecx
call fcn.0041c570
mov esi, eax
add esp, 0xc
cmp esi, 0x13
je 0x418fd9
cmp esi, 3
jne 0x418fc4
inc edi
cmp edi, 2
jl 0x418f30
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0
jmp 0x4190ce
mov dword [esp + 0xc], edi
mov esi, 0xc
jmp 0x4190ce
mov dword [esp + 0xc], edi
mov esi, 8
jmp 0x4190ce
test esi, esi
mov dword [esp + 0xc], edi
je 0x418fdd
mov dword [esp + 0x10], 0
jmp 0x4190ce
mov dword [esp + 0xc], edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x418fee
mov edx, dword [esp + 0x10]
mov dword [edx + 0x2e44], eax
xor edi, edi
cmp dword [esp + 0xc], 1
jne 0x419025
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
push ebx
call fcn.0040e780
add esp, 0x10
test eax, eax
je 0x418fac
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x2e68]
mov esi, dword [eax + 0x2e6c]
jmp 0x419040
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll__llseek]
test eax, eax
jne 0x418fac
mov eax, dword [esp + 0x10]
xor ecx, ecx
xor esi, esi
xor edx, edx
cmp edi, 0x23
setl dl
push edx
mov edx, dword [eax + 0x2e4c]
push esi
push ecx
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [eax + 0x2e48]
push edx
push ecx
mov ecx, dword [eax + 0x2e44]
lea edx, [eax + 0x2d00]
push edx
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x2bc]
push eax
call fcn.0041cb00
mov esi, eax
mov eax, dword [esp + 0x5c]
add esp, 0x30
test eax, eax
je 0x41909a
push eax
call fcn.0040bd00
add esp, 4
test esi, esi
jne 0x4190ce
push 0x200
lea ecx, [esp + 0x294]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0x200
jne 0x4191a5
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
inc edi
cmp edi, 0x24
jl 0x418ff0
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x290]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4190ef
push eax
call fcn.0040bd00
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41913c
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x41913c
push 0x30
push 0x43fc00
push str.SETFILETIME_FAILED_PW
call fcn.00417ce0
add esp, 4
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41917f
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41917f
lea edx, [esp + 0x490]
push edx
lea eax, [esp + 0x84]
push eax
call fcn.0040df90
mov edi, eax
add esp, 8
test edi, edi
je 0x41917f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov esi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0040e3e0
call fcn.0041a0e0
mov eax, esi
mov ecx, dword [esp + 0x59c]
call fcn.0041d4a3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0xd
jmp 0x4190ce
mov ecx, dword [esp + 0x59c]
or eax, 0xffffffff
call fcn.0041d4a3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret