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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x4e51f0]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
push esi
push edi
mov byte [eax], 0
mov eax, dword [ecx + 0x54]
mov dword [esp + 0xc], ecx
cmp eax, dword [ecx + 0x58]
je 0x48936c
mov eax, dword [ecx + 0x60]
cmp eax, dword [ecx + 0x64]
je 0x48936c
mov esi, dword [ecx + 0x54]
lea eax, [esp + 0x30]
mov edi, dword [ecx + 0x58]
xorps xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
push eax
mov ecx, dword [esi]
call fcn.004879e0
mov ecx, dword [esp + 0xc]
movdqu xmm0, xmmword [eax]
cmp byte [ecx + 0x50], 0
movd eax, xmm0
movdqa xmmword [esp + 0x50], xmm0
psrldq xmm0, 4
movd ecx, xmm0
cmove eax, ecx
add esi, 4
mov dword [esp + 0x10], eax
cmp esi, edi
je 0x489128
mov ecx, dword [esi]
lea eax, [esp + 0x30]
push eax
call fcn.004879e0
movdqu xmm0, xmmword [eax]
mov eax, dword [esp + 0xc]
movdqu xmmword [esp + 0x50], xmm0
cmp byte [eax + 0x50], 0
jne 0x489110
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x10], eax
jge 0x489121
jmp 0x48911d
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x50]
cmovl eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
add esi, 4
cmp esi, edi
jne 0x4890e4
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 0x60]
mov edi, dword [eax + 0x64]
lea eax, [esp + 0x30]
push eax
mov ecx, dword [esi]
call fcn.004879e0
mov dword [esp + 0x18], 0
movdqu xmm1, xmmword [eax]
mov eax, dword [esp + 0xc]
movdqa xmm0, xmm1
movdqa xmmword [esp + 0x50], xmm1
psrldq xmm0, 8
cmp byte [eax + 0x50], 0
psrldq xmm1, 0xc
movd eax, xmm1
movd ecx, xmm0
cmove ecx, eax
add esi, 4
mov eax, edi
mov dword [esp + 0x14], ecx
sub eax, esi
xor ecx, ecx
add eax, 3
shr eax, 2
cmp esi, edi
cmova eax, ecx
mov dword [esp + 0x4c], eax
test eax, eax
je 0x489258
mov edi, dword [esi]
lea eax, [esp + 0x6c]
push eax
xorps xmm0, xmm0
movdqu xmmword [esp + 0x70], xmm0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0xfffffffffffffff8
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esp + 0x6c]
mov edi, eax
lea eax, [esp + 0x28]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x70]
push eax
push edi
mov dword [esp + 0x34], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push edi
mov dword [esp + 0x28], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
movdqa xmm0, xmmword [esp + 0x30]
cmp byte [eax + 0x50], 0
movdqa xmmword [esp + 0x50], xmm0
jne 0x489235
cmp dword [esp + 0x14], ecx
jle 0x489242
mov dword [esp + 0x14], ecx
jmp 0x489242
mov eax, dword [esp + 0x14]
cmp eax, edx
cmovg eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
add esi, 4
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x4c]
jne 0x489195
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.00488f80
cmp byte [esi + 0x50], 0
mov edi, dword [esp + 0x1c]
movdqu xmm0, xmmword [eax]
movdqu xmmword [esp + 0x50], xmm0
jne 0x489286
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
jmp 0x48928e
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
sub eax, ecx
mov dword [edi + 8], ecx
mov dword [edi + 4], eax
mov eax, dword [esi + 0x54]
push 0xfffffffffffffff8
mov eax, dword [eax]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov dword [edi + 0x14], 0
cmp byte [esi + 0x50], 0
jne 0x4892c9
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
jmp 0x4892d1
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
add ecx, 0x10
mov eax, dword [esp + 0x14]
sub eax, dword [edi + 4]
add eax, 0xffffffef
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
cmp ecx, eax
jg 0x48936c
mov ecx, dword [esi + 8]
cmp ecx, dword [esi + 0xc]
jg 0x48931a
mov dword [esi + 0x1c], 0
mov al, 1
mov byte [edi], 1
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0048cca9
mov esp, ebp
pop ebp
ret 4
cmp ecx, dword [esi + 0x10]
jl 0x48933e
mov dword [esi + 0x1c], 0x186a0
mov al, 1
mov byte [edi], 1
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0048cca9
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x14]
push eax
push ecx
push 0x186a0
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esi + 0x1c], eax
mov al, 1
mov byte [edi], 1
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0048cca9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x7c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0048cca9
mov esp, ebp
pop ebp
ret 4