Function at 0x417340
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 0x417884
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x547c00], 0
je 0x417379
cmp dword [0x555c70], 0
jne 0x417858
mov byte [0x547c00], 1
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4173fa
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.00409f50
mov dword [ebp - 0x1b4], 0x11c
push 0x417890
push 0x4178ac
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040929c
mov ebx, eax
test ebx, ebx
je 0x4173d2
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x417454
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x417454
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x417454
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.00409f50
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.00403230
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 0x417447
mov eax, dword [ebp - 0x1b0]
mov dword [0x555c54], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x555c58], eax
mov eax, 0x555c60
lea edx, [ebp - 0x1a0]
mov ecx, 0x80
call fcn.004064bc
mov eax, dword [ebp - 0x1a4]
cmp eax, 1
sete dl
mov byte [0x555c64], dl
cmp eax, 2
sete al
mov byte [0x555c66], al
cmp byte [0x555c64], 0
je 0x4174b3
movzx eax, word [ebp - 0x1a8]
mov dword [0x555c5c], eax
jmp 0x4174be
mov eax, dword [ebp - 0x1a8]
mov dword [0x555c5c], eax
mov byte [0x555c68], 0
xor eax, eax
mov dword [0x555c6c], eax
cmp byte [0x555c64], 0
je 0x417578
mov eax, dword [0x555c54]
sub eax, 4
jb 0x417560
je 0x4174e7
jmp 0x417559
mov eax, dword [0x555c58]
sub eax, 0xa
jb 0x4174fb
je 0x417519
dec eax
sub eax, 0x50
jb 0x417547
jmp 0x417550
cmp dword [0x555c5c], 0x3e8
jbe 0x417510
mov byte [0x555c68], 2
jmp 0x417560
mov byte [0x555c68], 1
jmp 0x417560
mov eax, dword [0x555c5c]
cmp eax, 0xa8c
jbe 0x41752e
mov byte [0x555c68], 5
jmp 0x417560
cmp eax, 0x7d0
jbe 0x41753e
mov byte [0x555c68], 4
jmp 0x417560
mov byte [0x555c68], 3
jmp 0x417560
mov byte [0x555c68], 5
jmp 0x417560
mov byte [0x555c68], 6
jmp 0x417560
mov byte [0x555c68], 6
movzx eax, byte [0x555c68]
mov byte [0x555c65], al
mov byte [0x555c67], 0
jmp 0x41776b
cmp byte [0x555c66], 0
je 0x41776b
mov eax, dword [0x555c54]
cmp eax, 0xa
ja case.0x417593.7
jmp dword [eax*4 + 0x41759a]
mov byte [0x555c68], 7
jmp 0x4176be
mov byte [0x555c68], 8
jmp 0x4176be
mov eax, dword [0x555c58]
sub eax, 1
jb 0x4175ec
je 0x4175f8
jmp 0x417604
mov byte [0x555c68], 9
jmp 0x4176be
mov byte [0x555c68], 0xa
jmp 0x4176be
cmp byte [ebp - 0x9a], 1
jne 0x417619
mov byte [0x555c68], 0xa
jmp 0x4176be
mov byte [0x555c68], 0xb
jmp 0x4176be
mov eax, dword [0x555c58]
sub eax, 1
jb 0x417639
je 0x417654
dec eax
je 0x41766f
dec eax
je 0x41768a
jmp 0x4176a5
cmp byte [ebp - 0x9a], 1
jne 0x41764b
mov byte [0x555c68], 0xc
jmp 0x4176be
mov byte [0x555c68], 0xd
jmp 0x4176be
cmp byte [ebp - 0x9a], 1
jne 0x417666
mov byte [0x555c68], 0xe
jmp 0x4176be
mov byte [0x555c68], 0xf
jmp 0x4176be
cmp byte [ebp - 0x9a], 1
jne 0x417681
mov byte [0x555c68], 0x10
jmp 0x4176be
mov byte [0x555c68], 0x11
jmp 0x4176be
cmp byte [ebp - 0x9a], 1
jne 0x41769c
mov byte [0x555c68], 0x12
jmp 0x4176be
mov byte [0x555c68], 0x13
jmp 0x4176be
mov byte [0x555c68], 0x15
jmp 0x4176be
mov byte [0x555c68], 0x14
jmp 0x4176be
mov byte [0x555c68], 0x15
mov byte [0x555c65], 0
movzx eax, byte [0x555c68]
mov byte [0x555c67], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x4176eb
movzx eax, word [ebp - 0xa0]
mov dword [0x555c6c], eax
jmp 0x417727
mov eax, dword [0x555c60]
call fcn.0040656c
cmp eax, 0xe
jl 0x417727
mov eax, dword [0x555c60]
call fcn.0040656c
sub eax, 0xd
push eax
mov eax, 0x555c60
call fcn.00406c34
lea edx, [eax + 0x1a]
mov ebx, dword [0x5511c0]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x555c6c], eax
push 0x4178c0
push 0x4178e8
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040929c
mov ebx, eax
test ebx, ebx
je 0x41776b
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.00409f50
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x555c69], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x555c68]
mov edx, dword [edx*4 + 0x547b7c]
mov ecx, 0
call fcn.00405770
mov edx, dword [ebp - 0x1dc]
mov eax, 0x555c70
call fcn.004064d8
cmp byte [0x555c66], 0
je 0x417858
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4177c0
mov eax, 0x555c70
mov edx, 0x417910
call fcn.00406610
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4177da
mov eax, 0x555c70
mov edx, 0x417924
call fcn.00406610
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4177f4
mov eax, 0x555c70
mov edx, 0x417948
call fcn.00406610
cmp byte [0x555c68], 0xc
jae 0x417817
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x417817
mov eax, 0x555c70
mov edx, 0x417968
call fcn.00406610
cmp byte [0x555c69], 0
je 0x41782f
mov eax, 0x555c70
mov edx, 0x417990
call fcn.00406610
cmp dword [0x555c60], 0
je 0x417858
push dword [0x555c70]
push 0x4179a8
push dword [0x555c60]
mov eax, 0x555c70
mov edx, 3
call fcn.00406760
mov eax, dword [ebp - 4]
mov edx, 0x555c54
mov ecx, dword [0x4171e0]
call fcn.00407034
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41788b
lea eax, [ebp - 0x1dc]
call fcn.004054bc
ret