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

Disassembly:
push ebp
push edi
mov edi, ecx
xor ecx, ecx
push esi
mov esi, eax
push ebx
sub esp, 0xcc
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x24], edx
mov ebx, dword [esp + 0xe0]
mov edx, dword [eax + 0x20]
mov eax, dword [esp + 0xe4]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x3c], edx
test al, 1
sete cl
lea ecx, [eax + ecx + 5]
add eax, 4
mov ebp, eax
mov dword [esp + 0x44], eax
mov eax, edx
imul eax, ebp
lea ebp, [eax + 6]
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x30], ebp
mov eax, dword [eax + 0x18]
mov edx, eax
and edx, 1
lea edx, [eax + edx + 0x14]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x24]
sub edx, ebx
mov eax, edx
sub eax, ecx
lea edx, [eax - 7]
cmp ebp, edx
jge 0x65ff70
lea edx, [ebx + ecx]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x24], edx
mov ebp, esi
lea eax, [esi + esi*2]
cmp ebp, eax
jle 0x65fb40
mov eax, dword [sym.imp.libpcaewin.dll_NPIXEL_Y]
mov edx, dword [esp + 0x44]
mov eax, dword [eax]
sub eax, ebx
sub eax, edx
sub eax, 0xa
cdq
idiv dword [esp + 0x44]
cmp esi, eax
jl 0x660018
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0xff
call dword [sym.imp.libpcaewin.dll_Nearest_Color_Index]
mov dword [esp], eax
call dword [sym.imp.libpcaewin.dll_pxFgc]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0x75e970
lea ecx, [eax + edi]
lea eax, [ebx + 0xf]
add ebx, 4
lea edx, [ecx - 0xe]
mov dword [esp + 0xc], eax
lea eax, [ecx - 4]
mov dword [esp + 0x5c], edx
mov dword [esp + 4], ebx
mov dword [esp], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 8], eax
call dword [sym.imp.libpcaewin.dll_pxMask]
mov eax, dword [esp + 0xe4]
mov edx, dword [esp + 0x3c]
mov eax, dword [eax + 0x24]
mov ebx, dword [eax]
mov dword [esp + 0x48], ebx
cmp edx, esi
jle 0x65ff48
fnstcw word [esp + 0x7e]
mov eax, dword [esp + 0x30]
mov ebp, edx
lea ecx, [eax - 0x20]
mov eax, esi
imul eax, ecx
cdq
idiv ebp
mov edx, 6
mov ebp, edx
cmp eax, edx
mov edx, esi
cmovge ebp, eax
mov eax, dword [esp + 0x3c]
shr edx, 0x1f
add edx, esi
sub eax, esi
sub ecx, ebp
sar edx, 1
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
mov ecx, ebx
sub ebx, edx
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
mov edx, 0
cmovs ebx, edx
fdivp st(1)
cmp ebx, eax
cmovg ebx, eax
movzx eax, word [esp + 0x7e]
mov dword [esp + 0x38], ebx
or ah, 0xc
sub ecx, ebx
mov word [esp + 0x7c], ax
mov dword [esp + 0x4c], ecx
fst qword [esp + 0x50]
fild dword [esp + 0x38]
fmulp st(1)
fadd dword [0x7ae4b4]
fldcw word [esp + 0x7c]
fistp dword [esp + 0x38]
fldcw word [esp + 0x7e]
lea eax, [esp + 0x8c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x88]
mov dword [esp + 8], eax
lea eax, [esp + 0x84]
mov dword [esp + 4], eax
lea eax, [esp + 0x80]
mov dword [esp], eax
call dword [sym.imp.libpcaewin.dll_pxQVwp]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov dword [esp], edi
mov eax, dword [esp + 0x24]
mov dword [esp + 8], edx
mov edx, dword [sym.imp.libpcaewin.dll_pxView]
lea ecx, [ebp + eax]
mov dword [esp + 4], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x58], edx
call edx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov dword [esp], edi
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dword [sym.imp.libpcaewin.dll_Save_Screen_Rectangle]
call dword [sym.imp.libpcaewin.dll_Save_Mouse_Position]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov dword [esp], edi
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dword [sym.imp.libpcaewin.dll_Pop_Mouse_Move_Restriction]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
imul eax, edx
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x44]
mov eax, ecx
shr eax, 0x1f
add eax, ecx
sar eax, 1
add eax, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
add eax, edi
mov dword [esp], eax
call dword [sym.imp.libpcaewin.dll_msStCu]
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0x24]
mov dword [esp], ebp
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, edi
call fcn.0065edb0
lea eax, [esp + 0x90]
mov dword [esp], eax
call dword [sym.imp.libpcaewin.dll_InitDTEMessage]
mov ebp, dword [esp + 0xe4]
lea esi, [esi]
nop
lea eax, [esp + 0x90]
mov dword [esp], 0x14022
mov dword [esp + 4], eax
call dword [sym.imp.libpcaewin.dll_GetDTEMessage]
test eax, 0x10000
jne 0x65fef8
mov eax, dword [sym.imp.libpcaewin.dll_M_XPOS]
mov edx, dword [eax]
cmp dword [esp + 0x2c], edx
jle 0x65fde0
cmp edi, edx
jge 0x65fde0
mov eax, dword [sym.imp.libpcaewin.dll_M_YPOS]
mov eax, dword [eax]
cmp dword [esp + 0x40], eax
jle 0x65fde0
cmp dword [esp + 0x24], eax
jl 0x65ff98
lea esi, [esi]
nop
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov dword [esp], eax
mov edx, dword [esp + 0x28]
mov eax, edi
call fcn.0065edb0
mov eax, dword [sym.imp.libpcaewin.dll_M_LEFT]
mov dword [esp + 0x4c], eax
mov eax, dword [eax]
test eax, eax
je 0x65fd90
mov eax, dword [sym.imp.libpcaewin.dll_M_XPOS]
mov dword [esp + 0xe4], ebp
mov edx, dword [eax]
cmp dword [esp + 0x2c], edx
jl 0x65fe49
cmp edi, edx
jle 0x660257
mov ebx, 1
mov dword [esp + 0x28], ebx
mov esi, dword [sym.imp.libpcaewin.dll_Get_Mouse_Event]
mov ebp, dword [esp + 0xe4]
mov ebx, dword [esp + 0x4c]
lea esi, [esi]
nop
call esi
mov eax, dword [ebx]
test eax, eax
jne 0x65fe68
mov ebx, dword [esp + 0x28]
mov dword [esp + 0xe4], ebp
test ebx, ebx
je 0x65ff30
lea esi, [esi]
nop
xor ebx, ebx
call dword [sym.imp.libpcaewin.dll_Push_Mouse_Move_Restriction]
call dword [sym.imp.libpcaewin.dll_Restore_Mouse_Position]
mov eax, dword [esp + 0x40]
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call dword [sym.imp.libpcaewin.dll_Restore_Screen_Rectangle]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
call eax
add esp, 0xcc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.libpcaewin.dll_getkey]
mov eax, dword [esp + 0xa4]
cmp eax, 0x148
je 0x660120
cmp eax, 0x150
je 0x660080
mov dword [esp + 0xe4], ebp
cmp eax, 0xd
jne 0x65fe88
mov ebx, 1
mov eax, dword [esp + 0xe4]
mov esi, dword [esp + 0x48]
mov eax, dword [eax + 0x24]
mov dword [eax], esi
jmp 0x65fe8a
fldz
mov dword [esp + 0x4c], ebx
xor ebx, ebx
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
fstp qword [esp + 0x50]
jmp 0x65fc4e
mov edx, ebx
sub edx, esi
lea esi, [edx - 0xf]
cmp ebp, esi
jge 0x660048
mov esi, dword [esp + 0x3c]
mov eax, ebx
sub eax, ebp
mov dword [esp + 0x24], eax
mov ebp, esi
jmp 0x65fb1a
mov ecx, dword [sym.imp.libpcaewin.dll_M_SCROLL]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x660130
cmp dword [esp + 0x5c], edx
jg 0x65ffba
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x660276
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
mov dword [esp + 0xc], esi
sub eax, ecx
mov dword [esp + 8], ebx
sub eax, 2
cdq
idiv dword [esp + 0x44]
lea edx, [eax + ebx]
xor eax, eax
test edx, edx
cmovns eax, edx
mov edx, eax
mov eax, dword [esp + 0x3c]
sub eax, 1
cmp dword [esp + 0x3c], edx
cmovg eax, edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], edx
mov dword [esp], eax
jmp 0x65fe0f
mov edx, ebp
mov esi, eax
shr edx, 0x1f
add edx, ebp
sar edx, 1
cmp edx, eax
mov eax, dword [esp + 0x44]
cmovle esi, edx
imul eax, esi
add eax, 6
mov dword [esp + 0x30], eax
lea eax, [ebx + ecx]
mov dword [esp + 0x24], eax
jmp 0x65fb40
lea esi, [edx - 8]
cmp eax, esi
jl 0x6601e0
mov ebp, dword [esp + 0x44]
sub eax, 0x19
cdq
idiv ebp
mov esi, eax
mov eax, ebp
mov ebp, dword [esp + 0x3c]
imul eax, esi
add eax, 6
mov dword [esp + 0x30], eax
lea eax, [ebx + ecx]
mov dword [esp + 0x24], eax
jmp 0x65fb1a
mov eax, dword [esp + 0x48]
add eax, 1
fnstcw word [esp + 0x7e]
xor edx, edx
test eax, eax
mov dword [esp + 0x18], ebp
cmovns edx, eax
mov dword [esp + 0xc], esi
mov ecx, edx
mov edx, dword [esp + 0x3c]
cmp edx, ecx
lea eax, [edx - 1]
cmovg eax, ecx
mov ecx, eax
mov dword [esp + 0x48], eax
lea eax, [esi + ebx]
cmp eax, ecx
mov dword [esp + 4], ecx
setle al
movzx eax, al
add ebx, eax
xor eax, eax
cmp ecx, ebx
setl al
sub ebx, eax
mov eax, 0
cmovns eax, ebx
mov ebx, edx
sub ebx, esi
cmp eax, ebx
cmovle ebx, eax
movzx eax, word [esp + 0x7e]
mov dword [esp + 0x38], ebx
or ah, 0xc
fild dword [esp + 0x38]
fmul qword [esp + 0x50]
fadd dword [0x7ae4b4]
mov word [esp + 0x7c], ax
mov dword [esp + 8], ebx
fldcw word [esp + 0x7c]
fistp dword [esp + 0x38]
fldcw word [esp + 0x7e]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
jmp 0x65fe04
mov eax, dword [esp + 0x48]
sub eax, 1
jmp 0x660087
mov eax, dword [esp + 0x34]
test eax, eax
je 0x6601c1
test ecx, ecx
js 0x660209
mov dword [esp + 0x38], 0
test ebx, ebx
je 0x660187
fnstcw word [esp + 0x7e]
sub ebx, 1
sub dword [esp + 0x48], 1
mov dword [esp + 0x38], ebx
fild dword [esp + 0x38]
movzx eax, word [esp + 0x7e]
fmul qword [esp + 0x50]
fadd dword [0x7ae4b4]
or ah, 0xc
mov word [esp + 0x7c], ax
fldcw word [esp + 0x7c]
fistp dword [esp + 0x38]
fldcw word [esp + 0x7e]
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, edi
call fcn.0065edb0
mov eax, dword [sym.imp.libpcaewin.dll_M_SCROLL]
mov dword [eax], 0
mov eax, dword [sym.imp.libpcaewin.dll_M_LEFT]
mov dword [esp + 0x4c], eax
mov eax, dword [eax]
jmp 0x65fe25
mov ebp, dword [esp + 0x44]
lea eax, [edx - 0x21]
cdq
idiv ebp
mov edx, ebx
mov esi, eax
mov eax, ebp
mov ebp, dword [esp + 0x3c]
imul eax, esi
add eax, 6
sub edx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], edx
jmp 0x65fb1a
mov eax, dword [esp + 0x3c]
sub eax, esi
cmp ebx, eax
jge 0x66021b
add dword [esp + 0x48], 1
add ebx, 1
fnstcw word [esp + 0x7e]
mov dword [esp + 0x38], ebx
fild dword [esp + 0x38]
fmul qword [esp + 0x50]
fadd dword [0x7ae4b4]
mov dword [esp + 0x18], ebp
movzx eax, word [esp + 0x7e]
or ah, 0xc
mov word [esp + 0x7c], ax
fldcw word [esp + 0x7c]
fistp dword [esp + 0x38]
fldcw word [esp + 0x7e]
mov eax, dword [esp + 0x38]
jmp 0x66018f
mov eax, dword [sym.imp.libpcaewin.dll_M_YPOS]
mov eax, dword [eax]
cmp dword [esp + 0x40], eax
setl bl
cmp dword [esp + 0x24], eax
setg al
or ebx, eax
movzx ebx, bl
jmp 0x65fe4e
mov ecx, dword [sym.imp.libpcaewin.dll_M_LEFT]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x65fd90
mov ecx, dword [esp + 0x2c]
sub ecx, 3
cmp edx, ecx
jge 0x66033c
mov ecx, dword [esp + 0x24]
lea edx, [ecx + 0xe]
cmp eax, edx
jle 0x6603fd
mov ecx, dword [esp + 0x40]
lea edx, [ecx - 0xe]
cmp eax, edx
jl 0x6602be
lea edx, [ecx - 3]
cmp eax, edx
jl 0x6605b3
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
lea edx, [ecx + edx + 0x10]
cmp eax, edx
jge 0x660348
sub dword [esp + 0x48], ebx
mov eax, dword [esp + 0x48]
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x28]
mov dword [esp], eax
mov eax, edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0xc], esi
call fcn.0065edb0
mov eax, dword [esp + 0x4c]
mov ebx, dword [eax]
test ebx, ebx
je 0x66032f
mov eax, dword [sym.imp.libpcaewin.dll_Get_Mouse_Event]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
call eax
mov eax, dword [esp + 0x4c]
mov ebx, dword [eax]
test ebx, ebx
jne 0x66031f
mov dword [esp + 0x38], 0
jmp 0x65fd90
mov dword [esp + 0xe4], ebp
jmp 0x65fe3b
mov ecx, dword [esp + 0x34]
add edx, ecx
cmp eax, edx
jle 0x66067c
fnstcw word [esp + 0x7e]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], ebp
sub ecx, esi
mov eax, ecx
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
sub eax, ebx
fmul qword [esp + 0x50]
add dword [esp + 0x48], eax
movzx eax, word [esp + 0x7e]
fadd dword [0x7ae4b4]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x64], ecx
or ah, 0xc
mov ecx, dword [esp + 0x24]
mov word [esp + 0x7c], ax
fldcw word [esp + 0x7c]
fistp dword [esp + 0x38]
fldcw word [esp + 0x7e]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, edi
call fcn.0065edb0
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
test ecx, ecx
je 0x6603f4
mov eax, dword [sym.imp.libpcaewin.dll_Get_Mouse_Event]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
call eax
mov eax, dword [esp + 0x4c]
mov edx, dword [eax]
test edx, edx
jne 0x6603e4
mov ebx, dword [esp + 0x64]
jmp 0x65fd90
mov eax, dword [sym.imp.libpcaewin.dll_DTESleep]
mov dword [esp + 0x64], eax
mov eax, dword [sym.imp.libpcaewin.dll_Get_Mouse_Event]
mov dword [esp + 0x60], eax
mov eax, edi
mov edi, esi
mov esi, eax
jmp 0x6604ac
fnstcw word [esp + 0x7e]
sub ebx, 1
sub dword [esp + 0x48], 1
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], ebx
fild dword [esp + 0x38]
movzx edx, word [esp + 0x7e]
fmul qword [esp + 0x50]
mov dword [esp + 4], eax
fadd dword [0x7ae4b4]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], ebp
or dh, 0xc
mov dword [esp + 0xc], edi
mov word [esp + 0x7c], dx
mov edx, dword [esp + 0x28]
fldcw word [esp + 0x7c]
fistp dword [esp + 0x38]
fldcw word [esp + 0x7e]
mov dword [esp], eax
mov eax, esi
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x24]
call fcn.0065edb0
mov eax, dword [esp + 0x64]
mov dword [esp], 0x64
call eax
mov eax, dword [esp + 0x60]
call eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x6605a8
test ebx, ebx
jne 0x66041a
mov eax, esi
mov esi, edi
mov edi, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, edi
call fcn.0065edb0
mov eax, dword [esp + 0x64]
mov dword [esp], 0x64
call eax
mov eax, dword [esp + 0x60]
call eax
mov eax, dword [esp + 0x4c]
mov ebx, dword [eax]
test ebx, ebx
jne 0x6604ba
jmp 0x66032f
fnstcw word [esp + 0x7e]
add ebx, 1
add dword [esp + 0x48], 1
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], ebx
fild dword [esp + 0x38]
movzx edx, word [esp + 0x7e]
fmul qword [esp + 0x50]
mov dword [esp + 4], eax
fadd dword [0x7ae4b4]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], ebp
or dh, 0xc
mov dword [esp + 0xc], edi
mov word [esp + 0x7c], dx
mov edx, dword [esp + 0x28]
fldcw word [esp + 0x7c]
fistp dword [esp + 0x38]
fldcw word [esp + 0x7e]
mov dword [esp], eax
mov eax, esi
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x24]
call fcn.0065edb0
mov eax, dword [esp + 0x64]
mov dword [esp], 0x64
call eax
mov eax, dword [esp + 0x60]
call eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
jne 0x6605d1
mov eax, esi
mov esi, edi
mov edi, eax
jmp 0x65fd90
mov eax, dword [esp + 0x3c]
sub eax, esi
xchg edi, esi
mov dword [esp + 0x70], eax
mov eax, dword [sym.imp.libpcaewin.dll_DTESleep]
mov dword [esp + 0x64], eax
mov eax, dword [sym.imp.libpcaewin.dll_Get_Mouse_Event]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x70]
cmp ebx, eax
jl 0x66051a
fnstcw word [esp + 0x7e]
mov dword [esp + 0x38], ebx
fild dword [esp + 0x38]
xchg esi, edi
fmul qword [esp + 0x50]
fadd dword [0x7ae4b4]
mov dword [esp + 0x18], ebp
movzx eax, word [esp + 0x7e]
or ah, 0xc
mov word [esp + 0x7c], ax
fldcw word [esp + 0x7c]
fistp dword [esp + 0x38]
fldcw word [esp + 0x7e]
mov eax, dword [esp + 0x38]
jmp 0x660628
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, edi
call fcn.0065edb0
mov eax, dword [esp + 0x64]
mov dword [esp], 0x64
call eax
mov eax, dword [esp + 0x60]
call eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
jne 0x660620
jmp 0x65fd90
fld qword [esp + 0x50]
fdivr dword [0x7ae4b8]
mov dword [esp + 0x70], edi
mov edi, eax
mov edx, dword [sym.imp.libpcaewin.dll_Get_Mouse_Event]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x64], ecx
mov ecx, ebx
sub edx, esi
mov dword [esp + 0x74], edx
fstp qword [esp + 0x68]
mov eax, dword [sym.imp.libpcaewin.dll_M_YPOS]
mov eax, dword [eax]
cmp edi, eax
je 0x66078b
fnstcw word [esp + 0x7e]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x18], ebp
mov dword [esp + 0xc], esi
add eax, ebx
sub eax, edi
mov dword [esp + 0x64], eax
movzx eax, word [esp + 0x7e]
fild dword [esp + 0x64]
fld dword [0x7ae4b4]
or ah, 0xc
mov word [esp + 0x7c], ax
xor eax, eax
fsub st(1), st(0)
fxch st(1)
fmul qword [esp + 0x68]
fldcw word [esp + 0x7c]
fistp dword [esp + 0x64]
fldcw word [esp + 0x7e]
mov ebx, dword [esp + 0x64]
test ebx, ebx
cmovs ebx, eax
mov eax, dword [esp + 0x74]
cmp ebx, eax
cmovg ebx, eax
mov dword [esp + 0x64], ebx
fild dword [esp + 0x64]
mov eax, ebx
fmul qword [esp + 0x50]
sub eax, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ebx
add dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
faddp st(1)
fldcw word [esp + 0x7c]
fistp dword [esp + 0x64]
fldcw word [esp + 0x7e]
mov dword [esp], eax
mov edx, dword [esp + 0x64]
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x70]
call fcn.0065edb0
mov eax, dword [esp + 0x60]
call eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x6607a7
mov eax, dword [sym.imp.libpcaewin.dll_M_YPOS]
mov ecx, ebx
mov eax, dword [eax]
cmp edi, eax
jne 0x6606bd
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x60]
call eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
test ecx, ecx
mov ecx, dword [esp + 0x78]
jne 0x6606ae
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x38], eax
jmp 0x65fd90