Function at 0x407f20
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4553f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
mov eax, dword [esp + 0x25c]
push ebx
mov edx, dword [esp + 0x258]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x264]
push edi
lea ebp, [esi + 4]
push eax
push ecx
mov ecx, dword [esi + 0x3c]
mov eax, dword [ebp]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_CallWindowProcA]
xor ebx, ebx
lea edx, [esp + 0x6c]
mov dword [esp + 0x2c], eax
push ebx
mov ecx, 0x54
xor eax, eax
lea edi, [esp + 0x74]
push edx
mov dword [esp + 0x74], 0x154
push 0x154
rep stosd dword es:[edi], eax
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
cmp eax, ebx
je 0x40811e
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xa0]
lea edi, [esi + 0xa0]
cmp eax, ebx
je 0x407fcf
lea ecx, [esp + 0x30]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x10c]
cmp edx, eax
jne 0x4080c1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x110]
cmp eax, ecx
jne 0x4080c1
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x114]
cmp ecx, eax
jne 0x4080c1
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x118]
cmp edx, eax
jne 0x4080c1
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x11c]
cmp eax, ecx
jne 0x4080c1
mov cl, byte [esp + 0x44]
mov al, byte [esp + 0x120]
cmp cl, al
jne 0x4080c1
mov dl, byte [esp + 0x45]
mov al, byte [esp + 0x121]
cmp dl, al
jne 0x4080c1
mov al, byte [esp + 0x46]
mov cl, byte [esp + 0x122]
cmp al, cl
jne 0x4080c1
mov cl, byte [esp + 0x47]
mov al, byte [esp + 0x123]
cmp cl, al
jne 0x4080c1
mov dl, byte [esp + 0x48]
mov al, byte [esp + 0x124]
cmp dl, al
jne 0x4080c1
mov al, byte [esp + 0x49]
mov cl, byte [esp + 0x125]
cmp al, cl
jne 0x4080c1
mov cl, byte [esp + 0x4a]
mov al, byte [esp + 0x126]
cmp cl, al
jne 0x4080c1
mov dl, byte [esp + 0x4b]
mov al, byte [esp + 0x127]
cmp dl, al
jne 0x4080c1
lea eax, [esp + 0x128]
lea ecx, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40811e
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x40811e
cmp dword [edi], ebx
je 0x4080e6
mov ecx, edi
call fcn.00407f00
mov eax, dword [esp + 0x10]
push eax
mov ecx, edi
call fcn.0040b560
mov edi, dword [edi]
push 1
push edi
mov ecx, ebp
call fcn.00408490
mov eax, dword [ebp]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x4662a4
push ebx
push 0x41c
push eax
call edi
mov ecx, dword [ebp]
push ebx
push ebx
push 0x421
push ecx
call edi
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push edx
call fcn.00408440
mov eax, dword [esi + 0xa0]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x264], ebx
call edi
lea ecx, [esp + 0x1c]
push 0x424
push ecx
push 0xffffffffffffffff
push 0x4662a0
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.0040b540
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, 4
jge 0x4081ba
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea ecx, [esp + 0x1c]
push 0x424
push ecx
push 0xffffffffffffffff
push 0x46629c
lea ecx, [esp + 0x24]
call fcn.0040b540
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
sub edx, eax
mov dword [esi + 0xac], edx
jmp 0x4081c0
mov dword [esi + 0xac], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x1c4]
lea edx, [esp + 0x1c0]
mov dword [esp + 0x1c0], 0x94
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x1c4]
cmp eax, 5
jb 0x4082af
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x100a
mov dword [esp + 0x20], 1
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
cmp eax, ebx
je 0x408230
cmp dword [esp + 0x10], ebx
jne 0x408230
mov eax, 1
jmp 0x408232
xor eax, eax
mov cl, byte [esi + 0x81]
and al, 1
or al, 4
and cl, 0xfd
shl al, 1
or al, cl
mov ecx, esi
mov byte [esi + 0x81], al
not al
shr al, 1
and al, 1
push eax
call fcn.0040b240
mov eax, dword [esp + 0x1c4]
cmp eax, 5
jne 0x40826f
cmp dword [esp + 0x1c8], 1
jae 0x408271
jmp 0x4082af
jbe 0x4082af
lea edx, [esp + 0x10]
push ebx
push edx
push ebx
push 0x1022
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
cmp eax, ebx
je 0x408298
cmp dword [esp + 0x10], ebx
je 0x408298
mov ecx, 1
jmp 0x40829a
xor ecx, ecx
mov al, byte [esi + 0x81]
mov dl, al
xor dl, cl
and dl, 1
xor dl, al
mov byte [esi + 0x81], dl
lea ecx, [esp + 0x14]
mov dword [esp + 0x25c], 0xffffffff
call fcn.00408460
mov eax, dword [ebp]
mov ebp, dword [sym.imp.USER32.dll_GetParent]
push eax
call ebp
mov edi, eax
push edi
call ebp
cmp eax, ebx
je 0x4082e1
push eax
mov edi, eax
call ebp
cmp eax, ebx
jne 0x4082d8
lea ebp, [esi + 0x58]
push ebp
push 0x40b5b0
lea ebx, [ebp + 4]
mov ecx, ebx
call fcn.004084b0
push ebx
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
test eax, eax
je 0x408308
mov dword [ebp + 0x18], eax
mov dword [ebp], edi
mov ecx, dword [esi + 4]
lea ebp, [esi + 4]
push 0
push 0x14
push 0x41e
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, ebp
call fcn.0040a360
mov eax, dword [0x46c118]
add eax, 0x34
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x46c114]
test eax, eax
jne 0x408382
push 0xc
call fcn.00428524
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x25c], 1
je 0x40836c
mov ecx, eax
call fcn.00406840
jmp 0x40836e
xor eax, eax
test eax, eax
mov dword [esp + 0x25c], 0xffffffff
mov dword [0x46c114], eax
je 0x4083ec
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x46c114]
mov ebx, eax
push ebx
call fcn.0040b500
xor edi, edi
cmp eax, edi
jne 0x4083e9
push 8
call fcn.00428524
add esp, 4
cmp eax, edi
je 0x4083b1
mov dword [eax], edi
mov dword [eax + 4], edi
mov edi, eax
mov ecx, dword [0x46c118]
push ebx
mov eax, dword [ecx + 4]
push eax
push 0x40a5d0
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test edi, edi
je 0x4083ec
test eax, eax
je 0x4083ec
mov dword [edi], eax
mov dword [edi + 4], 1
mov ecx, dword [0x46c114]
push edi
push ebx
call fcn.0040b3a0
jmp 0x4083ec
inc dword [eax + 4]
mov edx, dword [0x46c118]
add edx, 0x34
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov cl, byte [esi + 0x81]
pop edi
shr eax, 0x16
and al, 1
and cl, 0xbf
shl al, 6
or al, cl
mov ecx, dword [esp + 0x250]
mov byte [esi + 0x81], al
mov eax, dword [esp + 0x28]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x250
ret 0x10