Function at 0x418530
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 0x418a74
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x687c00], 0
je 0x418569
cmp dword [0x69ec70], 0
jne 0x418a48
mov byte [0x687c00], 1
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4185ea
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.0040b0a4
mov dword [ebp - 0x1b4], 0x11c
push 0x418a80
push 0x418a9c
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040a198
mov ebx, eax
test ebx, ebx
je 0x4185c2
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x418644
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x418644
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x418644
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.0040b0a4
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 0x418637
mov eax, dword [ebp - 0x1b0]
mov dword [0x69ec54], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x69ec58], eax
mov eax, 0x69ec60
lea edx, [ebp - 0x1a0]
mov ecx, 0x80
call fcn.00406db8
mov eax, dword [ebp - 0x1a4]
cmp eax, 1
sete dl
mov byte [0x69ec64], dl
cmp eax, 2
sete al
mov byte [0x69ec66], al
cmp byte [0x69ec64], 0
je 0x4186a3
movzx eax, word [ebp - 0x1a8]
mov dword [0x69ec5c], eax
jmp 0x4186ae
mov eax, dword [ebp - 0x1a8]
mov dword [0x69ec5c], eax
mov byte [0x69ec68], 0
xor eax, eax
mov dword [0x69ec6c], eax
cmp byte [0x69ec64], 0
je 0x418768
mov eax, dword [0x69ec54]
sub eax, 4
jb 0x418750
je 0x4186d7
jmp 0x418749
mov eax, dword [0x69ec58]
sub eax, 0xa
jb 0x4186eb
je 0x418709
dec eax
sub eax, 0x50
jb 0x418737
jmp 0x418740
cmp dword [0x69ec5c], 0x3e8
jbe 0x418700
mov byte [0x69ec68], 2
jmp 0x418750
mov byte [0x69ec68], 1
jmp 0x418750
mov eax, dword [0x69ec5c]
cmp eax, 0xa8c
jbe 0x41871e
mov byte [0x69ec68], 5
jmp 0x418750
cmp eax, 0x7d0
jbe 0x41872e
mov byte [0x69ec68], 4
jmp 0x418750
mov byte [0x69ec68], 3
jmp 0x418750
mov byte [0x69ec68], 5
jmp 0x418750
mov byte [0x69ec68], 6
jmp 0x418750
mov byte [0x69ec68], 6
movzx eax, byte [0x69ec68]
mov byte [0x69ec65], al
mov byte [0x69ec67], 0
jmp 0x41895b
cmp byte [0x69ec66], 0
je 0x41895b
mov eax, dword [0x69ec54]
cmp eax, 0xa
ja case.0x418783.7
jmp dword [eax*4 + 0x41878a]
mov byte [0x69ec68], 7
jmp 0x4188ae
mov byte [0x69ec68], 8
jmp 0x4188ae
mov eax, dword [0x69ec58]
sub eax, 1
jb 0x4187dc
je 0x4187e8
jmp 0x4187f4
mov byte [0x69ec68], 9
jmp 0x4188ae
mov byte [0x69ec68], 0xa
jmp 0x4188ae
cmp byte [ebp - 0x9a], 1
jne 0x418809
mov byte [0x69ec68], 0xa
jmp 0x4188ae
mov byte [0x69ec68], 0xb
jmp 0x4188ae
mov eax, dword [0x69ec58]
sub eax, 1
jb 0x418829
je 0x418844
dec eax
je 0x41885f
dec eax
je 0x41887a
jmp 0x418895
cmp byte [ebp - 0x9a], 1
jne 0x41883b
mov byte [0x69ec68], 0xc
jmp 0x4188ae
mov byte [0x69ec68], 0xd
jmp 0x4188ae
cmp byte [ebp - 0x9a], 1
jne 0x418856
mov byte [0x69ec68], 0xe
jmp 0x4188ae
mov byte [0x69ec68], 0xf
jmp 0x4188ae
cmp byte [ebp - 0x9a], 1
jne 0x418871
mov byte [0x69ec68], 0x10
jmp 0x4188ae
mov byte [0x69ec68], 0x11
jmp 0x4188ae
cmp byte [ebp - 0x9a], 1
jne 0x41888c
mov byte [0x69ec68], 0x12
jmp 0x4188ae
mov byte [0x69ec68], 0x13
jmp 0x4188ae
mov byte [0x69ec68], 0x15
jmp 0x4188ae
mov byte [0x69ec68], 0x14
jmp 0x4188ae
mov byte [0x69ec68], 0x15
mov byte [0x69ec65], 0
movzx eax, byte [0x69ec68]
mov byte [0x69ec67], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x4188db
movzx eax, word [ebp - 0xa0]
mov dword [0x69ec6c], eax
jmp 0x418917
mov eax, dword [0x69ec60]
call fcn.00406e68
cmp eax, 0xe
jl 0x418917
mov eax, dword [0x69ec60]
call fcn.00406e68
sub eax, 0xd
push eax
mov eax, 0x69ec60
call fcn.00407530
lea edx, [eax + 0x1a]
mov ebx, dword [0x69a0c4]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x69ec6c], eax
push 0x418ab0
push 0x418ad8
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040a198
mov ebx, eax
test ebx, ebx
je 0x41895b
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.0040b0a4
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x69ec69], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x69ec68]
mov edx, dword [edx*4 + 0x687b7c]
mov ecx, 0
call fcn.00405df0
mov edx, dword [ebp - 0x1dc]
mov eax, 0x69ec70
call fcn.00406dd4
cmp byte [0x69ec66], 0
je 0x418a48
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4189b0
mov eax, 0x69ec70
mov edx, 0x418b00
call fcn.00406f0c
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4189ca
mov eax, 0x69ec70
mov edx, 0x418b14
call fcn.00406f0c
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4189e4
mov eax, 0x69ec70
mov edx, 0x418b38
call fcn.00406f0c
cmp byte [0x69ec68], 0xc
jae 0x418a07
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x418a07
mov eax, 0x69ec70
mov edx, 0x418b58
call fcn.00406f0c
cmp byte [0x69ec69], 0
je 0x418a1f
mov eax, 0x69ec70
mov edx, 0x418b80
call fcn.00406f0c
cmp dword [0x69ec60], 0
je 0x418a48
push dword [0x69ec70]
push 0x418b98
push dword [0x69ec60]
mov eax, 0x69ec70
mov edx, 3
call fcn.0040705c
mov eax, dword [ebp - 4]
mov edx, 0x69ec54
mov ecx, dword [0x4183d0]
call fcn.004079ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418a7b
lea eax, [ebp - 0x1dc]
call fcn.00405b3c
ret