Function at 0x418f74
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 0x4194b8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x6ffc08], 0
je 0x418fad
cmp dword [0x726ca0], 0
jne 0x41948c
mov byte [0x6ffc08], 1
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x41902e
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.0040b570
mov dword [ebp - 0x1b4], 0x11c
push 0x4194c4
push 0x4194e0
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040a5cc
mov ebx, eax
test ebx, ebx
je 0x419006
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x419088
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x419088
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x419088
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.0040b570
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.0040331c
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 0x41907b
mov eax, dword [ebp - 0x1b0]
mov dword [0x726c84], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x726c88], eax
mov eax, 0x726c90
lea edx, [ebp - 0x1a0]
mov ecx, 0x80
call fcn.00406f90
mov eax, dword [ebp - 0x1a4]
cmp eax, 1
sete dl
mov byte [0x726c94], dl
cmp eax, 2
sete al
mov byte [0x726c96], al
cmp byte [0x726c94], 0
je 0x4190e7
movzx eax, word [ebp - 0x1a8]
mov dword [0x726c8c], eax
jmp 0x4190f2
mov eax, dword [ebp - 0x1a8]
mov dword [0x726c8c], eax
mov byte [0x726c98], 0
xor eax, eax
mov dword [0x726c9c], eax
cmp byte [0x726c94], 0
je 0x4191ac
mov eax, dword [0x726c84]
sub eax, 4
jb 0x419194
je 0x41911b
jmp 0x41918d
mov eax, dword [0x726c88]
sub eax, 0xa
jb 0x41912f
je 0x41914d
dec eax
sub eax, 0x50
jb 0x41917b
jmp 0x419184
cmp dword [0x726c8c], 0x3e8
jbe 0x419144
mov byte [0x726c98], 2
jmp 0x419194
mov byte [0x726c98], 1
jmp 0x419194
mov eax, dword [0x726c8c]
cmp eax, 0xa8c
jbe 0x419162
mov byte [0x726c98], 5
jmp 0x419194
cmp eax, 0x7d0
jbe 0x419172
mov byte [0x726c98], 4
jmp 0x419194
mov byte [0x726c98], 3
jmp 0x419194
mov byte [0x726c98], 5
jmp 0x419194
mov byte [0x726c98], 6
jmp 0x419194
mov byte [0x726c98], 6
movzx eax, byte [0x726c98]
mov byte [0x726c95], al
mov byte [0x726c97], 0
jmp 0x41939f
cmp byte [0x726c96], 0
je 0x41939f
mov eax, dword [0x726c84]
cmp eax, 0xa
ja case.0x4191c7.7
jmp dword [eax*4 + 0x4191ce]
mov byte [0x726c98], 7
jmp 0x4192f2
mov byte [0x726c98], 8
jmp 0x4192f2
mov eax, dword [0x726c88]
sub eax, 1
jb 0x419220
je 0x41922c
jmp 0x419238
mov byte [0x726c98], 9
jmp 0x4192f2
mov byte [0x726c98], 0xa
jmp 0x4192f2
cmp byte [ebp - 0x9a], 1
jne 0x41924d
mov byte [0x726c98], 0xa
jmp 0x4192f2
mov byte [0x726c98], 0xb
jmp 0x4192f2
mov eax, dword [0x726c88]
sub eax, 1
jb 0x41926d
je 0x419288
dec eax
je 0x4192a3
dec eax
je 0x4192be
jmp 0x4192d9
cmp byte [ebp - 0x9a], 1
jne 0x41927f
mov byte [0x726c98], 0xc
jmp 0x4192f2
mov byte [0x726c98], 0xd
jmp 0x4192f2
cmp byte [ebp - 0x9a], 1
jne 0x41929a
mov byte [0x726c98], 0xe
jmp 0x4192f2
mov byte [0x726c98], 0xf
jmp 0x4192f2
cmp byte [ebp - 0x9a], 1
jne 0x4192b5
mov byte [0x726c98], 0x10
jmp 0x4192f2
mov byte [0x726c98], 0x11
jmp 0x4192f2
cmp byte [ebp - 0x9a], 1
jne 0x4192d0
mov byte [0x726c98], 0x12
jmp 0x4192f2
mov byte [0x726c98], 0x13
jmp 0x4192f2
mov byte [0x726c98], 0x15
jmp 0x4192f2
mov byte [0x726c98], 0x14
jmp 0x4192f2
mov byte [0x726c98], 0x15
mov byte [0x726c95], 0
movzx eax, byte [0x726c98]
mov byte [0x726c97], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x41931f
movzx eax, word [ebp - 0xa0]
mov dword [0x726c9c], eax
jmp 0x41935b
mov eax, dword [0x726c90]
call fcn.00407100
cmp eax, 0xe
jl 0x41935b
mov eax, dword [0x726c90]
call fcn.00407100
sub eax, 0xd
push eax
mov eax, 0x726c90
call fcn.00407860
lea edx, [eax + 0x1a]
mov ebx, dword [0x7220bc]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x726c9c], eax
push 0x4194f4
push 0x41951c
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040a5cc
mov ebx, eax
test ebx, ebx
je 0x41939f
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.0040b570
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x726c99], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x726c98]
mov edx, dword [edx*4 + 0x6ffb84]
mov ecx, 0
call fcn.00405e7c
mov edx, dword [ebp - 0x1dc]
mov eax, 0x726ca0
call fcn.00406fac
cmp byte [0x726c96], 0
je 0x41948c
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4193f4
mov eax, 0x726ca0
mov edx, 0x419544
call fcn.004071a4
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x41940e
mov eax, 0x726ca0
mov edx, 0x419558
call fcn.004071a4
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x419428
mov eax, 0x726ca0
mov edx, 0x41957c
call fcn.004071a4
cmp byte [0x726c98], 0xc
jae 0x41944b
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x41944b
mov eax, 0x726ca0
mov edx, 0x41959c
call fcn.004071a4
cmp byte [0x726c99], 0
je 0x419463
mov eax, 0x726ca0
mov edx, 0x4195c4
call fcn.004071a4
cmp dword [0x726c90], 0
je 0x41948c
push dword [0x726ca0]
push 0x4195dc
push dword [0x726c90]
mov eax, 0x726ca0
mov edx, 3
call fcn.00407348
mov eax, dword [ebp - 4]
mov edx, 0x726c84
mov ecx, dword [0x418e14]
call fcn.00407ec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4194bf
lea eax, [ebp - 0x1dc]
call fcn.00405b98
ret