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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59022b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea esi, [edi + 0x630]
mov eax, 8
mov ecx, esi
mov dword [ebp - 0x24], edi
mov word [ebp - 0x74], ax
mov word [ebp - 0x64], ax
call sub.MFC42.DLL_CString::AllocSysString
lea ebx, [edi + 0x634]
mov dword [ebp - 0x6c], eax
mov ecx, ebx
mov dword [ebp - 0x18], ebx
call sub.MFC42.DLL_CString::AllocSysString
mov dword [ebp - 0x5c], eax
mov eax, dword [0x5ec004]
cmp eax, 4
jl 0x4e5ef6
mov al, byte [0x603d39]
test al, 1
jne 0x4e5b2c
or al, 1
mov byte [0x603d39], al
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
mov dword [0x603d3c], eax
mov eax, dword [0x603d3c]
test eax, eax
je 0x4e5f5d
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 - 0x44]
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 - 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_]
lea ecx, [ebp - 0x54]
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 - 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 eax, [ebp - 0x11]
push eax
push 9
push 0
lea ecx, [ebp - 0x34]
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 ecx, [ebp - 0x188]
push eax
push ecx
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 - 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 edx, dword [ebp - 0x20]
lea eax, [ebp - 0x188]
push edx
push eax
call esi
add esp, 8
mov dword [ebp - 0x18c], 0x5aa328
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 5
push ecx
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 edx, [ebp - 0x34]
lea ecx, [ebp - 0x188]
push edx
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]
mov ebx, dword [ebp - 0x18]
cmp dword [0x5ec004], 4
jl 0x4e5ef6
mov al, byte [0x603d39]
test al, 1
jne 0x4e5cf3
or al, 1
mov byte [0x603d39], al
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
mov dword [0x603d3c], eax
mov eax, dword [0x603d3c]
test eax, eax
je 0x4e5ef6
mov ecx, dword [ebx]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbtable]
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0xfc]
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xfc], eax
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0x18], 1
push 0
push 1
lea ecx, [ebp - 0xf8]
push 0
push ecx
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 edx, dword [ebp - 0xfc]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vftable]
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0xfc], ecx
mov dword [ebp - 0x100], 0x5aa32c
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x100]
push edx
mov byte [ebp - 4], 8
call fcn.004ba4f0
mov ebx, eax
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
lea eax, [ebp - 0xfc]
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 - 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 ecx, [ebp - 0x54]
push 4
push ecx
call fcn.004ba680
add esp, 8
mov edi, eax
mov byte [ebp - 4], 0xa
push 0x5ebff8
lea edx, [ebp - 0xfc]
push edx
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_]
mov al, byte [ebp - 0x11]
push 0
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x44], al
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 - 0xfc]
push ecx
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 [ebp - 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
lea ecx, [ebp - 0x64]
lea esi, [edi + 0x4e4]
lea edx, [ebp - 0x74]
push ecx
push edx
mov ecx, esi
mov dword [ebp - 0x18], eax
call fcn.004afb10
mov al, byte [edi + 0x550]
test al, al
jne 0x4e5fcc
call fcn.004ba7f0
mov ecx, esi
call fcn.004afad0
movsx eax, ax
cmp eax, 9
ja case.default.0x4e5f40
xor ecx, ecx
mov cl, byte [eax + 0x4e6010]
jmp dword [ecx*4 + 0x4e6004]
call ebx
mov edx, dword [ebp - 0x18]
push ecx
sub eax, edx
mov ecx, esp
cmp eax, 0xbb8
jbe 0x4e5f68
mov dword [ebp - 0x1c], esp
jmp 0x4e5fd9
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 0x4e5cc9
mov dword [ebp - 0x1c], esp
push 0x5fd02c
call sub.MFC42.DLL_CString::CString_4
push 1
push 2
mov ecx, edi
call fcn.004be280
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4e5f16
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x5fd02c
call sub.MFC42.DLL_CString::CString_4
push 1
push 3
mov ecx, edi
call fcn.004be280
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
jmp 0x4e5fd9
push ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x5fd02c
call sub.MFC42.DLL_CString::CString_4
push 1
push 4
mov ecx, edi
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