Function at 0x409cc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fc240
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52e028]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, ecx
xor edi, edi
mov dword [ebp + 0x7c], 0xffffff
cmp dword [ebp + 0x80], edi
je 0x409d06
mov dword [ebp + 0x80], edi
mov eax, dword [ebp + 0x20]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
cmp eax, edi
je 0x409d19
push 1
push edi
push eax
call esi
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x84], edi
cmp eax, edi
je 0x409d2c
push 1
push edi
push eax
call esi
mov ecx, ebp
call fcn.004ef336
lea eax, [ebp + 0x1938]
push eax
call fcn.004054b0
lea esi, [ebp + 0x163c]
mov dword [esp + 0x24], esi
cmp esi, edi
jne 0x409d51
xor eax, eax
jmp 0x409d54
mov eax, dword [esi + 0x20]
push 3
push 3
push eax
call dword [sym.imp.COMCTL32.dll_FlatSB_EnableScrollBar]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x409d93
mov eax, dword [ebp + 0x165c]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [ebp + 0x165c]
and eax, 0xffffdfff
push eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [ebp + 0x1800], edi
mov eax, 0x14
call fcn.00467b70
call fcn.00401340
cmp eax, edi
jne 0x409daa
xor eax, eax
jmp 0x409dad
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0x165c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x1003
push edx
call ebx
push eax
call fcn.004ef11a
push 0xffffffffffffffff
push 0x64
push edi
push 0x501108
push edi
mov ecx, esi
call fcn.004ef342
mov eax, dword [ebp + 0x165c]
push edi
push edi
push 0x1037
push eax
call ebx
mov ecx, dword [ebp + 0x165c]
or eax, 0x10400
push eax
push edi
push 0x1036
push ecx
call ebx
mov edx, dword [esi + 0x1b4]
sub edx, dword [esi + 0x1b0]
add esi, 0x1a4
sar edx, 2
test edx, edx
ja 0x409e26
mov eax, 1
mov ecx, esi
call fcn.00468050
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
test eax, eax
ja 0x409e39
call dword [0x4ff3d0]
mov ecx, dword [esi + 0xc]
mov dword [ecx], 0x10010
mov edx, dword [ebp + 0x1938]
mov eax, dword [edx + 4]
lea ecx, [ebp + 0x1938]
call eax
lea eax, [ebp + 0x15e8]
lea ebx, [ebp + 0xa4]
cmp eax, edi
jne 0x409e67
xor esi, esi
jmp 0x409e6a
mov esi, dword [eax + 0x20]
push str.3709001
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], esi
call fcn.0044a160
mov ecx, eax
call dword [0x4fff04]
push esi
mov esi, str.3709001
call fcn.00449bd0
push ebp
push 0x40a2e0
lea esi, [ebp + 0x1a50]
call fcn.0046ef50
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
call dword [0x4fff2c]
mov dword [esp + 0x50], edi
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edi
call dword [0x4fff2c]
mov byte [esp + 0x54], 1
lea edx, [esp + 0x2c]
push edx
call fcn.00409860
mov byte [esp + 0x58], 2
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
push ecx
mov edi, str.ResourcesQuickSearchimages_button_left3.png
call fcn.00407070
mov byte [esp + 0x60], 3
lea edx, [esp + 0x34]
push edx
call fcn.00409860
mov byte [esp + 0x64], 4
add esp, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
push ecx
mov edi, str.ResourcesQuickSearchimages_button_left2.png
call fcn.00407070
mov byte [esp + 0x64], 5
lea edx, [esp + 0x34]
push edx
call fcn.00409860
mov byte [esp + 0x68], 6
add esp, 8
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
push ecx
mov edi, str.ResourcesQuickSearchimages_button_left.png
call fcn.00407070
add esp, 8
mov byte [esp + 0x60], 7
lea esi, [ebp + 0xf08]
mov byte [esp + 0x60], 0xa
mov ecx, esi
call fcn.00461140
mov byte [esp + 0x48], 9
lea ecx, [esp + 0x18]
call dword [0x4fff34]
mov byte [esp + 0x48], 8
lea ecx, [esp + 0x1c]
call dword [0x4fff34]
or ebx, 0xffffffff
mov dword [esp + 0x48], ebx
lea ecx, [esp + 0x20]
call dword [0x4fff34]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0
call dword [0x4fff2c]
mov dword [esp + 0x50], 0xb
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0
call dword [0x4fff2c]
mov byte [esp + 0x54], 0xc
lea edx, [esp + 0x24]
push edx
call fcn.00409860
mov byte [esp + 0x58], 0xd
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
push ecx
mov edi, str.ResourcesQuickSearchimages_button_right3.png
call fcn.00407070
mov byte [esp + 0x60], 0xe
lea edx, [esp + 0x34]
push edx
call fcn.00409860
mov byte [esp + 0x64], 0xf
add esp, 8
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
push ecx
mov edi, str.ResourcesQuickSearchimages_button_right2.png
call fcn.00407070
mov byte [esp + 0x64], 0x10
lea edx, [esp + 0x3c]
push edx
call fcn.00409860
mov byte [esp + 0x68], 0x11
add esp, 8
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
push ecx
mov edi, str.ResourcesQuickSearchimages_button_right.png
call fcn.00407070
add esp, 8
mov byte [esp + 0x60], 0x12
lea edi, [ebp + 0x828]
mov dword [esp + 0x40], edi
mov byte [esp + 0x60], 0x15
mov ecx, edi
call fcn.00461140
mov byte [esp + 0x48], 0x14
lea ecx, [esp + 0x20]
call dword [0x4fff34]
mov byte [esp + 0x48], 0x13
lea ecx, [esp + 0x1c]
call dword [0x4fff34]
mov dword [esp + 0x48], ebx
lea ecx, [esp + 0x18]
call dword [0x4fff34]
mov ecx, dword [ebp + 0x20]
lea eax, [ebp + 0x148]
test eax, eax
je 0x40a07e
mov eax, dword [eax + 0x20]
push 0xfffffffffffffff8
push 2
push ecx
lea ebx, [ebp + 0x88]
push 2
call fcn.0046de90
mov ecx, dword [ebp + 0x20]
test esi, esi
jne 0x40a09b
xor eax, eax
jmp 0x40a09e
mov eax, dword [esi + 0x20]
push 8
push 1
push ecx
push 1
call fcn.0046de90
mov ebp, dword [ebp + 0x20]
test edi, edi
je 0x40a0b4
mov edi, dword [edi + 0x20]
push 0xfffffffffffffff8
push 2
push ebp
push 2
mov eax, edi
call fcn.0046de90
test esi, esi
je 0x40a0c9
mov esi, dword [esi + 0x20]
mov ebp, dword [esp + 0x24]
test ebp, ebp
jne 0x40a0d5
xor eax, eax
jmp 0x40a0d8
mov eax, dword [ebp + 0x20]
push 8
push 2
push esi
push 1
call fcn.0046de90
mov edx, dword [esp + 0x28]
mov eax, 8
push ebx
lea edi, [eax - 7]
mov ecx, ebp
call fcn.0046df90
push ebx
call fcn.0046e060
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret