Function at 0x527a80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x52800b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je case.0x527acf.0
mov eax, dword [esi + 0x14]
cmp eax, 0xb
ja case.0x527acf.0
mov al, byte [eax + 0x527ad6]
jmp dword [eax*4 + 0x527ae2]
lea edx, [ebp - 8]
mov eax, dword [esi + 4]
call fcn.004fc3a8
cmp dword [ebp - 8], 0
je case.0x527acf.0
mov eax, dword [ebp - 8]
call fcn.00404cf0
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
jne 0x527b38
mov eax, dword [ebp - 8]
call fcn.00404cf0
mov edx, eax
lea eax, [ebp - 8]
mov ecx, 1
call fcn.00404f90
lea eax, [ebp - 0xc]
mov edx, dword [esi + 8]
call fcn.00404ac8
cmp dword [ebp - 0xc], 0
je 0x527b61
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x5c
je 0x527b61
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x528024
call fcn.00404d3c
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00404cf8
mov eax, dword [esi + 0x14]
sub eax, 1
jb 0x527b7e
je 0x527b8d
dec eax
je 0x527b9e
dec eax
je 0x527bad
jmp 0x527bbc
mov eax, dword [ebp - 8]
call fcn.00409c9c
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x527bbc
mov eax, dword [ebp - 8]
call fcn.00409c9c
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x527bbc
mov eax, dword [ebp - 8]
call fcn.00409cac
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x527bbc
mov eax, dword [ebp - 8]
call fcn.00409cac
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx], al
mov bl, 1
jmp case.0x527acf.0
lea eax, [ebp - 8]
mov edx, dword [esi + 4]
call fcn.00404ac8
cmp dword [ebp - 8], 0
je case.0x527acf.0
mov edx, dword [ebp - 8]
mov eax, 0x528030
call fcn.00405034
mov edi, eax
test edi, edi
je case.0x527acf.0
mov ecx, edi
dec ecx
lea eax, [ebp - 8]
mov edx, 1
call fcn.00404f90
mov edx, dword [ebp - 8]
mov eax, 0x52803c
call fcn.00405034
mov edi, eax
test edi, edi
je 0x527c26
mov eax, dword [ebp - 8]
call fcn.00404cf0
mov ecx, eax
lea eax, [ebp - 8]
mov edx, edi
call fcn.00404f90
mov edx, dword [ebp - 8]
mov eax, 0x528048
call fcn.00405034
mov edi, eax
test edi, edi
je 0x527c4d
mov eax, dword [ebp - 8]
call fcn.00404cf0
mov ecx, eax
lea eax, [ebp - 8]
mov edx, edi
call fcn.00404f90
cmp dword [esi + 0x14], 4
jne 0x527c70
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 8]
call fcn.0052794c
cmp dword [ebp - 0xa8], 0
mov eax, dword [ebp - 4]
setne byte [eax]
jmp 0x527c8b
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 8]
call fcn.0052794c
cmp dword [ebp - 0xac], 0
mov eax, dword [ebp - 4]
sete byte [eax]
mov bl, 1
jmp case.0x527acf.0
mov dword [ebp - 0xa4], 0x94
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je case.0x527acf.0
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x9c]
mov ecx, dword [esi + 0x14]
sub ecx, 6
je 0x527ccc
dec ecx
je 0x527cd7
dec ecx
je 0x527cf2
jmp 0x527cfb
cmp eax, 5
mov eax, dword [ebp - 4]
setae byte [eax]
jmp 0x527cfb
cmp eax, 5
ja 0x527ce9
cmp eax, 5
jne 0x527ce5
test edx, edx
ja 0x527ce9
xor eax, eax
jmp 0x527ceb
mov al, 1
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x527cfb
cmp eax, 5
mov eax, dword [ebp - 4]
seta byte [eax]
mov bl, 1
jmp case.0x527acf.0
test edx, edx
je case.0x527acf.0
mov eax, edx
mov edx, dword [esi + 4]
call fcn.005287f4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je case.0x527acf.0
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 4]
add eax, 0xffffffef
cmp eax, 0xe
ja case.0x527acf.0
mov al, byte [eax + 0x527d41]
jmp dword [eax*4 + 0x527d50]
cmp dword [esi + 0x14], 9
jne 0x527d91
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
mov edx, dword [0x534734]
call fcn.00403dac
mov edx, dword [eax]
call dword [edx + 0xc8]
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x527fd0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
mov edx, dword [0x534734]
call fcn.00403dac
mov edx, dword [eax]
call dword [edx + 0xc8]
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x527fd0
cmp dword [esi + 0x14], 9
jne 0x527ddf
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
mov edx, dword [0x5345a8]
call fcn.00403dac
mov edx, dword [eax]
call dword [edx + 0xc8]
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x527fd0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
mov edx, dword [0x5345a8]
call fcn.00403dac
mov edx, dword [eax]
call dword [edx + 0xc8]
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x527fd0
cmp dword [esi + 8], 0
je case.0x527acf.0
mov eax, dword [esi + 8]
call fcn.004097ec
mov edi, eax
test edi, edi
jl case.0x527acf.0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
mov edx, dword [0x535cdc]
call fcn.00403dac
mov eax, dword [eax + 0x218]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp edi, eax
jge case.0x527acf.0
cmp dword [esi + 0x14], 9
jne 0x527e70
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
mov edx, dword [0x535cdc]
call fcn.00403dac
mov edx, dword [eax]
call dword [edx + 0xcc]
cmp edi, eax
mov eax, dword [ebp - 4]
sete byte [eax]
jmp 0x527fd0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
mov edx, dword [0x535cdc]
call fcn.00403dac
mov edx, dword [eax]
call dword [edx + 0xcc]
cmp edi, eax
sete al
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x527fd0
cmp dword [esi + 8], 0
je case.0x527acf.0
mov eax, dword [esi + 8]
call fcn.004097ec
mov edi, eax
test edi, edi
jl case.0x527acf.0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
mov edx, dword [0x535ea8]
call fcn.00403dac
mov eax, dword [eax + 0x23c]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp edi, eax
jge case.0x527acf.0
cmp dword [esi + 0x14], 9
jne 0x527f06
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
mov edx, dword [0x535ea8]
call fcn.00403dac
mov edx, dword [eax]
call dword [edx + 0xcc]
cmp edi, eax
mov eax, dword [ebp - 4]
sete byte [eax]
jmp 0x527fd0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
mov edx, dword [0x535ea8]
call fcn.00403dac
mov edx, dword [eax]
call dword [edx + 0xcc]
cmp edi, eax
sete al
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x527fd0
cmp dword [esi + 8], 0
je case.0x527acf.0
mov eax, dword [esi + 8]
call fcn.004097ec
mov edi, eax
test edi, edi
jl case.0x527acf.0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
mov edx, dword [0x536070]
call fcn.00403dac
mov eax, dword [eax + 0x22c]
call fcn.0045f4cc
cmp edi, eax
jge case.0x527acf.0
cmp dword [esi + 0x14], 9
jne 0x527fa1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
mov edx, dword [0x536070]
call fcn.00403dac
mov eax, dword [eax + 0x22c]
mov edx, edi
call fcn.0045f4fc
mov edx, 3
call fcn.0045eff0
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x527fd0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
mov edx, dword [0x536070]
call fcn.00403dac
mov eax, dword [eax + 0x22c]
mov edx, edi
call fcn.0045f4fc
mov edx, 3
call fcn.0045eff0
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx], al
mov bl, 1
jmp case.0x527acf.0
call fcn.004f907c
mov edx, dword [ebp - 4]
mov byte [edx], al
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x528012
lea eax, [ebp - 0xac]
mov edx, 2
call fcn.00404a54
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404a54
ret