Function at 0x408656
Capabilities:
Check os version
Create thread

Disassembly:
mov eax, 0x45f9f7
call fcn.0043c274
sub esp, 0x19c
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x47e404], esi
mov edi, ecx
jne 0x408682
cmp byte [0x47e409], 0
je 0x40898e
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1a8], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, edi
call fcn.00408a23
and byte [ebp - 0xd], 0
cmp dword [ebp - 0x1a4], 5
ja 0x4086b7
jne 0x4086c4
cmp dword [ebp - 0x1a0], esi
jbe 0x4086c4
cmp dword [ebp - 0x198], 2
jne 0x4086c4
mov byte [ebp - 0xd], 1
cmp byte [0x47e409], 0
je 0x4088ec
cmp byte [0x47e280], 0
mov esi, 0x4767e0
mov ebx, 0x4675e8
jne 0x4086ed
cmp byte [0x47ec98], 0
je 0x408757
lea eax, [ebp - 0xe]
push 1
push eax
push esi
lea ecx, [ebp - 0x6c]
call fcn.0040a47f
and dword [ebp - 4], 0
mov eax, 0x476b1c
mov ecx, eax
mov dword [ebp - 0x44], 0x4675f0
test ecx, ecx
mov dword [ebp - 0x24], ebx
jne 0x40871a
mov eax, 0x47e390
lea ecx, [ebp - 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b1f1
lea eax, [ebp - 0x6c]
push 0x334
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.0045d780
and byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0040604e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0040604e
cmp dword [ebp - 0x1a4], 6
jb 0x408764
and byte [ebp - 0xd], 0
mov ecx, edi
call fcn.0040a1fe
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40898e
cmp byte [ebp - 0xd], 0
je 0x408832
cmp byte [0x47e280], 0
jne 0x408792
cmp byte [0x47ec98], 0
je 0x4087ff
lea eax, [ebp - 0xf]
push 1
push eax
push esi
lea ecx, [ebp - 0x6c]
call fcn.0040a47f
mov eax, 0x476ad0
mov dword [ebp - 4], 2
mov ecx, eax
mov dword [ebp - 0x44], 0x4675f0
test ecx, ecx
mov dword [ebp - 0x24], ebx
jne 0x4087c2
mov eax, 0x47e390
lea ecx, [ebp - 0xe]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b1f1
lea eax, [ebp - 0x6c]
push 0x33c
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 3
call fcn.0045d780
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040604e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0040604e
mov al, byte [ebp + 8]
push 0
neg al
sbb eax, eax
add eax, 4
push eax
push 0x111
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 2
jne 0x40898e
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0040a340
jmp 0x40898e
cmp byte [ebp + 8], 0
je 0x40898e
mov eax, dword [edi + 0xc8]
push 1
lea ecx, [ebp - 0x94]
mov ebx, dword [eax + 0x14]
lea eax, [ebp + 0xb]
push eax
push esi
call fcn.0040a47f
mov eax, dword [eax + 8]
mov dword [ebp - 4], 4
test eax, eax
jne 0x40886a
mov eax, 0x4675fc
push ebx
mov dword [ebp - 0x1c], eax
push dword [edi + 0x16c]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x344
push 0x476a80
push eax
call fcn.00408297
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea ecx, [ebp - 0x94]
call fcn.0040604e
mov eax, dword [edi + 0xc8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [eax + 0x14]
inc eax
push eax
push 1
push 0x406
push dword [ebp - 0x14]
call esi
cmp eax, 2
je 0x408823
push 0
mov ebx, 0x402
push 0
push ebx
push dword [ebp - 0x14]
call esi
cmp eax, 2
je 0x408823
push 0
push dword [edi + 0x16c]
push ebx
push dword [ebp - 0x14]
call esi
jmp 0x40881a
cmp byte [ebp + 8], 0
je 0x408946
cmp byte [ebp - 0xd], 0
je 0x408928
push 0xfffffffffffffff0
push dword [0x47e404]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [edi + 0x164], eax
or al, 8
push eax
push 0xfffffffffffffff0
push dword [0x47e404]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x64
push 1
push 0x40a
jmp 0x408982
lea eax, [edi + 0x160]
push eax
push esi
push edi
push 0x40899f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x15c], eax
jmp 0x40898e
cmp byte [ebp - 0xd], 0
je 0x40897b
add edi, 0x164
cmp dword [edi], esi
je 0x40897b
push esi
push esi
push 0x40a
push dword [0x47e404]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi]
push 0xfffffffffffffff0
push dword [0x47e404]
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x40898e
push esi
push esi
push 0x402
push dword [0x47e404]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4