Function at 0x4c2510
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [edx + 4]
sub ebx, dword [edx]
push esi
xor esi, esi
sar ebx, 1
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
je 0x4c2734
mov al, byte [0x6b65d4]
jmp 0x4c254a
mov ebx, dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
mov edi, dword [edx]
mov edx, dword [edx + 4]
lea ecx, [esi + esi]
sub edx, ecx
sub edx, edi
sar edx, 1
lea ecx, [ecx + edi]
je 0x4c2583
lea ecx, [ecx]
cmp word [ecx], 0xa
je 0x4c2570
add ecx, 2
sub edx, 1
jne 0x4c2560
jmp 0x4c2583
test ecx, ecx
je 0x4c2583
sub ecx, edi
sar ecx, 1
mov ebx, ecx
cmp ebx, 0xffffffff
jne 0x4c2583
mov ebx, dword [esp + 0x14]
cmp esi, ebx
jae 0x4c2727
jmp 0x4c2590
test byte [0x6b65d0], 1
jne 0x4c25b0
or dword [0x6b65d0], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 0x1f
and al, 1
mov byte [0x6b65d4], al
test al, al
je 0x4c2621
xor ecx, ecx
cmp esi, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], ecx
mov edi, esi
jae 0x4c265b
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
lea ecx, [esp + 0x20]
push ecx
push 1
lea edx, [eax + edi*2]
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x4c2656
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
lea eax, [edx + ecx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 8]
sub edx, dword [ecx]
cmp eax, edx
jg 0x4c2656
add dword [esp + 0xc], 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x1c]
jle 0x4c2618
mov dword [esp + 0x1c], eax
add edi, 1
cmp edi, ebx
jb 0x4c25cc
jmp 0x4c2656
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 0x10]
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx + 8]
sub edx, dword [ecx]
mov ecx, ebx
push edx
sub ecx, esi
push ecx
lea edx, [eax + esi*2]
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentExPointW]
test eax, eax
je 0x4c2722
mov al, byte [0x6b65d4]
mov edx, dword [esp + 0xc]
test edx, edx
lea edi, [edx + esi]
jne 0x4c266b
add edi, 1
jmp 0x4c269b
cmp edi, ebx
jae 0x4c269b
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
cmp word [ecx + edi*2], 0x20
lea ecx, [ecx + edi*2]
je 0x4c269b
cmp edi, esi
jbe 0x4c2697
add ecx, 0xfffffffe
cmp word [ecx], 0x20
je 0x4c2695
sub edi, 1
sub ecx, 2
cmp edi, esi
ja 0x4c2685
cmp edi, esi
jne 0x4c269b
add edi, edx
cmp byte [ebp + 0x14], 0
jne 0x4c26eb
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov edx, dword [edx + 8]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
add edx, ecx
mov dword [esp + 0x34], edx
push 0
mov edx, edi
sub edx, esi
push edx
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
lea edx, [edx + esi*2]
push edx
lea edx, [esp + 0x34]
push edx
push 2
push ecx
push eax
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
push eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov al, byte [0x6b65d4]
cmp edi, ebx
mov esi, edi
jae 0x4c2710
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
lea ecx, [edx + edi*2]
lea esp, [esp]
cmp word [ecx], 0x20
jne 0x4c2710
add esi, 1
add ecx, 2
cmp esi, ebx
jb 0x4c2700
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x10], ecx
cmp esi, ebx
jb 0x4c2590
jmp 0x4c2727
mov al, byte [0x6b65d4]
lea esi, [ebx + 1]
cmp esi, dword [esp + 0x14]
jb 0x4c2543
cmp byte [ebp + 0x14], 0
je 0x4c2744
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10