Function at 0x408fd0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x45439c
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 0x409035
mov ecx, dword [esp + 0x54]
mov eax, 1
cmp ecx, eax
jne 0x409035
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x930]
mov al, byte [0x469bf8]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 9
test al, 1
mov dword [esp + 0x1c], ecx
jne 0x409074
mov dl, al
mov ecx, 0x469c00
or dl, 1
mov byte [0x469bf8], dl
call fcn.00436830
push 0x402df0
call fcn.0044055c
add esp, 4
fild dword [esp + 0x1c]
mov eax, dword [0x469c08]
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.00437f20
mov esi, dword [esp + 0x3c]
cmp eax, ebp
mov dword [esp + 0x170], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x18], eax
je 0x4090ca
call fcn.00409910
mov esi, dword [eax]
call fcn.00409910
mov eax, dword [eax + 4]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x4090ca
mov eax, dword [esp + 0x3c]
push eax
jmp 0x40911b
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push 3
push ebp
push edi
push esi
call fcn.00437ee0
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x409116
call fcn.00409910
mov esi, dword [eax]
call fcn.00409910
mov eax, dword [eax + 4]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x409103
mov edx, dword [esp + 0x3c]
push edx
jmp 0x40911b
lea eax, [esp + 0x14]
push eax
push 3
push ebp
push edi
push esi
call fcn.00437ee0
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00437d80
mov eax, dword [ebx + 0x930]
mov dword [esp + 0x170], 1
cmp eax, ebp
mov dword [esp + 0x1c], 0x42c40000
mov dword [esp + 0x20], 0x41300000
je 0x40914d
mov dword [esp + 0x1c], 0x42c00000
cmp dword [esp + 0x10], ebp
je 0x40915b
mov dword [esp + 0x20], 0x41600000
mov ebx, 0x4585dc
push 6
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], ebx
call fcn.00409850
lea edx, [esp + 0x10]
mov dword [esp + 0x2c], 0x4585d4
push edx
push 0x91919191
mov dword [esp + 0x18], ebp
call fcn.00437960
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.00437eb0
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x24]
push 1
push edx
mov byte [esp + 0x178], 3
call fcn.00437e50
cmp eax, ebp
je 0x4091c6
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x38]
mov ecx, edi
call fcn.00409300
add edi, 0x12c
xor esi, esi
cmp edi, ebp
mov dword [esp + 0x10], ebp
je 0x409204
lea eax, [esp + 0x10]
push eax
push 0x400
push edi
call fcn.004092b0
cmp eax, ebp
jl 0x409204
lea ecx, [esp + 0x38]
test ecx, ecx
je 0x409204
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.004097c0
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 int.00437de0
push eax
mov ecx, esi
call fcn.004098f0
mov edx, dword [esp + 0x24]
push edx
call fcn.00437db0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], ebx
push eax
call fcn.00437990
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00437d50
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret 4