Function at 0x4c3cb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d5ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
lea esi, [edi + 0x63c]
mov eax, 8
push esi
lea ecx, [edi + 0x360]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov word [ebp - 0x74], ax
mov word [ebp - 0x64], ax
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov ecx, esi
call sub.MFC42.DLL_CString::AllocSysString
add edi, 0x640
mov dword [ebp - 0x6c], eax
mov ecx, edi
mov dword [ebp - 0x24], edi
call sub.MFC42.DLL_CString::AllocSysString
mov dword [ebp - 0x5c], eax
mov eax, dword [0x5ec004]
cmp eax, 4
jl 0x4c410e
mov al, byte [0x603d39]
test al, 1
jne 0x4c3d48
or al, 1
mov byte [0x603d39], al
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
mov dword [0x603d3c], eax
cmp dword [0x603d3c], ebx
je 0x4c4185
mov ecx, dword [esi]
push 1
mov dword [ebp - 0x20], ecx
push 2
lea ecx, [ebp - 0x188]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov dword [ebp - 0x18c], 0x5aa32c
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x18c]
push edx
mov byte [ebp - 4], 1
call fcn.004ba4f0
mov ebx, eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
mov edi, eax
lea eax, [ebp - 0x188]
push 0x5ec000
push eax
call esi
add esp, 8
mov ecx, eax
push edi
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___unsigned_long_int_]
push 0x5e2b64
push eax
call esi
add esp, 8
push 0x5ec000
push eax
call esi
add esp, 8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, edi
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___unsigned_long_int_]
push 0x5e2b64
push eax
call esi
add esp, 8
push ebx
push eax
call sub.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 8
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [ebp - 0x34]
push 4
push ecx
call fcn.004ba680
add esp, 8
mov edi, eax
lea edx, [ebp - 0x188]
push 0x5ebff8
push edx
mov byte [ebp - 4], 3
call esi
add esp, 8
push edi
push eax
call sub.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 8
push 0x5ebffc
push eax
call esi
add esp, 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp - 0x15]
push 0
mov byte [ebp - 0x44], al
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 9
push 0
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_unsigned_int__char_]
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x188]
push ecx
push edx
mov byte [ebp - 4], 4
call sub.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 8
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x188]
push eax
push ecx
call esi
add esp, 8
mov dword [ebp - 0x18c], 0x5aa328
lea edx, [ebp - 0x188]
mov byte [ebp - 4], 5
push edx
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
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x188]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
push eax
call fcn.004b0df0
add esp, 4
lea ecx, [ebp - 0x34]
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov edi, dword [ebp - 0x24]
cmp dword [0x5ec004], 4
jl 0x4c410e
mov al, byte [0x603d39]
test al, 1
jne 0x4c3f1d
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
or al, 1
add ecx, 0x40
mov byte [0x603d39], al
mov dword [0x603d3c], ecx
mov eax, dword [0x603d3c]
test eax, eax
je 0x4c410e
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbtable]
mov edx, dword [edi]
lea eax, [ebp - 0xfc]
mov dword [ebp - 0xfc], ecx
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0x24], 1
push 0
push 1
lea edx, [ebp - 0xf8]
push 0
push edx
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool__bool_]
push 2
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 7
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov eax, dword [ebp - 0xfc]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vftable]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - 0xfc], edx
mov dword [ebp - 0x100], 0x5aa32c
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x100]
push eax
mov byte [ebp - 4], 8
call fcn.004ba4f0
mov ebx, eax
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0xfc]
push 0x5ec000
push ecx
mov edi, eax
call esi
add esp, 8
mov ecx, eax
push edi
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___unsigned_long_int_]
push 0x5e2b64
push eax
call esi
add esp, 8
push 0x5ec000
push eax
call esi
add esp, 8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, edi
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___unsigned_long_int_]
push 0x5e2b64
push eax
call esi
add esp, 8
push ebx
push eax
call sub.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [ebp - 0x54]
push 4
push edx
call fcn.004ba680
add esp, 8
mov edi, eax
mov byte [ebp - 4], 0xa
push 0x5ebff8
lea eax, [ebp - 0xfc]
push eax
call esi
add esp, 8
push edi
push eax
call sub.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 8
push 0x5ebffc
push eax
call esi
add esp, 8
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 8
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [ebp - 0x15]
push ecx
push 9
push 0
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_int__char__class_std::allocator_char__const__]
lea edx, [ebp - 0xfc]
push eax
push edx
mov byte [ebp - 4], 0xb
call sub.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 8
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0xfc]
push eax
push ecx
call esi
add esp, 8
mov dword [ebp - 0x100], 0x5aa328
lea edx, [ebp - 0xfc]
mov byte [ebp - 4], 0xc
push edx
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
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0xfc]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
push eax
call fcn.004b0df0
add esp, 4
lea ecx, [ebp - 0x34]
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x74]
push ecx
mov byte [esi + 0x7e8], 1
mov byte [esi + 0x7e9], 0
add esi, 0x3a0
push edx
mov ecx, esi
mov ebx, eax
call fcn.004afb10
mov eax, dword [ebp - 0x14]
mov cl, byte [eax + 0x550]
test cl, cl
jne 0x4c4233
call fcn.004ba7f0
mov ecx, esi
call fcn.004afad0
movsx eax, ax
cmp eax, 9
ja case.default.0x4c416b
xor ecx, ecx
mov cl, byte [eax + 0x4c4280]
jmp dword [ecx*4 + 0x4c4274]
call edi
sub eax, ebx
push ecx
cmp eax, 0xbb8
mov ecx, esp
jbe 0x4c4190
mov dword [ebp - 0x1c], esp
jmp 0x4c41fb
mov esi, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
jmp 0x4c3ef1
mov dword [ebp - 0x1c], esp
push 0x5fd02c
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [ebp - 0x14]
push 1
push 2
call fcn.004be280
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4c413e
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x5fd02c
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [ebp - 0x14]
push 1
push 3
mov ecx, esi
call fcn.004be280
mov byte [esi + 0x7e8], 0
mov byte [esi + 0x7e9], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x5fd02c
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [ebp - 0x14]
push 1
push 4
mov ecx, esi
call fcn.004be280
mov byte [esi + 0x7e8], 0
xor al, al
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 [ebp - 0x14]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x5fd02c
mov dword [ebp - 4], 0xffffffff
mov byte [edx + 0x7e8], 0
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [ebp - 0x14]
push 1
push 4
call fcn.004be280
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret