Function at 0x524ba8
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 0x525116
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test edi, edi
je case.0x524e53.17
mov eax, dword [edi + 0x14]
sub eax, 4
jb 0x524c10
sub eax, 2
jb 0x524cd9
sub eax, 3
jb 0x524da8
sub eax, 2
jb 0x524e18
jmp case.0x524e53.17
lea edx, [ebp - 0xc]
mov eax, dword [edi + 4]
call fcn.004fb518
cmp dword [ebp - 0xc], 0
je case.0x524e53.17
mov eax, dword [ebp - 0xc]
call fcn.004046f4
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0x5c
jne 0x524c4e
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 0x524c77
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x5c
je 0x524c77
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x525130
call fcn.00404740
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.004046fc
mov eax, dword [edi + 0x14]
sub eax, 1
jb 0x524c94
je 0x524ca3
dec eax
je 0x524cb4
dec eax
je 0x524cc3
jmp 0x524cd2
mov eax, dword [ebp - 0xc]
call fcn.00409430
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x524cd2
mov eax, dword [ebp - 0xc]
call fcn.00409430
xor al, 1
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x524cd2
mov eax, dword [ebp - 0xc]
call fcn.00409440
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x524cd2
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.0x524e53.17
lea eax, [ebp - 0xc]
mov edx, dword [edi + 4]
call fcn.004044cc
cmp dword [ebp - 0xc], 0
je case.0x524e53.17
mov edx, dword [ebp - 0xc]
mov eax, 0x52513c
call fcn.00404a38
mov esi, eax
test esi, esi
je case.0x524e53.17
mov ecx, esi
dec ecx
lea eax, [ebp - 0xc]
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 0xc]
mov eax, 0x525148
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x524d3c
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, 0x525154
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x524d63
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 0x524d86
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0xc]
call fcn.00524a74
cmp dword [ebp - 0xac], 0
mov eax, dword [ebp - 8]
setne byte [eax]
jmp 0x524da1
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0xc]
call fcn.00524a74
cmp dword [ebp - 0xb0], 0
mov eax, dword [ebp - 8]
sete byte [eax]
mov bl, 1
jmp case.0x524e53.17
mov dword [ebp - 0xa8], 0x94
lea eax, [ebp - 0xa8]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je case.0x524e53.17
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
mov ecx, dword [edi + 0x14]
sub ecx, 6
je 0x524de2
dec ecx
je 0x524ded
dec ecx
je 0x524e08
jmp 0x524e11
cmp eax, 5
mov eax, dword [ebp - 8]
setae byte [eax]
jmp 0x524e11
cmp eax, 5
ja 0x524dff
cmp eax, 5
jne 0x524dfb
test edx, edx
ja 0x524dff
xor eax, eax
jmp 0x524e01
mov al, 1
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x524e11
cmp eax, 5
mov eax, dword [ebp - 8]
seta byte [eax]
mov bl, 1
jmp case.0x524e53.17
cmp dword [ebp - 4], 0
je case.0x524e53.17
mov edx, dword [edi + 4]
mov eax, dword [ebp - 4]
call fcn.00525900
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je case.0x524e53.17
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 4]
add eax, 0xffffffef
cmp eax, 0xe
ja case.0x524e53.17
mov al, byte [eax + 0x524e5a]
jmp dword [eax*4 + 0x524e69]
cmp dword [edi + 0x14], 9
jne 0x524eaa
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x531534]
call fcn.004037b0
mov edx, dword [eax]
call dword [edx + 0xc8]
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x5250e9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x531534]
call fcn.004037b0
mov edx, dword [eax]
call dword [edx + 0xc8]
xor al, 1
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x5250e9
cmp dword [edi + 0x14], 9
jne 0x524ef8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x5313a8]
call fcn.004037b0
mov edx, dword [eax]
call dword [edx + 0xc8]
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x5250e9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x5313a8]
call fcn.004037b0
mov edx, dword [eax]
call dword [edx + 0xc8]
xor al, 1
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x5250e9
cmp dword [edi + 8], 0
je case.0x524e53.17
mov eax, dword [edi + 8]
call fcn.00408f80
mov esi, eax
test esi, esi
jl case.0x524e53.17
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x532adc]
call fcn.004037b0
mov eax, dword [eax + 0x218]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp esi, eax
jge case.0x524e53.17
cmp dword [edi + 0x14], 9
jne 0x524f89
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x532adc]
call fcn.004037b0
mov edx, dword [eax]
call dword [edx + 0xcc]
cmp esi, eax
mov eax, dword [ebp - 8]
sete byte [eax]
jmp 0x5250e9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x532adc]
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 0x5250e9
cmp dword [edi + 8], 0
je case.0x524e53.17
mov eax, dword [edi + 8]
call fcn.00408f80
mov esi, eax
test esi, esi
jl case.0x524e53.17
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x532ca8]
call fcn.004037b0
mov eax, dword [eax + 0x23c]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp esi, eax
jge case.0x524e53.17
cmp dword [edi + 0x14], 9
jne 0x52501f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x532ca8]
call fcn.004037b0
mov edx, dword [eax]
call dword [edx + 0xcc]
cmp esi, eax
mov eax, dword [ebp - 8]
sete byte [eax]
jmp 0x5250e9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x532ca8]
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 0x5250e9
cmp dword [edi + 8], 0
je case.0x524e53.17
mov eax, dword [edi + 8]
call fcn.00408f80
mov esi, eax
test esi, esi
jl case.0x524e53.17
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x532e70]
call fcn.004037b0
mov eax, dword [eax + 0x22c]
call fcn.0045e7a0
cmp esi, eax
jge case.0x524e53.17
cmp dword [edi + 0x14], 9
jne 0x5250ba
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x532e70]
call fcn.004037b0
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.0045e7d0
mov edx, 3
call fcn.0045e2c4
mov edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x5250e9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [0x532e70]
call fcn.004037b0
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.0045e7d0
mov edx, 3
call fcn.0045e2c4
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 0x52511d
lea eax, [ebp - 0xb0]
mov edx, 2
call fcn.00404458
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404458
ret