Function at 0x418468
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 0x4189da
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x760021], 0
je 0x4184a1
cmp dword [0x76bca8], 0
jne 0x4189ae
mov byte [0x760021], 1
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x418522
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.004120bc
mov dword [ebp - 0x1b4], 0x11c
push 0x4189e8
push 0x418a04
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00411010
mov ebx, eax
test ebx, ebx
je 0x4184fa
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x41857c
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x41857c
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x41857c
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.004120bc
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.0040690c
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 0x41856f
mov eax, dword [ebp - 0x1b0]
mov dword [0x76bc8c], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x76bc90], eax
mov eax, 0x76bc98
lea edx, [ebp - 0x1a0]
mov ecx, 0x80
call fcn.0040aa00
mov eax, dword [ebp - 0x1a4]
cmp eax, 1
sete dl
mov byte [0x76bc9c], dl
cmp eax, 2
sete al
mov byte [0x76bc9e], al
cmp byte [0x76bc9c], 0
je 0x4185db
movzx eax, word [ebp - 0x1a8]
mov dword [0x76bc94], eax
jmp 0x4185e6
mov eax, dword [ebp - 0x1a8]
mov dword [0x76bc94], eax
mov byte [0x76bca0], 0
xor eax, eax
mov dword [0x76bca4], eax
cmp byte [0x76bc9c], 0
je 0x4186a0
mov eax, dword [0x76bc8c]
sub eax, 4
jb 0x418688
je 0x41860f
jmp 0x418681
mov eax, dword [0x76bc90]
sub eax, 0xa
jb 0x418623
je 0x418641
dec eax
sub eax, 0x50
jb 0x41866f
jmp 0x418678
cmp dword [0x76bc94], 0x3e8
jbe 0x418638
mov byte [0x76bca0], 2
jmp 0x418688
mov byte [0x76bca0], 1
jmp 0x418688
mov eax, dword [0x76bc94]
cmp eax, 0xa8c
jbe 0x418656
mov byte [0x76bca0], 5
jmp 0x418688
cmp eax, 0x7d0
jbe 0x418666
mov byte [0x76bca0], 4
jmp 0x418688
mov byte [0x76bca0], 3
jmp 0x418688
mov byte [0x76bca0], 5
jmp 0x418688
mov byte [0x76bca0], 6
jmp 0x418688
mov byte [0x76bca0], 6
movzx eax, byte [0x76bca0]
mov byte [0x76bc9d], al
mov byte [0x76bc9f], 0
jmp 0x4188db
cmp byte [0x76bc9e], 0
je 0x4188db
mov eax, dword [0x76bc8c]
cmp eax, 0xa
ja case.0x4186bb.7
jmp dword [eax*4 + 0x4186c2]
mov byte [0x76bca0], 7
jmp 0x41882e
mov byte [0x76bca0], 8
jmp 0x41882e
mov eax, dword [0x76bc90]
sub eax, 1
jb 0x418714
je 0x418720
jmp 0x41872c
mov byte [0x76bca0], 9
jmp 0x41882e
mov byte [0x76bca0], 0xa
jmp 0x41882e
cmp byte [ebp - 0x9a], 1
jne 0x418741
mov byte [0x76bca0], 0xa
jmp 0x41882e
mov byte [0x76bca0], 0xb
jmp 0x41882e
mov eax, dword [0x76bc90]
sub eax, 1
jb 0x418761
je 0x418782
dec eax
je 0x4187a3
dec eax
je 0x4187be
jmp 0x4187d9
cmp byte [ebp - 0x9a], 1
jne 0x418776
mov byte [0x76bca0], 0xc
jmp 0x41882e
mov byte [0x76bca0], 0xd
jmp 0x41882e
cmp byte [ebp - 0x9a], 1
jne 0x418797
mov byte [0x76bca0], 0xe
jmp 0x41882e
mov byte [0x76bca0], 0xf
jmp 0x41882e
cmp byte [ebp - 0x9a], 1
jne 0x4187b5
mov byte [0x76bca0], 0x10
jmp 0x41882e
mov byte [0x76bca0], 0x11
jmp 0x41882e
cmp byte [ebp - 0x9a], 1
jne 0x4187d0
mov byte [0x76bca0], 0x12
jmp 0x41882e
mov byte [0x76bca0], 0x13
jmp 0x41882e
mov byte [0x76bca0], 0x18
jmp 0x41882e
cmp byte [ebp - 0x9a], 1
jne 0x418809
cmp dword [0x76bc94], 0x55f0
jb 0x418800
mov byte [0x76bca0], 0x17
jmp 0x41882e
mov byte [0x76bca0], 0x14
jmp 0x41882e
cmp dword [0x76bc94], 0x4563
jb 0x41881e
mov byte [0x76bca0], 0x16
jmp 0x41882e
mov byte [0x76bca0], 0x15
jmp 0x41882e
mov byte [0x76bca0], 0x18
mov byte [0x76bc9d], 0
movzx eax, byte [0x76bca0]
mov byte [0x76bc9f], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x41885b
movzx eax, word [ebp - 0xa0]
mov dword [0x76bca4], eax
jmp 0x418897
mov eax, dword [0x76bc98]
call fcn.00409e0c
cmp eax, 0xe
jl 0x418897
mov eax, dword [0x76bc98]
call fcn.00409e0c
sub eax, 0xd
push eax
mov eax, 0x76bc98
call fcn.00409ee0
lea edx, [eax + 0x1a]
mov ebx, dword [0x768da4]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x76bca4], eax
push 0x418a18
push 0x418a40
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00411010
mov ebx, eax
test ebx, ebx
je 0x4188db
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.004120bc
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x76bca1], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x76bca0]
mov edx, dword [edx*4 + 0x75ff94]
mov ecx, 0
call fcn.0040a0a0
mov edx, dword [ebp - 0x1dc]
mov eax, 0x76bca8
call fcn.0040aa1c
cmp byte [0x76bc9e], 0
je 0x4189ae
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x418930
mov eax, 0x76bca8
mov edx, 0x418a68
call fcn.0040ab58
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x41894a
mov eax, 0x76bca8
mov edx, 0x418a7c
call fcn.0040ab58
cmp byte [0x76bca0], 0xc
jae 0x41896d
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x41896d
mov eax, 0x76bca8
mov edx, 0x418a9c
call fcn.0040ab58
cmp byte [0x76bca1], 0
je 0x418985
mov eax, 0x76bca8
mov edx, 0x418ac4
call fcn.0040ab58
cmp dword [0x76bc98], 0
je 0x4189ae
push dword [0x76bca8]
push 0x418adc
push dword [0x76bc98]
mov eax, 0x76bca8
mov edx, 3
call fcn.0040ac38
mov eax, dword [ebp - 4]
mov edx, 0x76bc8c
mov ecx, dword [0x4180d0]
call fcn.0040b5b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4189e1
lea eax, [ebp - 0x1dc]
call fcn.00409938
ret