Function at 0x41780c
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 0x417d50
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x54ac08], 0
je 0x417845
cmp dword [0x55bc70], 0
jne 0x417d24
mov byte [0x54ac08], 1
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4178c6
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.0040a41c
mov dword [ebp - 0x1b4], 0x11c
push 0x417d5c
push 0x417d78
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409750
mov ebx, eax
test ebx, ebx
je 0x41789e
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x417920
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x417920
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x417920
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.0040a41c
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.0040323c
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 0x417913
mov eax, dword [ebp - 0x1b0]
mov dword [0x55bc54], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x55bc58], eax
mov eax, 0x55bc60
lea edx, [ebp - 0x1a0]
mov ecx, 0x80
call fcn.004068d8
mov eax, dword [ebp - 0x1a4]
cmp eax, 1
sete dl
mov byte [0x55bc64], dl
cmp eax, 2
sete al
mov byte [0x55bc66], al
cmp byte [0x55bc64], 0
je 0x41797f
movzx eax, word [ebp - 0x1a8]
mov dword [0x55bc5c], eax
jmp 0x41798a
mov eax, dword [ebp - 0x1a8]
mov dword [0x55bc5c], eax
mov byte [0x55bc68], 0
xor eax, eax
mov dword [0x55bc6c], eax
cmp byte [0x55bc64], 0
je 0x417a44
mov eax, dword [0x55bc54]
sub eax, 4
jb 0x417a2c
je 0x4179b3
jmp 0x417a25
mov eax, dword [0x55bc58]
sub eax, 0xa
jb 0x4179c7
je 0x4179e5
dec eax
sub eax, 0x50
jb 0x417a13
jmp 0x417a1c
cmp dword [0x55bc5c], 0x3e8
jbe 0x4179dc
mov byte [0x55bc68], 2
jmp 0x417a2c
mov byte [0x55bc68], 1
jmp 0x417a2c
mov eax, dword [0x55bc5c]
cmp eax, 0xa8c
jbe 0x4179fa
mov byte [0x55bc68], 5
jmp 0x417a2c
cmp eax, 0x7d0
jbe 0x417a0a
mov byte [0x55bc68], 4
jmp 0x417a2c
mov byte [0x55bc68], 3
jmp 0x417a2c
mov byte [0x55bc68], 5
jmp 0x417a2c
mov byte [0x55bc68], 6
jmp 0x417a2c
mov byte [0x55bc68], 6
movzx eax, byte [0x55bc68]
mov byte [0x55bc65], al
mov byte [0x55bc67], 0
jmp 0x417c37
cmp byte [0x55bc66], 0
je 0x417c37
mov eax, dword [0x55bc54]
cmp eax, 0xa
ja case.0x417a5f.7
jmp dword [eax*4 + 0x417a66]
mov byte [0x55bc68], 7
jmp 0x417b8a
mov byte [0x55bc68], 8
jmp 0x417b8a
mov eax, dword [0x55bc58]
sub eax, 1
jb 0x417ab8
je 0x417ac4
jmp 0x417ad0
mov byte [0x55bc68], 9
jmp 0x417b8a
mov byte [0x55bc68], 0xa
jmp 0x417b8a
cmp byte [ebp - 0x9a], 1
jne 0x417ae5
mov byte [0x55bc68], 0xa
jmp 0x417b8a
mov byte [0x55bc68], 0xb
jmp 0x417b8a
mov eax, dword [0x55bc58]
sub eax, 1
jb 0x417b05
je 0x417b20
dec eax
je 0x417b3b
dec eax
je 0x417b56
jmp 0x417b71
cmp byte [ebp - 0x9a], 1
jne 0x417b17
mov byte [0x55bc68], 0xc
jmp 0x417b8a
mov byte [0x55bc68], 0xd
jmp 0x417b8a
cmp byte [ebp - 0x9a], 1
jne 0x417b32
mov byte [0x55bc68], 0xe
jmp 0x417b8a
mov byte [0x55bc68], 0xf
jmp 0x417b8a
cmp byte [ebp - 0x9a], 1
jne 0x417b4d
mov byte [0x55bc68], 0x10
jmp 0x417b8a
mov byte [0x55bc68], 0x11
jmp 0x417b8a
cmp byte [ebp - 0x9a], 1
jne 0x417b68
mov byte [0x55bc68], 0x12
jmp 0x417b8a
mov byte [0x55bc68], 0x13
jmp 0x417b8a
mov byte [0x55bc68], 0x15
jmp 0x417b8a
mov byte [0x55bc68], 0x14
jmp 0x417b8a
mov byte [0x55bc68], 0x15
mov byte [0x55bc65], 0
movzx eax, byte [0x55bc68]
mov byte [0x55bc67], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x417bb7
movzx eax, word [ebp - 0xa0]
mov dword [0x55bc6c], eax
jmp 0x417bf3
mov eax, dword [0x55bc60]
call fcn.00406988
cmp eax, 0xe
jl 0x417bf3
mov eax, dword [0x55bc60]
call fcn.00406988
sub eax, 0xd
push eax
mov eax, 0x55bc60
call fcn.00407050
lea edx, [eax + 0x1a]
mov ebx, dword [0x557284]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x55bc6c], eax
push 0x417d8c
push 0x417db4
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409750
mov ebx, eax
test ebx, ebx
je 0x417c37
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.0040a41c
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x55bc69], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x55bc68]
mov edx, dword [edx*4 + 0x54ab84]
mov ecx, 0
call fcn.00405c38
mov edx, dword [ebp - 0x1dc]
mov eax, 0x55bc70
call fcn.004068f4
cmp byte [0x55bc66], 0
je 0x417d24
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x417c8c
mov eax, 0x55bc70
mov edx, 0x417ddc
call fcn.00406a2c
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x417ca6
mov eax, 0x55bc70
mov edx, 0x417df0
call fcn.00406a2c
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x417cc0
mov eax, 0x55bc70
mov edx, 0x417e14
call fcn.00406a2c
cmp byte [0x55bc68], 0xc
jae 0x417ce3
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x417ce3
mov eax, 0x55bc70
mov edx, 0x417e34
call fcn.00406a2c
cmp byte [0x55bc69], 0
je 0x417cfb
mov eax, 0x55bc70
mov edx, 0x417e5c
call fcn.00406a2c
cmp dword [0x55bc60], 0
je 0x417d24
push dword [0x55bc70]
push 0x417e74
push dword [0x55bc60]
mov eax, 0x55bc70
mov edx, 3
call fcn.00406b7c
mov eax, dword [ebp - 4]
mov edx, 0x55bc54
mov ecx, dword [0x4176ac]
call fcn.00407344
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417d57
lea eax, [ebp - 0x1dc]
call fcn.00405984
ret