Function at 0x408bf0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x45643c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x47
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x38], ebx
push eax
mov dword [esp + 0x50], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x50]
xor ebp, ebp
cmp eax, 5
mov dword [esp + 0x10], ebp
jne 0x408c55
mov ecx, dword [esp + 0x54]
mov eax, 1
cmp ecx, eax
jne 0x408c55
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x930]
mov al, byte [0x46af18]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 9
test al, 1
mov dword [esp + 0x1c], ecx
jne 0x408c94
mov dl, al
mov ecx, 0x46af20
or dl, 1
mov byte [0x46af18], dl
call fcn.00434640
push 0x402c80
call fcn.00442500
add esp, 4
fild dword [esp + 0x1c]
mov eax, dword [0x46af28]
lea edx, [esp + 0x3c]
push edx
push ebp
fstp dword [esp + 0x24]
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x48], ebp
call fcn.004359f0
mov esi, dword [esp + 0x3c]
cmp eax, ebp
mov dword [esp + 0x170], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x18], eax
je 0x408cea
call fcn.00409530
mov esi, dword [eax]
call fcn.00409530
mov eax, dword [eax + 4]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x408cea
mov eax, dword [esp + 0x3c]
push eax
jmp 0x408d3b
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push 3
push ebp
push edi
push esi
call fcn.004359b0
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x408d36
call fcn.00409530
mov esi, dword [eax]
call fcn.00409530
mov eax, dword [eax + 4]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x408d23
mov edx, dword [esp + 0x3c]
push edx
jmp 0x408d3b
lea eax, [esp + 0x14]
push eax
push 3
push ebp
push edi
push esi
call fcn.004359b0
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00435850
mov eax, dword [ebx + 0x930]
mov dword [esp + 0x170], 1
cmp eax, ebp
mov dword [esp + 0x1c], 0x42c40000
mov dword [esp + 0x20], 0x41300000
je 0x408d6d
mov dword [esp + 0x1c], 0x42c00000
cmp dword [esp + 0x10], ebp
je 0x408d7b
mov dword [esp + 0x20], 0x41600000
mov ebx, 0x45a5fc
push 6
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], ebx
call fcn.00409470
lea edx, [esp + 0x10]
mov dword [esp + 0x2c], 0x45a5f4
push edx
push 0x91919191
mov dword [esp + 0x18], ebp
call fcn.00435430
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebp
push ecx
push ebp
push ebp
call fcn.00435980
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x24]
push 1
push edx
mov byte [esp + 0x178], 3
call fcn.00435920
cmp eax, ebp
je 0x408de6
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x38]
mov ecx, edi
call fcn.00408f20
add edi, 0x12c
xor esi, esi
cmp edi, ebp
mov dword [esp + 0x10], ebp
je 0x408e24
lea eax, [esp + 0x10]
push eax
push 0x400
push edi
call fcn.00408ed0
cmp eax, ebp
jl 0x408e24
lea ecx, [esp + 0x38]
test ecx, ecx
je 0x408e24
mov edx, dword [esp + 0x10]
lea esi, [edx + edx]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push ebp
push ebp
push eax
push ecx
lea ecx, [esp + 0x4c]
shr esi, 1
call fcn.004093e0
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x24]
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
lea edx, [esp + 0x18]
neg edx
sbb edx, edx
lea eax, [esp + 0x40]
and edx, ebp
push ecx
push eax
push edx
push esi
mov esi, dword [esp + 0x18c]
push edi
mov ecx, dword [esi]
push ecx
call fcn.004358b0
push eax
mov ecx, esi
call fcn.00409510
mov edx, dword [esp + 0x24]
push edx
call fcn.00435880
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], ebx
push eax
call fcn.00435460
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00435820
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret 4