Function at 0x407f80
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 0x40846f
cmp dword [ecx], edx
je 0x40846f
mov eax, dword [0x4652e4]
cmp eax, edx
jne 0x408004
push 0x7f02
push edx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x4652e4], eax
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [0x4652e4]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x9c]
push edx
mov dword [0x471aec], eax
call fcn.004058f0
mov edi, dword [esp + 0x34]
add esp, 8
test edi, edi
jne 0x408056
xor eax, eax
jmp 0x408040
mov cl, byte [esp + eax + 0x98]
mov byte [esp + eax + 0x1a0], cl
add eax, esi
test cl, cl
jne 0x408040
jmp 0x408081
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0x9c]
push ecx
lea esi, [esp + 0x4b0]
call fcn.00405a20
add esp, 8
test eax, eax
mov dword [esp + 0x38], eax
jne 0x40834c
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 0x408148
cmp eax, 0xffffffff
je 0x40834c
lea edx, [esp + 0x78]
mov ecx, ebx
call fcn.00406f00
test eax, eax
je 0x4080d6
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x24], ecx
jmp 0x40812b
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 0x40834c
mov eax, dword [esp + 0x6c]
mul dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
push 0
push ecx
push edx
push eax
call fcn.0042e980
mov ecx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push ecx
push edx
push eax
call fcn.0042e980
mov dword [esp + 0x24], edx
mov edx, eax
or edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jne 0x408144
mov dword [esp + 0x10], 8
jmp 0x40834c
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x40834c
call fcn.0040a150
test eax, eax
jne 0x40834c
test edi, edi
mov edi, dword [esp + 0x14]
jne 0x4081ab
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 0x4081a3
mov dword [esp + 0x30], eax
push 0x30
push str.TrueCrypt
mov eax, str.GETFILETIME_FAILED_PW
call fcn.00407290
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4081ab
mov dword [esp + 0x30], 1
mov ebx, dword [sym.imp.KERNEL32.dll__lread]
xor esi, esi
cmp esi, 1
jne 0x4081d5
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.004060d0
add esp, 0xc
test eax, eax
je 0x40822b
push 0x200
lea ecx, [esp + 0x2ac]
push ecx
push edi
call ebx
cmp eax, 0x200
jne 0x408137
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x2a8]
push edx
lea edx, [esp + 0x20]
call fcn.0040cc70
add esp, 4
cmp eax, 0x13
mov dword [esp + 0x10], eax
je 0x40824d
cmp eax, 3
jne 0x408238
add esi, 1
cmp esi, 2
jl 0x4081b3
mov dword [esp + 0x1c], 0
jmp 0x40834c
mov dword [esp + 0x10], 0xc
jmp 0x40834c
test eax, eax
mov dword [esp + 0x18], esi
je 0x408251
mov dword [esp + 0x1c], 0
jmp 0x40834c
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0x10]
test eax, eax
mov esi, dword [esp + 0x1c]
je 0x408262
mov dword [esi + 0x2e44], eax
xor ebx, ebx
jmp 0x408278
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x18], 1
jne 0x4082aa
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.004060d0
add esp, 0xc
test eax, eax
je 0x40822b
mov eax, dword [esi + 0x2e68]
mov ecx, dword [esi + 0x2e6c]
jmp 0x4082bf
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
test eax, eax
jne 0x40822b
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.0040d4d0
mov esi, eax
mov eax, dword [esp + 0x54]
add esp, 0x20
test eax, eax
mov dword [esp + 0x10], esi
je 0x40830a
mov edi, eax
call fcn.00408e50
test esi, esi
jne 0x40834c
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 0x40844b
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
add ebx, 1
cmp ebx, 0x24
jl 0x408270
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 0x408364
nop
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x408370
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x40838a
call fcn.00408e50
cmp dword [esp + 0x30], 0
mov esi, dword [esp + 0x14]
je 0x4083ab
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 0x4083b7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], 0
jne 0x4083d6
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x4ac]
push edx
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
mov eax, dword [0x465084]
test eax, eax
jne 0x4083f0
push 0x7f00
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x465084], eax
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [0x471aec], 0
call fcn.0040a260
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0x10]
cmp esi, 1
jne 0x408458
cmp ebx, 5
jne 0x408458
cmp dword [esp + 0x2c], 0
je 0x408458
cmp dword [0x471ad4], 0
jne 0x408458
call fcn.00406dd0
test eax, eax
je 0x408458
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5a8]
xor ecx, esp
call fcn.004231f4
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], 0xd
jmp 0x40834c
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5a8]
xor ecx, esp
call fcn.004231f4
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.004231f4
mov esp, ebp
pop ebp
ret