Function at 0x408220
Capabilities:
Resolve function by parsing pe exports
Timestomp file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5ac
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0x5a8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [esp + 0x14], edx
xor edx, edx
cmp dword [eax], edx
mov esi, 1
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edx
je 0x40870f
cmp dword [ecx], edx
je 0x40870f
mov eax, dword [0x4652cc]
cmp eax, edx
jne 0x4082a4
push 0x7f02
push edx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x4652cc], eax
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [0x4652cc]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x9c]
push edx
mov dword [0x471ad4], eax
call fcn.00405be0
mov edi, dword [esp + 0x34]
add esp, 8
test edi, edi
jne 0x4082f6
xor eax, eax
jmp 0x4082e0
mov cl, byte [esp + eax + 0x98]
mov byte [esp + eax + 0x1a0], cl
add eax, esi
test cl, cl
jne 0x4082e0
jmp 0x408321
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0x9c]
push ecx
lea esi, [esp + 0x4b0]
call fcn.00405d10
add esp, 8
test eax, eax
mov dword [esp + 0x38], eax
jne 0x4085ec
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x1b8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test edi, edi
mov dword [esp + 0x14], eax
je 0x4083e8
cmp eax, 0xffffffff
je 0x4085ec
lea edx, [esp + 0x78]
mov ecx, ebx
call fcn.004071b0
test eax, eax
je 0x408376
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x24], ecx
jmp 0x4083cb
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x48]
push edx
push 0x18
lea eax, [esp + 0x6c]
push eax
push 0
push 0
push 0x70000
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4085ec
mov eax, dword [esp + 0x6c]
mul dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
push 0
push ecx
push edx
push eax
call fcn.004314c0
mov ecx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push ecx
push edx
push eax
call fcn.004314c0
mov dword [esp + 0x24], edx
mov edx, eax
or edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jne 0x4083e4
mov dword [esp + 0x10], 8
jmp 0x4085ec
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4085ec
call fcn.0040a3f0
test eax, eax
jne 0x4085ec
test edi, edi
mov edi, dword [esp + 0x14]
jne 0x40844b
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x58]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x408443
mov dword [esp + 0x30], eax
push 0x30
push 0x455cf8
mov eax, str.GETFILETIME_FAILED_PW
call fcn.00407540
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40844b
mov dword [esp + 0x30], 1
mov ebx, dword [sym.imp.KERNEL32.dll__lread]
xor esi, esi
cmp esi, 1
jne 0x408475
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
mov eax, edi
call fcn.004063b0
add esp, 0xc
test eax, eax
je 0x4084cb
push 0x200
lea ecx, [esp + 0x2ac]
push ecx
push edi
call ebx
cmp eax, 0x200
jne 0x4083d7
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x2a8]
push edx
lea edx, [esp + 0x20]
call fcn.0040cf10
add esp, 4
cmp eax, 0x13
mov dword [esp + 0x10], eax
je 0x4084ed
cmp eax, 3
jne 0x4084d8
add esi, 1
cmp esi, 2
jl 0x408453
mov dword [esp + 0x1c], 0
jmp 0x4085ec
mov dword [esp + 0x10], 0xc
jmp 0x4085ec
test eax, eax
mov dword [esp + 0x18], esi
je 0x4084f1
mov dword [esp + 0x1c], 0
jmp 0x4085ec
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0x10]
test eax, eax
mov esi, dword [esp + 0x1c]
je 0x408502
mov dword [esi + 0x2e44], eax
xor ebx, ebx
jmp 0x408518
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x18], 1
jne 0x40854a
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
mov eax, edi
call fcn.004063b0
add esp, 0xc
test eax, eax
je 0x4084cb
mov eax, dword [esi + 0x2e68]
mov ecx, dword [esi + 0x2e6c]
jmp 0x40855f
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
test eax, eax
jne 0x4084cb
xor ecx, ecx
mov edx, dword [esi + 0x2e44]
push ecx
mov ecx, dword [esi + 0x2e48]
push eax
mov eax, dword [esi + 0x2e4c]
push eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
lea edx, [esp + 0x2c4]
push edx
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x54]
call fcn.0040d770
mov esi, eax
mov eax, dword [esp + 0x54]
add esp, 0x20
test eax, eax
mov dword [esp + 0x10], esi
je 0x4085aa
mov edi, eax
call fcn.004090f0
test esi, esi
jne 0x4085ec
mov esi, dword [esp + 0x14]
push 0x200
lea eax, [esp + 0x2ac]
push eax
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0x200
jne 0x4086eb
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
add ebx, 1
cmp ebx, 0x24
jl 0x408510
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x2a8]
mov ecx, 0x200
mov ebx, eax
mov esi, ecx
mov eax, edx
mov byte [eax], 0
add eax, 1
sub esi, 1
jne 0x408604
nop
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x408610
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x40862a
call fcn.004090f0
cmp dword [esp + 0x30], 0
mov esi, dword [esp + 0x14]
je 0x40864b
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp esi, 0xffffffff
je 0x408657
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], 0
jne 0x408676
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x4ac]
push edx
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
mov eax, dword [0x46506c]
test eax, eax
jne 0x408690
push 0x7f00
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x46506c], eax
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [0x471ad4], 0
call fcn.0040a500
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0x10]
cmp esi, 1
jne 0x4086f8
cmp ebx, 5
jne 0x4086f8
cmp dword [esp + 0x2c], 0
je 0x4086f8
cmp dword [0x471abc], 0
jne 0x4086f8
call fcn.00407080
test eax, eax
je 0x4086f8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5a8]
xor ecx, esp
call fcn.00423893
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], 0xd
jmp 0x4085ec
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5a8]
xor ecx, esp
call fcn.00423893
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x5b4]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.00423893
mov esp, ebp
pop ebp
ret