Function at 0x525400
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x52596e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test edi, edi
je case.0x5256ab.17
mov eax, dword [edi + 0x14]
sub eax, 4
jb 0x525468
sub eax, 2
jb 0x525531
sub eax, 3
jb 0x525600
sub eax, 2
jb 0x525670
jmp case.0x5256ab.17
lea edx, [ebp - 0xc]
mov eax, dword [edi + 4]
call fcn.004fb59c
cmp dword [ebp - 0xc], 0
je case.0x5256ab.17
mov eax, dword [ebp - 0xc]
call fcn.004046f4
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0x5c
jne 0x5254a6
mov eax, dword [ebp - 0xc]
call fcn.004046f4
mov edx, eax
lea eax, [ebp - 0xc]
mov ecx, 1
call fcn.00404994
lea eax, [ebp - 0x10]
mov edx, dword [edi + 8]
call fcn.004044cc
cmp dword [ebp - 0x10], 0
je 0x5254cf
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x5c
je 0x5254cf
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x525988
call fcn.00404740
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.004046fc
mov eax, dword [edi + 0x14]
sub eax, 1
jb 0x5254ec
je 0x5254fb
dec eax
je 0x52550c
dec eax
je 0x52551b
jmp 0x52552a
mov eax, dword [ebp - 0xc]
call fcn.00409430
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x52552a
mov eax, dword [ebp - 0xc]
call fcn.00409430
xor al, 1
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x52552a
mov eax, dword [ebp - 0xc]
call fcn.00409440
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x52552a
mov eax, dword [ebp - 0xc]
call fcn.00409440
xor al, 1
mov edx, dword [ebp - 8]
mov byte [edx], al
mov bl, 1
jmp case.0x5256ab.17
lea eax, [ebp - 0xc]
mov edx, dword [edi + 4]
call fcn.004044cc
cmp dword [ebp - 0xc], 0
je case.0x5256ab.17
mov edx, dword [ebp - 0xc]
mov eax, 0x525994
call fcn.00404a38
mov esi, eax
test esi, esi
je case.0x5256ab.17
mov ecx, esi
dec ecx
lea eax, [ebp - 0xc]
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 0xc]
mov eax, 0x5259a0
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x525594
mov eax, dword [ebp - 0xc]
call fcn.004046f4
mov ecx, eax
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00404994
mov edx, dword [ebp - 0xc]
mov eax, 0x5259ac
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x5255bb
mov eax, dword [ebp - 0xc]
call fcn.004046f4
mov ecx, eax
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00404994
cmp dword [edi + 0x14], 4
jne 0x5255de
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0xc]
call fcn.005252cc
cmp dword [ebp - 0xac], 0
mov eax, dword [ebp - 8]
setne byte [eax]
jmp 0x5255f9
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0xc]
call fcn.005252cc
cmp dword [ebp - 0xb0], 0
mov eax, dword [ebp - 8]
sete byte [eax]
mov bl, 1
jmp case.0x5256ab.17
mov dword [ebp - 0xa8], 0x94
lea eax, [ebp - 0xa8]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je case.0x5256ab.17
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
mov ecx, dword [edi + 0x14]
sub ecx, 6
je 0x52563a
dec ecx
je 0x525645
dec ecx
je 0x525660
jmp 0x525669
cmp eax, 5
mov eax, dword [ebp - 8]
setae byte [eax]
jmp 0x525669
cmp eax, 5
ja 0x525657
cmp eax, 5
jne 0x525653
test edx, edx
ja 0x525657
xor eax, eax
jmp 0x525659
mov al, 1
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x525669
cmp eax, 5
mov eax, dword [ebp - 8]
seta byte [eax]
mov bl, 1
jmp case.0x5256ab.17
cmp dword [ebp - 4], 0
je case.0x5256ab.17
mov edx, dword [edi + 4]
mov eax, dword [ebp - 4]
call fcn.00526158
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je case.0x5256ab.17
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 4]
add eax, 0xffffffef
cmp eax, 0xe
ja case.0x5256ab.17
mov al, byte [eax + 0x5256b2]
jmp dword [eax*4 + 0x5256c1]
cmp dword [edi + 0x14], 9
jne 0x525702
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x531f5c]
call fcn.004037b0
mov edx, dword [eax]
call dword [edx + 0xc8]
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x525941
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x531f5c]
call fcn.004037b0
mov edx, dword [eax]
call dword [edx + 0xc8]
xor al, 1
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x525941
cmp dword [edi + 0x14], 9
jne 0x525750
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x531dd0]
call fcn.004037b0
mov edx, dword [eax]
call dword [edx + 0xc8]
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x525941
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x531dd0]
call fcn.004037b0
mov edx, dword [eax]
call dword [edx + 0xc8]
xor al, 1
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x525941
cmp dword [edi + 8], 0
je case.0x5256ab.17
mov eax, dword [edi + 8]
call fcn.00408f80
mov esi, eax
test esi, esi
jl case.0x5256ab.17
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x533504]
call fcn.004037b0
mov eax, dword [eax + 0x218]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp esi, eax
jge case.0x5256ab.17
cmp dword [edi + 0x14], 9
jne 0x5257e1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x533504]
call fcn.004037b0
mov edx, dword [eax]
call dword [edx + 0xcc]
cmp esi, eax
mov eax, dword [ebp - 8]
sete byte [eax]
jmp 0x525941
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x533504]
call fcn.004037b0
mov edx, dword [eax]
call dword [edx + 0xcc]
cmp esi, eax
sete al
xor al, 1
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x525941
cmp dword [edi + 8], 0
je case.0x5256ab.17
mov eax, dword [edi + 8]
call fcn.00408f80
mov esi, eax
test esi, esi
jl case.0x5256ab.17
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x5336d0]
call fcn.004037b0
mov eax, dword [eax + 0x23c]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp esi, eax
jge case.0x5256ab.17
cmp dword [edi + 0x14], 9
jne 0x525877
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x5336d0]
call fcn.004037b0
mov edx, dword [eax]
call dword [edx + 0xcc]
cmp esi, eax
mov eax, dword [ebp - 8]
sete byte [eax]
jmp 0x525941
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x5336d0]
call fcn.004037b0
mov edx, dword [eax]
call dword [edx + 0xcc]
cmp esi, eax
sete al
xor al, 1
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x525941
cmp dword [edi + 8], 0
je case.0x5256ab.17
mov eax, dword [edi + 8]
call fcn.00408f80
mov esi, eax
test esi, esi
jl case.0x5256ab.17
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x533898]
call fcn.004037b0
mov eax, dword [eax + 0x22c]
call fcn.0045e7c0
cmp esi, eax
jge case.0x5256ab.17
cmp dword [edi + 0x14], 9
jne 0x525912
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x533898]
call fcn.004037b0
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.0045e7f0
mov edx, 3
call fcn.0045e2e4
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x525941
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x533898]
call fcn.004037b0
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.0045e7f0
mov edx, 3
call fcn.0045e2e4
xor al, 1
mov edx, dword [ebp - 8]
mov byte [edx], al
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525975
lea eax, [ebp - 0xb0]
mov edx, 2
call fcn.00404458
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404458
ret