Function at 0x4115d0
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411808
push eax
mov dword fs:[0], esp
mov eax, dword [ebp + 8]
sub esp, 0x3c
mov ecx, 0
test eax, eax
push esi
je 0x4115fb
mov ecx, dword [eax + 0x14]
test eax, eax
je 0x41181a
test ecx, ecx
je 0x41181a
mov dword [ebp - 0x1c], 0
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x411669
mov ecx, dword [ebp - 0x10]
push 0
add ecx, 8
mov dword [ebp - 0x18], ecx
mov edx, dword [ecx - 8]
mov ecx, dword [ecx]
mov dword [ebp - 0x10], edx
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00409820
mov dword [ebp - 4], 0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x28]
push ecx
push edx
call fcn.00422b44
add esp, 8
test eax, eax
je 0x411671
mov dword [ebp - 4], 0xffffffff
call fcn.00411812
cmp dword [ebp - 0x10], 0
jne 0x41161c
mov eax, dword [ebp - 0x1c]
jmp 0x41181c
lea ecx, [ebp - 0x48]
call fcn.0042ed3d
push 0xffffffffffffffff
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
push 0xa
call fcn.0042ee1d
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push eax
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00409820
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
lea ecx, [edx + edx*2]
shl ecx, 2
add ecx, dword [ebp - 0x44]
call fcn.00431174
mov byte [ebp - 4], 1
call fcn.004116e1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jl 0x411690
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
test eax, 0x40000000
je 0x4116e9
xor eax, eax
jmp 0x4116f9
and eax, 0x80000000
cmp eax, 1
mov eax, 2
adc eax, 0xffffffff
sub eax, 2
cmp eax, 1
sbb eax, eax
neg eax
test eax, eax
mov eax, dword [ebp + 0x10]
je 0x41171f
cmp eax, 5
jl 0x41171f
mov ecx, dword [ebp + 0x14]
lea eax, [eax + eax*2]
push ecx
mov edx, dword [ebp - 0x44]
lea ecx, [edx + eax*4 - 0xc]
jmp 0x41172c
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [eax + eax*2]
shl ecx, 2
add ecx, dword [ebp - 0x44]
call fcn.0043118b
call esi
test eax, 0x40000000
je 0x41173e
xor eax, eax
jmp 0x41174e
and eax, 0x80000000
cmp eax, 1
mov eax, 2
adc eax, 0xffffffff
sub eax, 2
cmp eax, 1
sbb eax, eax
neg eax
test eax, eax
mov eax, dword [ebp - 0x44]
je 0x41179e
mov ecx, dword [eax + 0x60]
mov edx, dword [eax + 0x54]
push ecx
push edx
mov ecx, dword [eax + 0x48]
mov edx, dword [eax + 0x3c]
push ecx
push edx
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x24]
push ecx
push edx
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0xc]
push ecx
push edx
mov ecx, dword [eax]
push ecx
push 0xfd
call fcn.0040e100
add esp, 4
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call fcn.0042ddf7
add esp, 0x2c
jmp 0x4117df
mov ecx, dword [eax + 0x6c]
mov edx, dword [eax + 0x60]
push ecx
push edx
mov ecx, dword [eax + 0x54]
mov edx, dword [eax + 0x48]
push ecx
push edx
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x30]
push ecx
push edx
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x18]
push ecx
push edx
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
push ecx
push edx
push 0xc7
call fcn.0040e100
add esp, 4
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call fcn.0042ddf7
add esp, 0x30
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 0
call fcn.00411800
mov dword [ebp - 4], 0xffffffff
call fcn.00411812
mov eax, dword [ebp - 0x1c]
jmp 0x41181c
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret