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

Disassembly:
push 0xffffffffffffffff
push 0x45f91c
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 0x40cf3f
cmp dword [0x4913cc], ebx
jne 0x40cf3f
cmp dword [0x4913d0], ebx
jne 0x40cf3f
push 4
call fcn.0045cf9e
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
mov dword [esp + 0x98], ebx
mov edi, dword [0x469150]
je 0x40ce28
push str.timeGetTime
lea ecx, [esp + 0x40]
call dword [0x469efc]
mov byte [esp + 0x98], 1
push str.winmm.dll
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 1
call dword [0x469efc]
push 1
push 0
push 0x40d070
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 0x40ce2a
xor eax, eax
test bl, 2
mov dword [0x4913cc], eax
mov dword [esp + 0x98], 3
je 0x40ce50
and ebx, 0xfffffffd
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebx
call dword [0x469f00]
test bl, 1
mov dword [esp + 0x98], 0xffffffff
je 0x40ce6d
lea ecx, [esp + 0x3c]
and ebx, 0xfffffffe
call dword [0x469f00]
mov ecx, dword [0x4913cc]
mov ebp, dword [0x469148]
call ebp
push 4
call fcn.0045cf9e
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
mov dword [esp + 0x98], 5
je 0x40cef5
push str.GetTickCount
lea ecx, [esp + 0x78]
call dword [0x469efc]
mov byte [esp + 0x98], 6
or ebx, 4
push str.kernel32.dll
lea ecx, [esp + 0x5c]
mov dword [esp + 0x18], ebx
call dword [0x469efc]
push 1
push 0
push 0x40d1b0
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 0x40cef7
xor eax, eax
test bl, 8
mov dword [0x4913d0], eax
mov dword [esp + 0x98], 8
je 0x40cf1d
and ebx, 0xfffffff7
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], ebx
call dword [0x469f00]
test bl, 4
mov dword [esp + 0x98], 0xffffffff
je 0x40cf37
lea ecx, [esp + 0x74]
call dword [0x469f00]
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 0x40d025
fcomp dword [esp + 0xac]
fnstsw ax
test ah, 0x44
jnp 0x40d027
mov ebx, dword [esp + 0xa0]
mov esi, dword [0x469680]
push 0x4ea
mov ecx, ebx
call esi
mov edi, dword [0x46a16c]
push eax
call edi
push 0x4eb
mov ecx, ebx
call esi
push eax
call edi
fld dword [esp + 0xac]
fmul qword [0x473ed0]
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 [0x46a174]
jmp 0x40d052
fstp st(0)
mov ebx, dword [esp + 0xa0]
mov esi, dword [0x469680]
push 0x4ea
mov ecx, ebx
call esi
mov edi, dword [0x46a16c]
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