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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x6340c4]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
push edi
mov esi, ecx
mov edi, esi
mov dword [esp + 0x5c], esi
neg edi
push 0xfffffffffffffff0
lea eax, [esi - 0x64]
sbb edi, edi
and edi, eax
mov dword [esp + 0x14], edi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x49896d
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
je 0x49896d
mov ecx, dword [esi + 0x18]
cmp ecx, 0xffffffff
je 0x49896d
mov edx, dword [ebp + 8]
cmp edx, eax
cmovl edx, eax
mov eax, dword [ebp + 0xc]
cmp eax, ecx
mov dword [esp + 0x3c], edx
cmovl eax, ecx
mov dword [esp + 0x40], eax
jmp 0x49897b
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x3c], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [esp + 0x6c], eax
test eax, eax
je 0x49899b
push 0
push 0
push 0xb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 4]
xor ecx, ecx
mov dword [esp + 0x44], ecx
test eax, eax
jle 0x498fd3
nop dword [eax]
test ecx, ecx
js 0x499011
cmp ecx, eax
jge 0x499011
mov edi, dword [esi]
lea edx, [ecx + ecx*2]
shl edx, 3
add edi, edx
mov dword [esp + 0x60], edx
mov eax, dword [edi + 4]
test eax, 0x1000
je 0x498e83
movups xmm0, xmmword [edi + 8]
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x64], eax
cmp eax, 1
movups xmmword [esp + 0x70], xmm0
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x48], 1
mov dword [esp + 0x18], eax
jbe 0x498a8e
mov edx, dword [esp + 0x70]
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x74]
add edi, 0x24
nop
test esi, esi
js 0x499011
mov eax, dword [esp + 0x5c]
cmp esi, dword [eax + 4]
jge 0x499011
cmp edx, dword [edi - 4]
cmovge edx, dword [edi - 4]
cmp ecx, dword [edi]
mov dword [esp + 0x20], edx
cmovge ecx, dword [edi]
mov edx, dword [esp + 0x18]
cmp edx, dword [edi + 4]
mov dword [esp + 0x4c], ecx
cmovle edx, dword [edi + 4]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x14]
cmp edx, dword [edi + 8]
cmovle edx, dword [edi + 8]
inc esi
mov eax, edx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
add edi, 0x18
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
inc eax
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0x64]
jl 0x498a20
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
jmp 0x498a9e
mov eax, dword [esp + 0x74]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x64]
xor ecx, ecx
mov dword [esp + 0x68], ecx
test edi, edi
je 0x498e77
mov eax, dword [esp + 0x44]
mov dword [esp + 0x48], eax
nop dword [eax + eax]
mov dword [esp + 0x54], 0
test ecx, ecx
je 0x498aed
add eax, 0xffffffff
js 0x499011
cmp eax, dword [esi + 4]
jge 0x499011
mov eax, dword [esi]
add eax, 0xffffffe8
add eax, edx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x10]
lea ecx, [edi + 0x64]
test edx, edx
js 0x499011
cmp eax, dword [esi + 4]
jge 0x499011
mov esi, dword [esi]
xor eax, eax
add esi, edx
xorps xmm0, xmm0
test ecx, ecx
mov dword [esp + 0x38], esi
movaps xmmword [esp + 0x70], xmm0
cmovne eax, edi
push dword [esi]
mov dword [esp + 0x54], eax
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [esp + 0x70]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x498e4a
push 2
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x58]
push dword [eax + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [esi + 4]
test dl, 0x20
je 0x498b98
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 8]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
sub eax, dword [esi + 0x70]
sub eax, ecx
sub eax, dword [esp + 0x20]
add eax, dword [esp + 0x3c]
mov eax, eax
test eax, eax
jns 0x498b83
add eax, 1
sar eax, 1
add eax, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x70], eax
add eax, ecx
jmp 0x498cae
test dl, 5
je 0x498cb2
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, ecx
push eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
sub eax, dword [edx + 0x70]
sub eax, ecx
add eax, dword [esp + 0x40]
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x20]
add eax, ecx
mov edx, dword [esi + 4]
mov dword [esp + 0x70], eax
test dl, 1
je 0x498ca8
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push dword [esp + 0x58]
sub eax, dword [edx + 0x70]
sub eax, ecx
add eax, dword [esp + 0x40]
push eax
mov eax, dword [esi + 0x10]
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
add eax, dword [esp + 0x20]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x498ca3
push dword [eax]
mov eax, dword [esp + 0x54]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x80]
movaps xmmword [esp + 0x80], xmm0
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x84]
push eax
mov eax, dword [esp + 0x58]
push dword [eax + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x84]
push 0x16
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x3c]
sub edx, dword [eax + 8]
mov eax, dword [esp + 0x90]
add edx, dword [esp + 0x74]
sub eax, ecx
push eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x90], edx
sub edx, eax
push edx
push ecx
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [esp + 0x38]
mov edx, dword [esi + 4]
jmp 0x498cb2
sub eax, dword [esi + 8]
add eax, dword [esi + 0x10]
mov dword [esp + 0x78], eax
test dl, 0x40
je 0x498cf0
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0xc]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
sub eax, dword [esi + 0x74]
sub eax, ecx
sub eax, dword [esp + 0x4c]
add eax, dword [esp + 0x40]
mov eax, eax
test eax, eax
jns 0x498cdb
add eax, 1
sar eax, 1
add eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x74], eax
add eax, ecx
jmp 0x498e08
test dl, 0xa
je 0x498e0c
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
sub eax, ecx
push eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
sub eax, dword [edx + 0x74]
sub eax, ecx
add eax, dword [esp + 0x44]
push eax
mov eax, dword [esi + 0xc]
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x4c]
add eax, ecx
mov edx, dword [esi + 4]
mov dword [esp + 0x74], eax
test dl, 2
je 0x498e02
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push dword [esp + 0x58]
sub eax, dword [edx + 0x74]
sub eax, ecx
add eax, dword [esp + 0x44]
push eax
mov eax, dword [esi + 0x14]
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
add eax, dword [esp + 0x4c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x498dfd
push dword [eax]
mov eax, dword [esp + 0x54]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x90]
movaps xmmword [esp + 0x90], xmm0
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x94]
push eax
mov eax, dword [esp + 0x58]
push dword [eax + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x94]
push 0x16
mov ecx, dword [eax + 0x14]
mov eax, dword [esp + 0x3c]
sub ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x78]
add eax, ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0xa0], eax
sub eax, edx
push eax
mov eax, dword [esp + 0xa0]
sub eax, ecx
push eax
push edx
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [esp + 0x38]
mov edx, dword [esi + 4]
jmp 0x498e0c
sub eax, dword [esi + 0xc]
add eax, dword [esi + 0x14]
mov dword [esp + 0x7c], eax
test dl, 0x10
je 0x498e1f
push 1
push 0
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi + 4]
test dl, 0x7f
je 0x498e4a
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x74]
sub eax, edx
mov ecx, dword [esp + 0x70]
push 0x14
push eax
mov eax, dword [esp + 0x80]
sub eax, ecx
push eax
push edx
push ecx
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x48]
inc ecx
mov edx, dword [esp + 0x60]
inc eax
mov edi, dword [esp + 0x64]
add edx, 0x18
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], edx
cmp ecx, edi
jl 0x498ac0
mov ecx, dword [esp + 0x44]
dec ecx
add ecx, edi
jmp 0x498fbb
mov edx, dword [esp + 0x10]
xor eax, eax
push dword [edi]
xorps xmm0, xmm0
movaps xmmword [esp + 0x74], xmm0
lea ecx, [edx + 0x64]
test ecx, ecx
cmovne eax, edx
mov dword [esp + 0x5c], eax
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [esp + 0x70]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x498fb7
push 2
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x60]
push dword [eax + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [edi + 4]
test cl, 0x20
je 0x498efc
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 8]
mov eax, dword [esp + 0x3c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x70], eax
add eax, ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x78], eax
jmp 0x498f28
test cl, 5
je 0x498f28
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x10]
sub eax, dword [edx + 0x70]
add eax, dword [esp + 0x3c]
mov edx, dword [edi + 0x10]
mov dword [esp + 0x78], eax
test cl, 4
je 0x498f28
mov eax, dword [edi + 8]
sub eax, edx
add eax, dword [esp + 0x78]
mov dword [esp + 0x70], eax
test cl, 0x40
je 0x498f4d
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x40]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x74], eax
add eax, ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x7c], eax
jmp 0x498f79
test cl, 0xa
je 0x498f79
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x14]
sub eax, dword [edx + 0x74]
add eax, dword [esp + 0x40]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x7c], eax
test cl, 8
je 0x498f79
mov eax, dword [edi + 0xc]
sub eax, edx
add eax, dword [esp + 0x7c]
mov dword [esp + 0x74], eax
test cl, 0x10
je 0x498f8c
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [edi + 4]
test cl, 0x7f
je 0x498fb7
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x74]
sub eax, edx
mov ecx, dword [esp + 0x70]
push 0x14
push eax
mov eax, dword [esp + 0x80]
sub eax, ecx
push eax
push edx
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x5c]
inc ecx
mov dword [esp + 0x44], ecx
mov eax, dword [esi + 4]
cmp ecx, eax
jl 0x4989b0
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x6c], 0
je 0x498fe9
push 0
push 1
push 0xb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x185
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_RedrawWindow]
mov ecx, dword [esp + 0xac]
pop edi
pop esi
xor ecx, esp
call fcn.004c59c5
mov esp, ebp
pop ebp
ret 8
push 1
push 0xc000008c
call fcn.00443000
int3