Function at 0x491c20
Capabilities:
Check os version

Disassembly:
sub esp, 0x25c
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x258], eax
mov edx, dword [0x657b6c]
mov eax, dword [esp + 0x260]
mov ecx, dword [esp + 0x264]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49251c
mov eax, dword [0x657b6c]
push ebp
push esi
push edi
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [0x657b6c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0x80000
push 0x80000
push 0x1036
push ecx
mov esi, eax
call ebp
test esi, 0x100
mov dword [esp + 0x58], eax
je 0x491cd5
call fcn.00491530
shr eax, 0x10
cmp eax, 5
jbe 0x491cc1
mov edx, dword [0x657b68]
xor esi, esi
push esi
push 0x7071
push 0x111
push edx
call ebp
jmp 0x491cd7
mov eax, dword [0x657b68]
push 0
push 0x7051
push 0x111
push eax
call ebp
xor esi, esi
mov edx, dword [0x657b6c]
lea ecx, [esp + 0x54]
push ecx
push edx
mov dword [esp + 0x5c], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x54]
push eax
push esi
push 0x38
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x3c], edi
je 0x492506
push ebx
push esi
lea ecx, [esp + 0x48]
push ecx
xor eax, eax
push esi
push 0x30
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [0x657b6c]
push esi
push esi
push 0x1033
push edx
call ebp
mov ecx, dword [esp + 0x34]
mov edx, dword [0x657b6c]
mov ebx, eax
movzx eax, ax
push ecx
push edx
shr ebx, 0x10
mov dword [esp + 0x5c], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.004916f0
cmp eax, 0xffffffff
mov dword [esp + 0x34], eax
je 0x4924fe
mov edx, dword [0x657b6c]
lea ecx, [esp + 0x38]
push ecx
push eax
push edx
call fcn.004918d0
test al, al
je 0x4924fe
push 0x206
lea eax, [esp + 0x66]
push esi
push eax
mov dword [esp + 0x24], esi
mov word [esp + 0x6c], si
call fcn.004afb50
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, esi
je 0x491f14
cmp word [eax], si
je 0x491f14
mov ecx, dword [0x657b6c]
push eax
push ecx
call fcn.004916f0
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x491f14
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [0x657b6c]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.00491850
test al, al
je 0x491f14
mov edx, dword [esp + 0x2c]
mov eax, dword [0x657b6c]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.004918d0
test al, al
je 0x491f14
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x54]
lea edx, [eax + ecx]
cmp dword [esp + 0x10], edx
jae 0x491f14
mov ecx, dword [esp + 0x20]
lea edx, [ecx + ebx*2]
cmp edx, dword [esp + 0x50]
jae 0x491e4f
add dword [esp + 0x14], ebx
push ebx
push esi
lea eax, [esp + 0x24]
push eax
jmp 0x491e5a
add dword [esp + 0x10], eax
push esi
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
mov dword [esp + 0x2c], eax
lea eax, [edx + ecx]
mov ecx, dword [0x657b6c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.004917d0
mov esi, eax
cmp esi, 0xffffffff
je 0x491ebe
movzx edx, word [esp + 0x50]
movzx eax, word [esp + 0x4c]
mov ecx, dword [0x657b6c]
shl edx, 0x10
or edx, eax
push edx
push esi
push 0x100f
push ecx
call ebp
movzx edx, word [esp + 0x14]
movzx eax, word [esp + 0x10]
mov ecx, dword [esp + 0x34]
shl edx, 0x10
or edx, eax
push edx
mov edx, dword [0x657b6c]
push ecx
push 0x100f
push edx
call ebp
cmp esi, 0xffffffff
mov dword [esp + 0x18], eax
je 0x491f09
movzx eax, word [esp + 0x3c]
movzx ecx, word [esp + 0x38]
mov edx, dword [0x657b6c]
shl eax, 0x10
or eax, ecx
push eax
push esi
push 0x100f
push edx
call ebp
cmp dword [esp + 0x18], 0
jne 0x4924fc
lea esi, [esp + 0x60]
mov ecx, 0xa
call fcn.00491640
test al, al
je 0x492088
mov ecx, dword [0x657b6c]
mov eax, esi
push eax
push ecx
call fcn.004916f0
mov esi, eax
cmp esi, 0xffffffff
je 0x492088
xor eax, eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [0x657b6c]
push esi
push eax
call fcn.00491850
test al, al
je 0x492088
mov edx, dword [0x657b6c]
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
call fcn.004918d0
test al, al
je 0x492088
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x54]
add ecx, eax
cmp dword [esp + 0x10], ecx
jae 0x492088
mov edx, dword [esp + 0x20]
lea eax, [edx + ebx*2]
cmp eax, dword [esp + 0x50]
jae 0x491fc0
add dword [esp + 0x14], ebx
push ebx
push 0
lea ecx, [esp + 0x24]
push ecx
jmp 0x491fd0
sub dword [esp + 0x14], ebx
mov edx, ebx
neg edx
push edx
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x28]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov eax, dword [0x657b6c]
push edx
push eax
call fcn.004917d0
mov esi, eax
cmp esi, 0xffffffff
je 0x492032
movzx ecx, word [esp + 0x50]
movzx edx, word [esp + 0x4c]
mov eax, dword [0x657b6c]
shl ecx, 0x10
or ecx, edx
push ecx
push esi
push 0x100f
push eax
call ebp
movzx ecx, word [esp + 0x14]
movzx edx, word [esp + 0x10]
mov eax, dword [esp + 0x34]
shl ecx, 0x10
or ecx, edx
push ecx
mov ecx, dword [0x657b6c]
push eax
push 0x100f
push ecx
call ebp
cmp esi, 0xffffffff
mov dword [esp + 0x18], eax
je 0x49207d
movzx edx, word [esp + 0x3c]
movzx eax, word [esp + 0x38]
mov ecx, dword [0x657b6c]
shl edx, 0x10
or edx, eax
push edx
push esi
push 0x100f
push ecx
call ebp
cmp dword [esp + 0x18], 0
jne 0x4924fc
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx dx, ah
mov dh, al
cmp dx, 0x600
ja 0x49215d
lea esi, [esp + 0x60]
mov ecx, 1
call fcn.00491640
test al, al
je 0x49215d
mov ecx, dword [0x657b6c]
mov eax, esi
push eax
push ecx
call fcn.004916f0
mov esi, eax
cmp esi, 0xffffffff
je 0x49215d
xor eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [0x657b6c]
push esi
push eax
call fcn.004918d0
test al, al
je 0x49215d
movzx ecx, word [esp + 0x50]
movzx edx, word [esp + 0x4c]
mov eax, dword [0x657b6c]
shl ecx, 0x10
or ecx, edx
push ecx
push esi
push 0x100f
push eax
call ebp
movzx ecx, word [esp + 0x14]
movzx edx, word [esp + 0x10]
mov eax, dword [esp + 0x34]
shl ecx, 0x10
or ecx, edx
push ecx
mov ecx, dword [0x657b6c]
push eax
push 0x100f
push ecx
call ebp
movzx edx, word [esp + 0x3c]
mov ecx, dword [0x657b6c]
mov dword [esp + 0x18], eax
movzx eax, word [esp + 0x38]
shl edx, 0x10
or edx, eax
push edx
push esi
push 0x100f
push ecx
call ebp
cmp dword [esp + 0x18], 0
jne 0x4924fc
lea esi, [esp + 0x60]
mov ecx, 0xa
call fcn.00491640
test al, al
je 0x4922b5
mov eax, dword [0x657b6c]
mov edx, esi
push edx
push eax
call fcn.004916f0
mov esi, eax
cmp esi, 0xffffffff
je 0x4922b5
mov edx, dword [0x657b6c]
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push esi
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call fcn.00491850
test al, al
je 0x4922b5
mov ecx, dword [0x657b6c]
lea eax, [esp + 0x10]
push eax
push esi
push ecx
call fcn.004918d0
test al, al
je 0x4922b5
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x44]
add edx, eax
cmp dword [esp + 0x10], edx
jae 0x4922b5
sub dword [esp + 0x14], ebx
mov ecx, ebx
neg ecx
push ecx
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
add eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
add eax, edx
cdq
sub eax, edx
mov edx, dword [0x657b6c]
lea ecx, [esp + 0x2c]
push ecx
sar eax, 1
push edx
mov dword [esp + 0x38], eax
call fcn.004917d0
mov esi, eax
cmp esi, 0xffffffff
je 0x492261
movzx eax, word [esp + 0x50]
movzx ecx, word [esp + 0x4c]
mov edx, dword [0x657b6c]
shl eax, 0x10
or eax, ecx
push eax
push esi
push 0x100f
push edx
call ebp
movzx eax, word [esp + 0x14]
movzx ecx, word [esp + 0x10]
mov edx, dword [esp + 0x34]
shl eax, 0x10
or eax, ecx
push eax
mov eax, dword [0x657b6c]
push edx
push 0x100f
push eax
call ebp
cmp esi, 0xffffffff
mov dword [esp + 0x18], eax
je 0x4922aa
movzx ecx, word [esp + 0x3c]
movzx edx, word [esp + 0x38]
mov eax, dword [0x657b6c]
shl ecx, 0x10
or ecx, edx
push ecx
push esi
push 0x100f
push eax
call ebp
cmp dword [esp + 0x18], 0
jne 0x4924fc
mov eax, dword [esp + 0x54]
shr eax, 1
add eax, dword [esp + 0x44]
xor ebp, ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
lea esp, [esp]
cmp ebp, dword [esp + 0x50]
jge 0x492442
mov edx, dword [0x657b6c]
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.004917d0
mov esi, eax
cmp esi, 0xffffffff
je 0x49242b
mov ecx, dword [0x657b6c]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
call fcn.00491850
test al, al
je 0x49242b
mov eax, dword [0x657b6c]
lea edx, [esp + 0x10]
push edx
push esi
push eax
call fcn.004918d0
test al, al
je 0x49242b
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
lea esi, [ebx*4]
push esi
push 0
lea ecx, [esp + 0x24]
push ecx
call edi
mov edx, dword [esp + 0x20]
add dword [esp + 0x14], esi
add ebp, esi
lea eax, [edx + ebx*2]
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x30], ebp
jbe 0x4923a1
mov esi, ebx
neg esi
lea esp, [esp]
push esi
push 0
lea ecx, [esp + 0x24]
push ecx
call edi
mov edx, dword [esp + 0x20]
sub dword [esp + 0x14], ebx
lea eax, [edx + ebx*2]
sub ebp, ebx
cmp eax, dword [esp + 0x50]
ja 0x492380
mov dword [esp + 0x30], ebp
mov edx, dword [0x657b6c]
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.004917d0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4923e2
movzx eax, word [esp + 0x50]
movzx ecx, word [esp + 0x4c]
mov edx, dword [0x657b6c]
shl eax, 0x10
or eax, ecx
push eax
push esi
push 0x100f
push edx
call edi
movzx eax, word [esp + 0x14]
movzx ecx, word [esp + 0x10]
mov edx, dword [esp + 0x34]
shl eax, 0x10
or eax, ecx
push eax
mov eax, dword [0x657b6c]
push edx
push 0x100f
push eax
call edi
cmp esi, 0xffffffff
mov dword [esp + 0x18], eax
je 0x49242b
movzx ecx, word [esp + 0x3c]
movzx edx, word [esp + 0x38]
mov eax, dword [0x657b6c]
shl ecx, 0x10
or ecx, edx
push ecx
push esi
push 0x100f
push eax
call edi
add ebp, 1
cmp dword [esp + 0x18], 0
mov dword [esp + 0x30], ebp
je 0x4922d0
jmp 0x4924f2
cmp dword [esp + 0x18], 0
jne 0x4924f2
mov ecx, dword [0x657b6c]
mov edi, dword [esp + 0x40]
push str.Internet_Explorer
push ecx
call fcn.004916f0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4924f2
xor eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [0x657b6c]
push ebx
push eax
call fcn.004918d0
test al, al
je 0x4924f2
movzx ecx, word [esp + 0x50]
movzx edx, word [esp + 0x4c]
mov eax, dword [0x657b6c]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
shl ecx, 0x10
or ecx, edx
push ecx
push ebx
push 0x100f
push eax
call esi
movzx ecx, word [esp + 0x14]
movzx edx, word [esp + 0x10]
mov eax, dword [esp + 0x34]
shl ecx, 0x10
or ecx, edx
push ecx
mov ecx, dword [0x657b6c]
push eax
push 0x100f
push ecx
call esi
movzx edx, word [esp + 0x3c]
movzx eax, word [esp + 0x38]
mov ecx, dword [0x657b6c]
shl edx, 0x10
or edx, eax
push edx
push ebx
push 0x100f
push ecx
call esi
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esp + 0x40]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov edx, dword [esp + 0x58]
mov eax, dword [0x657b6c]
push edx
push esi
push 0x1036
push eax
call ebp
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004aeca3
add esp, 0x25c
ret