Function at 0x4c68e0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5075bb
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x5522c0]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
push edi
mov eax, dword [0x5522c0]
xor eax, esp
push eax
lea eax, [esp + 0x1b0]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov byte [esp + 0x13], 0
test edi, edi
jne 0x4c6950
mov ecx, dword [esi + 0x78]
lea eax, [esp + 0x4c]
push eax
push ecx
mov byte [esp + 0x1b], 1
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x1c], eax
mov edi, eax
mov edx, dword [esi + 0x78]
push 0
push 0
lea ebx, [esi + 0x78]
push 0x31
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [esi + 0x27], 0
je 0x4c69b0
cmp dword [esi + 0x98], 0
jne 0x4c69b0
mov edx, dword [esi + 0xa4]
push edx
lea eax, [esp + 0x40]
push eax
jmp 0x4c69bc
mov ecx, dword [esi + 0xa0]
push ecx
lea edx, [esp + 0x40]
push edx
push edi
call dword [sym.imp.USER32.dll_FillRect]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x80]
lea esi, [esp + 0x14]
mov dword [esp + 0x28], ecx
call fcn.004591d0
mov dword [esp + 0x1b8], 0
mov edi, esi
call fcn.0046fb70
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0xb0]
mov edx, dword [ecx + 0xc0]
cmp dword [edx - 0xc], 0
mov esi, dword [esp + 0x14]
lea eax, [ecx + 0xc0]
je 0x4c6ab0
cmp dword [esi - 0xc], 0
jne 0x4c6ab0
call fcn.0045cee0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xb0]
mov edx, dword [ecx + 0xc4]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x90], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x90], 6
jb 0x4c6a8d
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0xb0]
cmp byte [edx + 0xa8], 0
jne 0x4c6a8d
inc dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xb0]
cmp byte [ecx + 0xa8], 0
je 0x4c6b3a
push 0x10
lea edx, [esp + 0x40]
push edx
jmp 0x4c6b41
cmp dword [ecx + 0xd8], 0
je 0x4c6a3f
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push 0
push 0
push 0xd2
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
movzx edx, ax
mov eax, dword [esi - 0xc]
xor ebx, ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x4c6a3f
test ebx, ebx
js 0x4c6b30
mov edi, dword [esi - 0xc]
cmp ebx, edi
jge 0x4c6b30
cmp dword [esi - 4], 1
jle 0x4c6b0b
push edi
lea ecx, [esp + 0x18]
push ecx
call fcn.00459650
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov dx, word [esp + 0x20]
mov word [esi + ebx*2], dx
test edi, edi
js 0x4c6b30
cmp edi, dword [esi - 8]
jg 0x4c6b30
xor ecx, ecx
inc ebx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], cx
cmp ebx, eax
jl 0x4c6ae7
jmp 0x4c6a3f
push 0x80070057
call fcn.0045a440
push 0
lea eax, [esp + 0x40]
push eax
push 0xffffffffffffffff
push esi
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
cmp byte [esp + 0x13], 0
mov esi, dword [esp + 0x24]
je 0x4c6b64
mov edx, dword [esi]
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.USER32.dll_EndPaint]
mov edx, dword [esi]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0xb0
push edx
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esi]
push eax
push ecx
push 0xb1
push edx
call ebx
mov eax, dword [esp + 0x20]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x30]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x1b8], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004591f0
xor eax, eax
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.004e4840
mov esp, ebp
pop ebp
ret 0x10