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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb8
push ebx
push edi
mov edi, eax
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x1213b57
mov ecx, dword [esi + 0x38]
xor eax, eax
lea edx, [esp + 0x38]
push edx
push eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x10]
push 0x407
push eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 0x200
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x1c], 0
test bl, 8
je 0x1213b6c
mov dword [esp + 0x1c], 2
test bl, 4
je 0x1213b76
or dword [esp + 0x1c], 1
test bl, 0x20
je 0x1213b80
or dword [esp + 0x1c], 4
mov al, byte [ebp + 8]
xor ebx, ebx
test al, 1
je 0x1213b8e
mov ebx, 1
test al, 0x10
je 0x1213b95
or ebx, 4
test al, 2
je 0x1213b9c
or ebx, 2
movsx ecx, di
shr edi, 0x10
cmp byte [esi + 5], 0
movsx edx, di
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
mov edi, 0x2715
mov dword [esp + 0x64], 1
jne 0x1213cab
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x38]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esi + 0x64]
mov eax, dword [esp + 0x30]
sub ecx, dword [esi + 0x5c]
test eax, eax
js 0x1213cab
cmp eax, ecx
jge 0x1213cab
mov eax, dword [esp + 0x34]
test eax, eax
js 0x1213cab
mov edx, dword [esi + 0x68]
sub edx, dword [esi + 0x60]
cmp eax, edx
jge 0x1213cab
imul eax, ecx
add eax, dword [esp + 0x30]
mov ecx, dword [esi + 0xe0]
cmp byte [ecx + eax*4 + 3], 0
setne al
test al, al
je 0x1213cab
fild dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0xd4]
xor eax, eax
fdiv qword [esi + 0x18]
mov edi, 0x2717
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x3c], eax
mov byte [esi + 5], 1
mov dword [esp + 0x38], edi
mov dword [esp + 0x58], ebx
lea edx, [esp + 0x38]
push edx
fstp qword [esp + 0x44]
fild dword [esp + 0x24]
fdiv qword [esi + 0x18]
fstp qword [esp + 0x4c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x60]
call eax
mov ecx, dword [esi + 0x38]
push ecx
mov dword [esp + 0x68], eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x1213cab
mov edx, dword [esi + 0x38]
push eax
push 0xc8
push 0x10003
push edx
call dword [sym.imp.USER32.dll_SetTimer]
fild dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x94], ecx
fst qword [esp + 0x68]
mov ecx, dword [esi + 0xd4]
fdiv qword [esi + 0x18]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x90], ebx
lea eax, [esp + 0x70]
push eax
fstp qword [esp + 0x7c]
fild dword [esp + 0x24]
fst qword [esp + 0x3c]
fdiv qword [esi + 0x18]
fstp qword [esp + 0x84]
mov edx, dword [ecx]
mov edx, dword [edx + 0x60]
call edx
xor edi, edi
mov dword [esp + 0x30], eax
cmp eax, edi
jne 0x1213f1b
test bl, 1
je 0x1213f1b
cmp byte [esi + 8], 0
je 0x1213f1b
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub ecx, dword [esi + 0x54]
sub edx, dword [esi + 0x58]
cmp byte [esi + 9], 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
jne 0x1213dfc
cmp ecx, 2
jg 0x1213d61
cmp edx, 2
jg 0x1213d61
cmp ecx, 0xfffffffe
jl 0x1213d61
cmp edx, 0xfffffffe
jge 0x1213dfc
fld qword [esp + 0x68]
mov eax, dword [esp + 0x1c]
fdiv qword [esi + 0x18]
mov ecx, dword [esi + 0xd4]
mov dword [esp + 0xbc], eax
mov byte [esi + 9], 1
mov dword [esp + 0x98], 0x2712
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x9c], edi
lea eax, [esp + 0x98]
push eax
fstp qword [esp + 0xa4]
fld qword [esp + 0x3c]
fdiv qword [esi + 0x18]
fstp qword [esp + 0xac]
mov edx, dword [ecx]
mov edx, dword [edx + 0x60]
call edx
mov eax, esi
call fcn.012145a0
cmp byte [esi + 0xa], 0
mov ecx, dword [esi + 0xd0]
je 0x1213dec
mov edx, dword [esi + 0xd8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x54]
push edx
push ebx
call eax
jmp 0x1213df4
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
push ebx
call eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
cmp byte [esi + 0xa], 0
je 0x1213f01
mov eax, dword [esi + 0x64]
mov ebx, dword [esi + 0x60]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x68]
mov dword [esp + 0x44], eax
movzx eax, byte [esi + 0x6d]
imul eax, edx
add ebx, eax
movzx eax, byte [esi + 0x6e]
imul eax, edx
mov edx, dword [esp + 0x44]
mov edi, dword [esi + 0x5c]
add edx, eax
movzx eax, byte [esi + 0x6c]
imul eax, ecx
add edi, eax
movzx eax, byte [esi + 0x6f]
imul eax, ecx
mov ecx, dword [esi + 0xd4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x20]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
sub eax, edi
mov dword [esp + 0x20], eax
sub edx, ebx
fild dword [esp + 0x20]
mov dword [esp + 0x20], edx
fstp qword [esp + 0x28]
fild dword [esp + 0x20]
fstp qword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
fld qword [esp + 0x28]
fucompp
fnstsw ax
test ah, 0x44
jp 0x1213ea4
mov ecx, dword [esi + 0xd4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
fld qword [esp + 0x20]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x1213ede
mov ecx, dword [esi + 0xd4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x78]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
call edx
test al, al
je 0x1213ede
mov ecx, dword [esi + 0xd4]
fld qword [esp + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x38]
fstp qword [esp]
call edx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], ecx
mov ecx, dword [esi + 0xd0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
jmp 0x1213f1b
add dword [esi + 0x5c], ecx
add dword [esi + 0x64], ecx
add dword [esi + 0x60], edx
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
mov edi, dword [esi + 0x20]
add dword [esi + 0x68], edx
call fcn.01215500
mov ecx, dword [esi + 0x38]
push ecx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1213f61
mov edx, dword [esi + 0x38]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x40], 2
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x44], edx
call dword [sym.imp.USER32.dll_TrackMouseEvent]
cmp dword [esp + 0x30], 0
jne 0x1213f79
cmp dword [esp + 0x64], 0
jne 0x1213f79
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4