Function at 0x4c52e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x55f2b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [eax], 0
mov edi, 0x3c00
cmp dword [0x56430c], 0
mov ebx, 3
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1cc], 0x3c00
mov dword [ebp - 0x1b4], 0
je 0x4c538f
mov esi, dword [0x55f1a8]
mov ecx, esi
push edi
call dword [0x51a4a0]
call esi
add esp, 4
mov dword [ebp - 0x1c4], eax
test eax, eax
je 0x4c538f
mov esi, dword [0x55f1a8]
mov ecx, esi
push 0xe0
mov dword [ebp - 0x1b8], 4
call dword [0x51a4a0]
call esi
add esp, 4
mov dword [ebp - 0x1bc], eax
test eax, eax
jne 0x4c53a2
push dword [ebp - 0x1c4]
mov esi, dword [fcn.004b7430]
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
mov esi, dword [0x56430c]
lea eax, [ebp - 0x1cc]
push eax
push dword [ebp - 0x1c4]
mov ecx, esi
push 0
push 0
push 0
call dword [0x51a4a0]
call esi
cmp eax, 0x6f
je 0x4c5551
test eax, eax
jne 0x4c5926
mov eax, dword [ebp - 0x1c4]
mov ecx, eax
mov dword [ebp - 0x1c0], eax
test eax, eax
je 0x4c5679
nop dword [eax]
cmp dword [ecx + 0x44], 1
jne 0x4c5668
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x1d8], eax
test eax, eax
je 0x4c5668
mov edi, dword [ebp - 0x1b4]
lea ebx, [edi*8]
sub ebx, edi
shl ebx, 3
mov dword [ebp - 0x1d0], ebx
mov esi, dword [eax + 0xc]
movzx eax, word [esi]
cmp eax, 2
jne 0x4c5617
mov eax, dword [esi + 4]
test eax, eax
je 0x4c564b
cmp eax, 0xffffffff
je 0x4c564b
mov eax, dword [ebp - 0x1b8]
cmp edi, eax
jne 0x4c549f
mov edi, dword [0x55f1ac]
lea ecx, [eax + 4]
lea eax, [ecx*8]
mov dword [ebp - 0x1c8], ecx
sub eax, ecx
mov ecx, edi
shl eax, 3
push eax
push dword [ebp - 0x1bc]
call dword [0x51a4a0]
call edi
mov edi, dword [ebp - 0x1b4]
add esp, 8
test eax, eax
je 0x4c564b
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0x1b8], eax
push 0x90
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004e8d40
add esp, 0xc
mov dword [ebp - 0x11c], 0x94
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4c55db
cmp dword [ebp - 0x118], 6
jb 0x4c55db
mov eax, dword [ebp - 0x1c0]
mov edi, dword [0x564310]
mov ebx, dword [eax + 0xa8]
test edi, edi
je 0x4c55ca
lea ecx, [ebp - 0x20]
add eax, 0xb0
push ecx
lea ecx, [ebp - 0x88]
push ecx
push 0
push esi
push 0
push 0
push eax
mov ecx, edi
call dword [0x51a4a0]
call edi
test eax, eax
jne 0x4c55ca
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xffffffff
je 0x4c55ca
mov eax, ebx
not eax
cmp ecx, eax
ja 0x4c55ca
mov edi, dword [ebp - 0x1b4]
lea eax, [ebx + ecx]
mov ebx, dword [ebp - 0x1d0]
jmp 0x4c55de
sub ebx, 1
je 0x4c5926
mov eax, dword [ebp - 0x1cc]
cmp edi, eax
jae 0x4c5594
mov esi, dword [0x55f1ac]
mov ecx, esi
push eax
push dword [ebp - 0x1c4]
call dword [0x51a4a0]
call esi
add esp, 8
test eax, eax
je 0x4c5926
mov edi, dword [ebp - 0x1cc]
mov dword [ebp - 0x1c4], eax
jmp 0x4c559a
mov eax, dword [ebp - 0x1c4]
mov esi, dword [0x56430c]
lea ecx, [ebp - 0x1cc]
push ecx
push eax
push 0
push 0
push 0
mov ecx, esi
call dword [0x51a4a0]
call esi
test eax, eax
je 0x4c53d6
cmp eax, 0x6f
je 0x4c5551
jmp 0x4c5926
mov ebx, dword [ebp - 0x1d0]
or eax, 0xffffffff
mov edi, dword [ebp - 0x1b4]
jmp 0x4c55de
or eax, 0xffffffff
mov ecx, dword [ebp - 0x1bc]
push 0x2e
mov dword [ebx + ecx], eax
lea eax, [ecx + 8]
add eax, ebx
mov dword [ebx + ecx + 4], edi
push eax
lea eax, [esi + 4]
push eax
push 2
call fcn.004c9a60
add esp, 0x10
test eax, eax
je 0x4c564b
inc edi
add ebx, 0x38
mov dword [ebp - 0x1b4], edi
mov dword [ebp - 0x1d0], ebx
jmp 0x4c564b
cmp eax, 0x17
jne 0x4c564b
lea ecx, [esi + 8]
mov edx, 0x52f058
lea edi, [eax - 0xb]
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4c56fd
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4c5630
mov edi, dword [ebp - 0x1b4]
mov eax, dword [ebp - 0x1d8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1d8], eax
test eax, eax
jne 0x4c5423
mov ecx, dword [ebp - 0x1c0]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x1c0], ecx
test ecx, ecx
jne 0x4c53f0
mov esi, dword [ebp - 0x1b4]
mov edi, dword [ebp - 0x1bc]
push 0x4c52b0
push 0x38
push esi
push edi
call fcn.004f64a0
xor ebx, ebx
add esp, 0x10
mov dword [ebp - 0x1c0], ebx
test esi, esi
je 0x4c5926
lea ecx, [edi + 8]
mov dword [ebp - 0x1c8], ecx
mov eax, ecx
mov dword [ebp - 0x1b8], ecx
nop word [eax + eax]
xor esi, esi
test ebx, ebx
je 0x4c585a
mov edi, ecx
nop dword [eax]
mov ecx, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4c5839
test dl, dl
je 0x4c56f6
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4c5839
add ecx, 2
add eax, 2
test dl, dl
jne 0x4c56d2
xor eax, eax
jmp 0x4c583e
mov edi, dword [ebp - 0x1b8]
cmp dword [ebp - 0x1b4], edi
jne 0x4c5754
lea ecx, [edi + 4]
mov edi, dword [0x55f1ac]
lea eax, [ecx*8]
mov dword [ebp - 0x1c8], ecx
sub eax, ecx
mov ecx, edi
shl eax, 3
push eax
push dword [ebp - 0x1bc]
call dword [0x51a4a0]
call edi
add esp, 8
test eax, eax
je 0x4c5645
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0x1b8], eax
push 0x90
lea eax, [ebp - 0x1ac]
push 0
push eax
call fcn.004e8d40
add esp, 0xc
mov dword [ebp - 0x1b0], 0x94
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4c57f0
cmp dword [ebp - 0x1ac], 6
jb 0x4c57f0
mov eax, dword [ebp - 0x1c0]
mov edi, dword [0x564310]
mov ebx, dword [eax + 0xac]
test edi, edi
je 0x4c57e5
lea ecx, [ebp - 0x20]
add eax, 0xb0
push ecx
lea ecx, [ebp - 0x88]
push ecx
push 0
push esi
push 0
push 0
push eax
mov ecx, edi
call dword [0x51a4a0]
call edi
test eax, eax
jne 0x4c57e5
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xffffffff
je 0x4c57e5
mov eax, ebx
not eax
cmp ecx, eax
ja 0x4c57e5
lea eax, [ebx + ecx]
mov ebx, dword [ebp - 0x1d0]
jmp 0x4c57f3
mov ebx, dword [ebp - 0x1d0]
or eax, 0xffffffff
jmp 0x4c57f3
or eax, 0xffffffff
mov ecx, dword [ebp - 0x1bc]
mov edi, dword [ebp - 0x1b4]
push 0x2e
mov dword [ebx + ecx], eax
lea eax, [ecx + 8]
add eax, ebx
mov dword [ebx + ecx + 4], edi
push eax
lea eax, [esi + 8]
push eax
push 0x17
call fcn.004c9a60
add esp, 0x10
test eax, eax
je 0x4c564b
inc edi
add ebx, 0x38
mov dword [ebp - 0x1b4], edi
mov dword [ebp - 0x1d0], ebx
jmp 0x4c564b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4c5854
mov eax, dword [ebp - 0x1b8]
inc esi
add edi, 0x38
cmp esi, ebx
jb 0x4c56d0
mov eax, dword [ebp - 0x1b8]
cmp esi, ebx
jne 0x4c5904
mov ebx, eax
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4c5867
mov eax, dword [ebp - 0x1d4]
sub ebx, ecx
mov edx, dword [eax]
test edx, edx
je 0x4c588f
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c5881
sub ecx, esi
add ecx, 2
jmp 0x4c5894
mov ecx, 1
mov esi, dword [0x55f1ac]
lea eax, [ecx + ebx]
push eax
push edx
mov ecx, esi
call dword [0x51a4a0]
call esi
mov edi, eax
add esp, 8
test edi, edi
je 0x4c58f8
mov esi, dword [ebp - 0x1d4]
cmp dword [esi], 0
jne 0x4c58c0
mov byte [edi], 0
mov ecx, edi
mov dword [esi], edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c58c7
sub ecx, edx
je 0x4c58e8
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4c58d3
mov ax, word [0x53fc9c]
mov word [edi], ax
mov edi, dword [esi]
push ebx
push dword [ebp - 0x1b8]
push edi
call fcn.004fbc60
add esp, 0xc
mov eax, dword [ebp - 0x1b8]
mov ebx, dword [ebp - 0x1c0]
mov ecx, dword [ebp - 0x1c8]
inc ebx
add eax, 0x38
mov dword [ebp - 0x1c0], ebx
mov dword [ebp - 0x1b8], eax
cmp ebx, dword [ebp - 0x1b4]
jb 0x4c56c0
push dword [ebp - 0x1bc]
mov esi, dword [fcn.004b7430]
mov ecx, esi
call dword [0x51a4a0]
call esi
mov eax, dword [ebp - 0x1c4]
add esp, 4
test eax, eax
je 0x4c595d
mov esi, dword [fcn.004b7430]
mov ecx, esi
push eax
call dword [0x51a4a0]
call esi
add esp, 4
mov eax, dword [ebp - 0x1d4]
cmp dword [eax], 0
je 0x4c538f
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d0675
mov esp, ebp
pop ebp
ret