Function at 0x418060
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 0x4185a4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x617c0c], 0
je 0x418099
cmp dword [0x633ca0], 0
jne 0x418578
mov byte [0x617c0c], 1
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x41811a
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.0040abf0
mov dword [ebp - 0x1b4], 0x11c
push 0x4185b0
push 0x4185cc
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409db4
mov ebx, eax
test ebx, ebx
je 0x4180f2
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x418174
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x418174
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x418174
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.0040abf0
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.00403294
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 0x418167
mov eax, dword [ebp - 0x1b0]
mov dword [0x633c84], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x633c88], eax
mov eax, 0x633c90
lea edx, [ebp - 0x1a0]
mov ecx, 0x80
call fcn.00406bb0
mov eax, dword [ebp - 0x1a4]
cmp eax, 1
sete dl
mov byte [0x633c94], dl
cmp eax, 2
sete al
mov byte [0x633c96], al
cmp byte [0x633c94], 0
je 0x4181d3
movzx eax, word [ebp - 0x1a8]
mov dword [0x633c8c], eax
jmp 0x4181de
mov eax, dword [ebp - 0x1a8]
mov dword [0x633c8c], eax
mov byte [0x633c98], 0
xor eax, eax
mov dword [0x633c9c], eax
cmp byte [0x633c94], 0
je 0x418298
mov eax, dword [0x633c84]
sub eax, 4
jb 0x418280
je 0x418207
jmp 0x418279
mov eax, dword [0x633c88]
sub eax, 0xa
jb 0x41821b
je 0x418239
dec eax
sub eax, 0x50
jb 0x418267
jmp 0x418270
cmp dword [0x633c8c], 0x3e8
jbe 0x418230
mov byte [0x633c98], 2
jmp 0x418280
mov byte [0x633c98], 1
jmp 0x418280
mov eax, dword [0x633c8c]
cmp eax, 0xa8c
jbe 0x41824e
mov byte [0x633c98], 5
jmp 0x418280
cmp eax, 0x7d0
jbe 0x41825e
mov byte [0x633c98], 4
jmp 0x418280
mov byte [0x633c98], 3
jmp 0x418280
mov byte [0x633c98], 5
jmp 0x418280
mov byte [0x633c98], 6
jmp 0x418280
mov byte [0x633c98], 6
movzx eax, byte [0x633c98]
mov byte [0x633c95], al
mov byte [0x633c97], 0
jmp 0x41848b
cmp byte [0x633c96], 0
je 0x41848b
mov eax, dword [0x633c84]
cmp eax, 0xa
ja case.0x4182b3.7
jmp dword [eax*4 + 0x4182ba]
mov byte [0x633c98], 7
jmp 0x4183de
mov byte [0x633c98], 8
jmp 0x4183de
mov eax, dword [0x633c88]
sub eax, 1
jb 0x41830c
je 0x418318
jmp 0x418324
mov byte [0x633c98], 9
jmp 0x4183de
mov byte [0x633c98], 0xa
jmp 0x4183de
cmp byte [ebp - 0x9a], 1
jne 0x418339
mov byte [0x633c98], 0xa
jmp 0x4183de
mov byte [0x633c98], 0xb
jmp 0x4183de
mov eax, dword [0x633c88]
sub eax, 1
jb 0x418359
je 0x418374
dec eax
je 0x41838f
dec eax
je 0x4183aa
jmp 0x4183c5
cmp byte [ebp - 0x9a], 1
jne 0x41836b
mov byte [0x633c98], 0xc
jmp 0x4183de
mov byte [0x633c98], 0xd
jmp 0x4183de
cmp byte [ebp - 0x9a], 1
jne 0x418386
mov byte [0x633c98], 0xe
jmp 0x4183de
mov byte [0x633c98], 0xf
jmp 0x4183de
cmp byte [ebp - 0x9a], 1
jne 0x4183a1
mov byte [0x633c98], 0x10
jmp 0x4183de
mov byte [0x633c98], 0x11
jmp 0x4183de
cmp byte [ebp - 0x9a], 1
jne 0x4183bc
mov byte [0x633c98], 0x12
jmp 0x4183de
mov byte [0x633c98], 0x13
jmp 0x4183de
mov byte [0x633c98], 0x15
jmp 0x4183de
mov byte [0x633c98], 0x14
jmp 0x4183de
mov byte [0x633c98], 0x15
mov byte [0x633c95], 0
movzx eax, byte [0x633c98]
mov byte [0x633c97], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x41840b
movzx eax, word [ebp - 0xa0]
mov dword [0x633c9c], eax
jmp 0x418447
mov eax, dword [0x633c90]
call fcn.00406d20
cmp eax, 0xe
jl 0x418447
mov eax, dword [0x633c90]
call fcn.00406d20
sub eax, 0xd
push eax
mov eax, 0x633c90
call fcn.00407480
lea edx, [eax + 0x1a]
mov ebx, dword [0x62f8ec]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x633c9c], eax
push 0x4185e0
push 0x418608
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409db4
mov ebx, eax
test ebx, ebx
je 0x41848b
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.0040abf0
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x633c99], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x633c98]
mov edx, dword [edx*4 + 0x617b88]
mov ecx, 0
call fcn.00405cfc
mov edx, dword [ebp - 0x1dc]
mov eax, 0x633ca0
call fcn.00406bcc
cmp byte [0x633c96], 0
je 0x418578
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4184e0
mov eax, 0x633ca0
mov edx, 0x418630
call fcn.00406dc4
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4184fa
mov eax, 0x633ca0
mov edx, 0x418644
call fcn.00406dc4
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x418514
mov eax, 0x633ca0
mov edx, 0x418668
call fcn.00406dc4
cmp byte [0x633c98], 0xc
jae 0x418537
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x418537
mov eax, 0x633ca0
mov edx, 0x418688
call fcn.00406dc4
cmp byte [0x633c99], 0
je 0x41854f
mov eax, 0x633ca0
mov edx, 0x4186b0
call fcn.00406dc4
cmp dword [0x633c90], 0
je 0x418578
push dword [0x633ca0]
push 0x4186c8
push dword [0x633c90]
mov eax, 0x633ca0
mov edx, 3
call fcn.00406f68
mov eax, dword [ebp - 4]
mov edx, 0x633c84
mov ecx, dword [0x417f00]
call fcn.00407a6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4185ab
lea eax, [ebp - 0x1dc]
call fcn.00405a18
ret