Function at 0x40cd30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45faac
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49001c]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
fld1
fcomp dword [esp + 0xa4]
fnstsw ax
test ah, 0x44
jnp 0x40cf1f
cmp dword [0x4913cc], ebx
jne 0x40cf1f
cmp dword [0x4913d0], ebx
jne 0x40cf1f
push 4
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
mov dword [esp + 0x98], ebx
mov edi, dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMAPIHook::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___int____stdcall___void___bool__bool_]
je 0x40ce08
push str.timeGetTime
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x98], 1
push str.winmm.dll
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 1
push 0
push 0x40d050
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0xac], 2
mov ebx, 3
mov ecx, esi
mov dword [esp + 0x28], ebx
call edi
jmp 0x40ce0a
xor eax, eax
test bl, 2
mov dword [0x4913cc], eax
mov dword [esp + 0x98], 3
je 0x40ce30
and ebx, 0xfffffffd
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test bl, 1
mov dword [esp + 0x98], 0xffffffff
je 0x40ce4d
lea ecx, [esp + 0x3c]
and ebx, 0xfffffffe
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [0x4913cc]
mov ebp, dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMAPIHook::Hook_void_]
call ebp
push 4
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
mov dword [esp + 0x98], 5
je 0x40ced5
push 0x46b424
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x98], 6
or ebx, 4
push str.kernel32.dll
lea ecx, [esp + 0x5c]
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 1
push 0
push 0x40d190
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x68]
or ebx, 8
mov dword [esp + 0xa8], 7
push eax
mov ecx, esi
mov dword [esp + 0x28], ebx
call edi
jmp 0x40ced7
xor eax, eax
test bl, 8
mov dword [0x4913d0], eax
mov dword [esp + 0x98], 8
je 0x40cefd
and ebx, 0xfffffff7
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test bl, 4
mov dword [esp + 0x98], 0xffffffff
je 0x40cf17
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [0x4913d0]
call ebp
fld dword [esp + 0xa4]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa4]
fstp dword [0x4913b8]
fldz
mov edx, dword [esp + 0xa8]
fcom dword [esp + 0xb0]
mov dword [0x4902a4], eax
mov eax, dword [esp + 0xb8]
mov dword [0x4902b0], eax
mov dword [0x49029c], ecx
mov ecx, dword [esp + 0xb0]
fnstsw ax
mov dword [0x4902a0], edx
mov edx, dword [esp + 0xb4]
test ah, 0x44
mov dword [0x4902a8], ecx
mov dword [0x4902ac], edx
jnp 0x40d005
fcomp dword [esp + 0xac]
fnstsw ax
test ah, 0x44
jnp 0x40d007
mov ebx, dword [esp + 0xa0]
mov esi, dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push 0x4ea
mov ecx, ebx
call esi
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push eax
call edi
push 0x4eb
mov ecx, ebx
call esi
push eax
call edi
fld dword [esp + 0xac]
fmul qword [0x473eb8]
push 0
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp qword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
push ecx
push 0x4ea
mov ecx, ebx
fldcw word [esp + 0x20]
call esi
push eax
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40d032
fstp st(0)
mov ebx, dword [esp + 0xa0]
mov esi, dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push 0x4ea
mov ecx, ebx
call esi
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push eax
call edi
push 0x4eb
mov ecx, ebx
call esi
push eax
call edi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x1c