Function at 0x4171b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe24
push ebx
xor edx, edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4176f4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x522c10], 0
je 0x4171e9
cmp dword [0x52ec6c], 0
jne 0x4176c8
mov byte [0x522c10], 1
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x41726a
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.00409dc0
mov dword [ebp - 0x1b4], 0x11c
push 0x417700
push 0x41771c
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00409134
mov ebx, eax
test ebx, ebx
je 0x417242
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x4172c4
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x4172c4
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x4172c4
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.00409dc0
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.kernel32.dll_GetVersionExA
lea edx, [ebp - 0x1b4]
lea eax, [ebp - 0x98]
mov ecx, 0x94
call fcn.00403248
mov ecx, 0x80
lea eax, [ebp - 0x84]
lea edx, [ebp - 0x1a0]
movzx ebx, byte [eax]
mov word [edx], bx
add edx, 2
inc eax
dec ecx
jne 0x4172b7
mov eax, dword [ebp - 0x1b0]
mov dword [0x52ec50], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x52ec54], eax
mov eax, 0x52ec5c
lea edx, [ebp - 0x1a0]
mov ecx, 0x80
call fcn.004063c0
mov eax, dword [ebp - 0x1a4]
cmp eax, 1
sete dl
mov byte [0x52ec60], dl
cmp eax, 2
sete al
mov byte [0x52ec62], al
cmp byte [0x52ec60], 0
je 0x417323
movzx eax, word [ebp - 0x1a8]
mov dword [0x52ec58], eax
jmp 0x41732e
mov eax, dword [ebp - 0x1a8]
mov dword [0x52ec58], eax
mov byte [0x52ec64], 0
xor eax, eax
mov dword [0x52ec68], eax
cmp byte [0x52ec60], 0
je 0x4173e8
mov eax, dword [0x52ec50]
sub eax, 4
jb 0x4173d0
je 0x417357
jmp 0x4173c9
mov eax, dword [0x52ec54]
sub eax, 0xa
jb 0x41736b
je 0x417389
dec eax
sub eax, 0x50
jb 0x4173b7
jmp 0x4173c0
cmp dword [0x52ec58], 0x3e8
jbe 0x417380
mov byte [0x52ec64], 2
jmp 0x4173d0
mov byte [0x52ec64], 1
jmp 0x4173d0
mov eax, dword [0x52ec58]
cmp eax, 0xa8c
jbe 0x41739e
mov byte [0x52ec64], 5
jmp 0x4173d0
cmp eax, 0x7d0
jbe 0x4173ae
mov byte [0x52ec64], 4
jmp 0x4173d0
mov byte [0x52ec64], 3
jmp 0x4173d0
mov byte [0x52ec64], 5
jmp 0x4173d0
mov byte [0x52ec64], 6
jmp 0x4173d0
mov byte [0x52ec64], 6
movzx eax, byte [0x52ec64]
mov byte [0x52ec61], al
mov byte [0x52ec63], 0
jmp 0x4175db
cmp byte [0x52ec62], 0
je 0x4175db
mov eax, dword [0x52ec50]
cmp eax, 0xa
ja case.0x417403.7
jmp dword [eax*4 + 0x41740a]
mov byte [0x52ec64], 7
jmp 0x41752e
mov byte [0x52ec64], 8
jmp 0x41752e
mov eax, dword [0x52ec54]
sub eax, 1
jb 0x41745c
je 0x417468
jmp 0x417474
mov byte [0x52ec64], 9
jmp 0x41752e
mov byte [0x52ec64], 0xa
jmp 0x41752e
cmp byte [ebp - 0x9a], 1
jne 0x417489
mov byte [0x52ec64], 0xa
jmp 0x41752e
mov byte [0x52ec64], 0xb
jmp 0x41752e
mov eax, dword [0x52ec54]
sub eax, 1
jb 0x4174a9
je 0x4174c4
dec eax
je 0x4174df
dec eax
je 0x4174fa
jmp 0x417515
cmp byte [ebp - 0x9a], 1
jne 0x4174bb
mov byte [0x52ec64], 0xc
jmp 0x41752e
mov byte [0x52ec64], 0xd
jmp 0x41752e
cmp byte [ebp - 0x9a], 1
jne 0x4174d6
mov byte [0x52ec64], 0xe
jmp 0x41752e
mov byte [0x52ec64], 0xf
jmp 0x41752e
cmp byte [ebp - 0x9a], 1
jne 0x4174f1
mov byte [0x52ec64], 0x10
jmp 0x41752e
mov byte [0x52ec64], 0x11
jmp 0x41752e
cmp byte [ebp - 0x9a], 1
jne 0x41750c
mov byte [0x52ec64], 0x12
jmp 0x41752e
mov byte [0x52ec64], 0x13
jmp 0x41752e
mov byte [0x52ec64], 0x15
jmp 0x41752e
mov byte [0x52ec64], 0x14
jmp 0x41752e
mov byte [0x52ec64], 0x15
mov byte [0x52ec61], 0
movzx eax, byte [0x52ec64]
mov byte [0x52ec63], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x41755b
movzx eax, word [ebp - 0xa0]
mov dword [0x52ec68], eax
jmp 0x417597
mov eax, dword [0x52ec5c]
call fcn.00406470
cmp eax, 0xe
jl 0x417597
mov eax, dword [0x52ec5c]
call fcn.00406470
sub eax, 0xd
push eax
mov eax, 0x52ec5c
call fcn.00406b38
lea edx, [eax + 0x1a]
mov ebx, dword [0x52a18c]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x52ec68], eax
push 0x417730
push 0x417758
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00409134
mov ebx, eax
test ebx, ebx
je 0x4175db
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.00409dc0
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x52ec65], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x52ec64]
mov edx, dword [edx*4 + 0x522b8c]
mov ecx, 0
call fcn.004057b4
mov edx, dword [ebp - 0x1dc]
mov eax, 0x52ec6c
call fcn.004063dc
cmp byte [0x52ec62], 0
je 0x4176c8
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x417630
mov eax, 0x52ec6c
mov edx, 0x417780
call fcn.00406514
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x41764a
mov eax, 0x52ec6c
mov edx, 0x417794
call fcn.00406514
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x417664
mov eax, 0x52ec6c
mov edx, 0x4177b8
call fcn.00406514
cmp byte [0x52ec64], 0xc
jae 0x417687
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x417687
mov eax, 0x52ec6c
mov edx, 0x4177d8
call fcn.00406514
cmp byte [0x52ec65], 0
je 0x41769f
mov eax, 0x52ec6c
mov edx, 0x417800
call fcn.00406514
cmp dword [0x52ec5c], 0
je 0x4176c8
push dword [0x52ec6c]
push 0x417818
push dword [0x52ec5c]
mov eax, 0x52ec6c
mov edx, 3
call fcn.00406664
mov eax, dword [ebp - 4]
mov edx, 0x52ec50
mov ecx, dword [0x417050]
call fcn.00406e2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4176fb
lea eax, [ebp - 0x1dc]
call fcn.00405500
ret