Function at 0x5c2330
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 0x5c2874
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x762e15], 0
je 0x5c2369
cmp dword [0x779408], 0
jne 0x5c2848
mov byte [0x762e15], 1
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x5c23ea
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.00414668
mov dword [ebp - 0x1b4], 0x11c
push 0x5c2880
push 0x5c289c
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00413720
mov ebx, eax
test ebx, ebx
je 0x5c23c2
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x5c2444
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x5c2444
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x5c2444
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.00414668
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.004066d8
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 0x5c2437
mov eax, dword [ebp - 0x1b0]
mov dword [0x7793ec], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x7793f0], eax
mov eax, 0x7793f8
lea edx, [ebp - 0x1a0]
mov ecx, 0x80
call fcn.0040ad70
mov eax, dword [ebp - 0x1a4]
cmp eax, 1
sete dl
mov byte [0x7793fc], dl
cmp eax, 2
sete al
mov byte [0x7793fe], al
cmp byte [0x7793fc], 0
je 0x5c24a3
movzx eax, word [ebp - 0x1a8]
mov dword [0x7793f4], eax
jmp 0x5c24ae
mov eax, dword [ebp - 0x1a8]
mov dword [0x7793f4], eax
mov byte [0x779400], 0
xor eax, eax
mov dword [0x779404], eax
cmp byte [0x7793fc], 0
je 0x5c2568
mov eax, dword [0x7793ec]
sub eax, 4
jb 0x5c2550
je 0x5c24d7
jmp 0x5c2549
mov eax, dword [0x7793f0]
sub eax, 0xa
jb 0x5c24eb
je 0x5c2509
dec eax
sub eax, 0x50
jb 0x5c2537
jmp 0x5c2540
cmp dword [0x7793f4], 0x3e8
jbe 0x5c2500
mov byte [0x779400], 2
jmp 0x5c2550
mov byte [0x779400], 1
jmp 0x5c2550
mov eax, dword [0x7793f4]
cmp eax, 0xa8c
jbe 0x5c251e
mov byte [0x779400], 5
jmp 0x5c2550
cmp eax, 0x7d0
jbe 0x5c252e
mov byte [0x779400], 4
jmp 0x5c2550
mov byte [0x779400], 3
jmp 0x5c2550
mov byte [0x779400], 5
jmp 0x5c2550
mov byte [0x779400], 6
jmp 0x5c2550
mov byte [0x779400], 6
movzx eax, byte [0x779400]
mov byte [0x7793fd], al
mov byte [0x7793ff], 0
jmp 0x5c275b
cmp byte [0x7793fe], 0
je 0x5c275b
mov eax, dword [0x7793ec]
cmp eax, 0xa
ja case.0x5c2583.7
jmp dword [eax*4 + 0x5c258a]
mov byte [0x779400], 7
jmp 0x5c26ae
mov byte [0x779400], 8
jmp 0x5c26ae
mov eax, dword [0x7793f0]
sub eax, 1
jb 0x5c25dc
je 0x5c25e8
jmp 0x5c25f4
mov byte [0x779400], 9
jmp 0x5c26ae
mov byte [0x779400], 0xa
jmp 0x5c26ae
cmp byte [ebp - 0x9a], 1
jne 0x5c2609
mov byte [0x779400], 0xa
jmp 0x5c26ae
mov byte [0x779400], 0xb
jmp 0x5c26ae
mov eax, dword [0x7793f0]
sub eax, 1
jb 0x5c2629
je 0x5c2644
dec eax
je 0x5c265f
dec eax
je 0x5c267a
jmp 0x5c2695
cmp byte [ebp - 0x9a], 1
jne 0x5c263b
mov byte [0x779400], 0xc
jmp 0x5c26ae
mov byte [0x779400], 0xd
jmp 0x5c26ae
cmp byte [ebp - 0x9a], 1
jne 0x5c2656
mov byte [0x779400], 0xe
jmp 0x5c26ae
mov byte [0x779400], 0xf
jmp 0x5c26ae
cmp byte [ebp - 0x9a], 1
jne 0x5c2671
mov byte [0x779400], 0x10
jmp 0x5c26ae
mov byte [0x779400], 0x11
jmp 0x5c26ae
cmp byte [ebp - 0x9a], 1
jne 0x5c268c
mov byte [0x779400], 0x12
jmp 0x5c26ae
mov byte [0x779400], 0x13
jmp 0x5c26ae
mov byte [0x779400], 0x15
jmp 0x5c26ae
mov byte [0x779400], 0x14
jmp 0x5c26ae
mov byte [0x779400], 0x15
mov byte [0x7793fd], 0
movzx eax, byte [0x779400]
mov byte [0x7793ff], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x5c26db
movzx eax, word [ebp - 0xa0]
mov dword [0x779404], eax
jmp 0x5c2717
mov eax, dword [0x7793f8]
call fcn.0040a334
cmp eax, 0xe
jl 0x5c2717
mov eax, dword [0x7793f8]
call fcn.0040a334
sub eax, 0xd
push eax
mov eax, 0x7793f8
call fcn.0040a3fc
lea edx, [eax + 0x1a]
mov ebx, dword [0x77312c]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x779404], eax
push 0x5c28b0
push 0x5c28d8
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00413720
mov ebx, eax
test ebx, ebx
je 0x5c275b
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.00414668
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x779401], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x779400]
mov edx, dword [edx*4 + 0x762db0]
mov ecx, 0
call fcn.0040a5c4
mov edx, dword [ebp - 0x1dc]
mov eax, 0x779408
call fcn.0040ad8c
cmp byte [0x7793fe], 0
je 0x5c2848
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x5c27b0
mov eax, 0x779408
mov edx, 0x5c2900
call fcn.0040aec8
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x5c27ca
mov eax, 0x779408
mov edx, 0x5c2914
call fcn.0040aec8
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x5c27e4
mov eax, 0x779408
mov edx, 0x5c2938
call fcn.0040aec8
cmp byte [0x779400], 0xc
jae 0x5c2807
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x5c2807
mov eax, 0x779408
mov edx, 0x5c2958
call fcn.0040aec8
cmp byte [0x779401], 0
je 0x5c281f
mov eax, 0x779408
mov edx, 0x5c2980
call fcn.0040aec8
cmp dword [0x7793f8], 0
je 0x5c2848
push dword [0x779408]
push 0x5c2998
push dword [0x7793f8]
mov eax, 0x779408
mov edx, 3
call fcn.0040afa8
mov eax, dword [ebp - 4]
mov edx, 0x7793ec
mov ecx, dword [0x5c1d9c]
call fcn.0040b920
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c287b
lea eax, [ebp - 0x1dc]
call fcn.00409e60
ret