Function at 0x41817c
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 0x4186c0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x603c04], 0
je 0x4181b5
cmp dword [0x617ca0], 0
jne 0x418694
mov byte [0x603c04], 1
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x418236
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.0040ad00
mov dword [ebp - 0x1b4], 0x11c
push 0x4186cc
push 0x4186e8
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409e4c
mov ebx, eax
test ebx, ebx
je 0x41820e
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x418290
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x418290
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x418290
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.0040ad00
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.004032cc
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 0x418283
mov eax, dword [ebp - 0x1b0]
mov dword [0x617c84], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x617c88], eax
mov eax, 0x617c90
lea edx, [ebp - 0x1a0]
mov ecx, 0x80
call fcn.00406c08
mov eax, dword [ebp - 0x1a4]
cmp eax, 1
sete dl
mov byte [0x617c94], dl
cmp eax, 2
sete al
mov byte [0x617c96], al
cmp byte [0x617c94], 0
je 0x4182ef
movzx eax, word [ebp - 0x1a8]
mov dword [0x617c8c], eax
jmp 0x4182fa
mov eax, dword [ebp - 0x1a8]
mov dword [0x617c8c], eax
mov byte [0x617c98], 0
xor eax, eax
mov dword [0x617c9c], eax
cmp byte [0x617c94], 0
je 0x4183b4
mov eax, dword [0x617c84]
sub eax, 4
jb 0x41839c
je 0x418323
jmp 0x418395
mov eax, dword [0x617c88]
sub eax, 0xa
jb 0x418337
je 0x418355
dec eax
sub eax, 0x50
jb 0x418383
jmp 0x41838c
cmp dword [0x617c8c], 0x3e8
jbe 0x41834c
mov byte [0x617c98], 2
jmp 0x41839c
mov byte [0x617c98], 1
jmp 0x41839c
mov eax, dword [0x617c8c]
cmp eax, 0xa8c
jbe 0x41836a
mov byte [0x617c98], 5
jmp 0x41839c
cmp eax, 0x7d0
jbe 0x41837a
mov byte [0x617c98], 4
jmp 0x41839c
mov byte [0x617c98], 3
jmp 0x41839c
mov byte [0x617c98], 5
jmp 0x41839c
mov byte [0x617c98], 6
jmp 0x41839c
mov byte [0x617c98], 6
movzx eax, byte [0x617c98]
mov byte [0x617c95], al
mov byte [0x617c97], 0
jmp 0x4185a7
cmp byte [0x617c96], 0
je 0x4185a7
mov eax, dword [0x617c84]
cmp eax, 0xa
ja case.0x4183cf.7
jmp dword [eax*4 + 0x4183d6]
mov byte [0x617c98], 7
jmp 0x4184fa
mov byte [0x617c98], 8
jmp 0x4184fa
mov eax, dword [0x617c88]
sub eax, 1
jb 0x418428
je 0x418434
jmp 0x418440
mov byte [0x617c98], 9
jmp 0x4184fa
mov byte [0x617c98], 0xa
jmp 0x4184fa
cmp byte [ebp - 0x9a], 1
jne 0x418455
mov byte [0x617c98], 0xa
jmp 0x4184fa
mov byte [0x617c98], 0xb
jmp 0x4184fa
mov eax, dword [0x617c88]
sub eax, 1
jb 0x418475
je 0x418490
dec eax
je 0x4184ab
dec eax
je 0x4184c6
jmp 0x4184e1
cmp byte [ebp - 0x9a], 1
jne 0x418487
mov byte [0x617c98], 0xc
jmp 0x4184fa
mov byte [0x617c98], 0xd
jmp 0x4184fa
cmp byte [ebp - 0x9a], 1
jne 0x4184a2
mov byte [0x617c98], 0xe
jmp 0x4184fa
mov byte [0x617c98], 0xf
jmp 0x4184fa
cmp byte [ebp - 0x9a], 1
jne 0x4184bd
mov byte [0x617c98], 0x10
jmp 0x4184fa
mov byte [0x617c98], 0x11
jmp 0x4184fa
cmp byte [ebp - 0x9a], 1
jne 0x4184d8
mov byte [0x617c98], 0x12
jmp 0x4184fa
mov byte [0x617c98], 0x13
jmp 0x4184fa
mov byte [0x617c98], 0x15
jmp 0x4184fa
mov byte [0x617c98], 0x14
jmp 0x4184fa
mov byte [0x617c98], 0x15
mov byte [0x617c95], 0
movzx eax, byte [0x617c98]
mov byte [0x617c97], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x418527
movzx eax, word [ebp - 0xa0]
mov dword [0x617c9c], eax
jmp 0x418563
mov eax, dword [0x617c90]
call fcn.00406d78
cmp eax, 0xe
jl 0x418563
mov eax, dword [0x617c90]
call fcn.00406d78
sub eax, 0xd
push eax
mov eax, 0x617c90
call fcn.004074d8
lea edx, [eax + 0x1a]
mov ebx, dword [0x6131ac]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x617c9c], eax
push 0x4186fc
push 0x418724
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409e4c
mov ebx, eax
test ebx, ebx
je 0x4185a7
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.0040ad00
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x617c99], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x617c98]
mov edx, dword [edx*4 + 0x603b80]
mov ecx, 0
call fcn.00405d20
mov edx, dword [ebp - 0x1dc]
mov eax, 0x617ca0
call fcn.00406c24
cmp byte [0x617c96], 0
je 0x418694
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4185fc
mov eax, 0x617ca0
mov edx, 0x41874c
call fcn.00406e1c
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x418616
mov eax, 0x617ca0
mov edx, 0x418760
call fcn.00406e1c
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x418630
mov eax, 0x617ca0
mov edx, 0x418784
call fcn.00406e1c
cmp byte [0x617c98], 0xc
jae 0x418653
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x418653
mov eax, 0x617ca0
mov edx, 0x4187a4
call fcn.00406e1c
cmp byte [0x617c99], 0
je 0x41866b
mov eax, 0x617ca0
mov edx, 0x4187cc
call fcn.00406e1c
cmp dword [0x617c90], 0
je 0x418694
push dword [0x617ca0]
push 0x4187e4
push dword [0x617c90]
mov eax, 0x617ca0
mov edx, 3
call fcn.00406fc0
mov eax, dword [ebp - 4]
mov edx, 0x617c84
mov ecx, dword [0x41801c]
call fcn.00407ac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4186c7
lea eax, [ebp - 0x1dc]
call fcn.00405a3c
ret