Function at 0x4011f0
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401a80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call sub.MFC42u.DLL_AfxWinInit
test eax, eax
jne 0x40126a
mov ecx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push str.Fatal_Error:_MFC_initialization_failed
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 4
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
mov edi, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::operator___class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int_____unsigned_short_int_const__]
push str.ROMA_MFC
push eax
call edi
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::endl_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int____]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4012b2
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
push str.Safe
push ecx
call edi
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::endl_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int____]
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.00401760
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.004017e0
mov esi, eax
test esi, esi
mov dword [ebp - 0x18], esi
jne 0x40131a
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.004017a0
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
push str.File_Map_ok
push edx
call edi
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::endl_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int____]
call sub.ETAutoMark.dll_int___cdecl_ETInitAutoMark2_void_
mov ebx, eax
mov eax, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
push str.ETInitAutoMark
push eax
call edi
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::endl_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int____]
add esp, 0x18
test ebx, ebx
je 0x401381
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.004017a0
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Init_Dll_ok
mov ecx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
push ecx
call edi
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::endl_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int____]
mov eax, dword [esi + 8]
add esp, 0xc
test eax, eax
jne 0x401649
cmp word [esi + 0x260], 0
lea ebx, [esi + 0x260]
je 0x4015fd
lea edx, [esi + 0x58]
lea ecx, [ebp - 0x14]
push edx
call sub.MFC42u.DLL_CString::CString
push ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator
xor ebx, ebx
lea eax, [esi + 0x360]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [esi + 0x378], ebx
mov dword [esi + 0x374], ebx
mov dword [esi + 0x37c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x368], eax
call fcn.00401160
mov ecx, dword [ebp - 0x14]
mov edx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
push ecx
push edx
call edi
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::endl_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int____]
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4014e7
mov ecx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
push str.Calcu...
push ecx
call edi
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::endl_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int____]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x14]
push esi
push 0x401040
push edx
push eax
push ecx
mov byte [ebp - 4], 2
call sub.ETAutoMark.dll_int___cdecl_ETAutoMark_unsigned_short_int_const___void___int__int____cdecl___double__void____void__
mov edx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
add esp, 0x20
mov ebx, eax
push str.return:
push edx
call edi
add esp, 8
mov ecx, eax
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______thiscall_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::operator___int_]
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::endl_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int____]
add esp, 4
mov dword [ebp - 4], 1
jmp 0x4014ec
mov ebx, 0xfffffffd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0x368]
mov ecx, eax
mov dword [esi + 0x36c], ecx
sub ecx, edx
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [esi + 0x370], edx
mov edx, dword [esi + 0xc]
mov eax, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
push edx
push str.Setting_Time:
push eax
call edi
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______thiscall_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::operator___int_]
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::endl_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int____]
mov ecx, dword [esi + 0x370]
mov edx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
add esp, 4
push ecx
push 0x40309c
push edx
call edi
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______thiscall_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::operator___unsigned_long_int_]
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::endl_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int____]
add esp, 4
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x26]
mov eax, dword [ebp - 0x28]
push ecx
mov ecx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
push 0x403098
push edx
push 0x403098
push eax
push str.End_Time:
push ecx
call edi
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______thiscall_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::operator___unsigned_short_int_]
push eax
call edi
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______thiscall_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::operator___unsigned_short_int_]
push eax
call edi
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______thiscall_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::operator___unsigned_short_int_]
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::endl_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int____]
add esp, 4
test ebx, ebx
jne 0x4015da
mov ecx, dword [esi + 0x360]
lea eax, [esi + 0x360]
test ecx, ecx
jne 0x4015e9
push 1
push eax
jmp 0x4015e3
lea edx, [esi + 0x360]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x14]
mov dword [esi + 0x364], ebx
mov byte [ebp - 4], 0
call fcn.0040187c
jmp 0x40160c
lea eax, [esi + 0x360]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [esi + 8], 0xffffffff
je 0x401649
mov ecx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
push str.Sleep...
push ecx
call edi
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::endl_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int____]
mov edx, dword [esi]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.Wake...
jmp 0x401386
mov edx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
push 0x403054
push edx
call edi
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::endl_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int____]
call sub.ETAutoMark.dll_void___cdecl_ETReleaseAutoMark2_void_
mov eax, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
push str.Calcu_End
push eax
call edi
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::endl_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int____]
add esp, 0x18
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.004017a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret