Function at 0x418510
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 0x418a54
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x681c00], 0
je 0x418549
cmp dword [0x698c70], 0
jne 0x418a28
mov byte [0x681c00], 1
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4185ca
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.0040b084
mov dword [ebp - 0x1b4], 0x11c
push 0x418a60
push 0x418a7c
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040a178
mov ebx, eax
test ebx, ebx
je 0x4185a2
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x418624
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x418624
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x418624
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.0040b084
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.00403418
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 0x418617
mov eax, dword [ebp - 0x1b0]
mov dword [0x698c54], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x698c58], eax
mov eax, 0x698c60
lea edx, [ebp - 0x1a0]
mov ecx, 0x80
call fcn.00406db8
mov eax, dword [ebp - 0x1a4]
cmp eax, 1
sete dl
mov byte [0x698c64], dl
cmp eax, 2
sete al
mov byte [0x698c66], al
cmp byte [0x698c64], 0
je 0x418683
movzx eax, word [ebp - 0x1a8]
mov dword [0x698c5c], eax
jmp 0x41868e
mov eax, dword [ebp - 0x1a8]
mov dword [0x698c5c], eax
mov byte [0x698c68], 0
xor eax, eax
mov dword [0x698c6c], eax
cmp byte [0x698c64], 0
je 0x418748
mov eax, dword [0x698c54]
sub eax, 4
jb 0x418730
je 0x4186b7
jmp 0x418729
mov eax, dword [0x698c58]
sub eax, 0xa
jb 0x4186cb
je 0x4186e9
dec eax
sub eax, 0x50
jb 0x418717
jmp 0x418720
cmp dword [0x698c5c], 0x3e8
jbe 0x4186e0
mov byte [0x698c68], 2
jmp 0x418730
mov byte [0x698c68], 1
jmp 0x418730
mov eax, dword [0x698c5c]
cmp eax, 0xa8c
jbe 0x4186fe
mov byte [0x698c68], 5
jmp 0x418730
cmp eax, 0x7d0
jbe 0x41870e
mov byte [0x698c68], 4
jmp 0x418730
mov byte [0x698c68], 3
jmp 0x418730
mov byte [0x698c68], 5
jmp 0x418730
mov byte [0x698c68], 6
jmp 0x418730
mov byte [0x698c68], 6
movzx eax, byte [0x698c68]
mov byte [0x698c65], al
mov byte [0x698c67], 0
jmp 0x41893b
cmp byte [0x698c66], 0
je 0x41893b
mov eax, dword [0x698c54]
cmp eax, 0xa
ja case.0x418763.7
jmp dword [eax*4 + 0x41876a]
mov byte [0x698c68], 7
jmp 0x41888e
mov byte [0x698c68], 8
jmp 0x41888e
mov eax, dword [0x698c58]
sub eax, 1
jb 0x4187bc
je 0x4187c8
jmp 0x4187d4
mov byte [0x698c68], 9
jmp 0x41888e
mov byte [0x698c68], 0xa
jmp 0x41888e
cmp byte [ebp - 0x9a], 1
jne 0x4187e9
mov byte [0x698c68], 0xa
jmp 0x41888e
mov byte [0x698c68], 0xb
jmp 0x41888e
mov eax, dword [0x698c58]
sub eax, 1
jb 0x418809
je 0x418824
dec eax
je 0x41883f
dec eax
je 0x41885a
jmp 0x418875
cmp byte [ebp - 0x9a], 1
jne 0x41881b
mov byte [0x698c68], 0xc
jmp 0x41888e
mov byte [0x698c68], 0xd
jmp 0x41888e
cmp byte [ebp - 0x9a], 1
jne 0x418836
mov byte [0x698c68], 0xe
jmp 0x41888e
mov byte [0x698c68], 0xf
jmp 0x41888e
cmp byte [ebp - 0x9a], 1
jne 0x418851
mov byte [0x698c68], 0x10
jmp 0x41888e
mov byte [0x698c68], 0x11
jmp 0x41888e
cmp byte [ebp - 0x9a], 1
jne 0x41886c
mov byte [0x698c68], 0x12
jmp 0x41888e
mov byte [0x698c68], 0x13
jmp 0x41888e
mov byte [0x698c68], 0x15
jmp 0x41888e
mov byte [0x698c68], 0x14
jmp 0x41888e
mov byte [0x698c68], 0x15
mov byte [0x698c65], 0
movzx eax, byte [0x698c68]
mov byte [0x698c67], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x4188bb
movzx eax, word [ebp - 0xa0]
mov dword [0x698c6c], eax
jmp 0x4188f7
mov eax, dword [0x698c60]
call fcn.00406e68
cmp eax, 0xe
jl 0x4188f7
mov eax, dword [0x698c60]
call fcn.00406e68
sub eax, 0xd
push eax
mov eax, 0x698c60
call fcn.00407530
lea edx, [eax + 0x1a]
mov ebx, dword [0x694090]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x698c6c], eax
push 0x418a90
push 0x418ab8
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040a178
mov ebx, eax
test ebx, ebx
je 0x41893b
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.0040b084
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x698c69], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x698c68]
mov edx, dword [edx*4 + 0x681b7c]
mov ecx, 0
call fcn.00405df0
mov edx, dword [ebp - 0x1dc]
mov eax, 0x698c70
call fcn.00406dd4
cmp byte [0x698c66], 0
je 0x418a28
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x418990
mov eax, 0x698c70
mov edx, 0x418ae0
call fcn.00406f0c
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4189aa
mov eax, 0x698c70
mov edx, 0x418af4
call fcn.00406f0c
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4189c4
mov eax, 0x698c70
mov edx, 0x418b18
call fcn.00406f0c
cmp byte [0x698c68], 0xc
jae 0x4189e7
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4189e7
mov eax, 0x698c70
mov edx, 0x418b38
call fcn.00406f0c
cmp byte [0x698c69], 0
je 0x4189ff
mov eax, 0x698c70
mov edx, 0x418b60
call fcn.00406f0c
cmp dword [0x698c60], 0
je 0x418a28
push dword [0x698c70]
push 0x418b78
push dword [0x698c60]
mov eax, 0x698c70
mov edx, 3
call fcn.0040705c
mov eax, dword [ebp - 4]
mov edx, 0x698c54
mov ecx, dword [0x4183b0]
call fcn.004079ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418a5b
lea eax, [ebp - 0x1dc]
call fcn.00405b3c
ret