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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a997b
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x4e42d0]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
push edi
mov eax, dword [0x4e42d0]
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 + 0x20], esi
mov dword [esp + 0x18], edi
mov byte [esp + 0x13], 0
test edi, edi
jne 0x4249e0
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 + 0x18], eax
mov edi, eax
mov edx, dword [esi + 0x78]
push 0
push 0
lea ebx, [esi + 0x78]
push 0x31
push edx
mov dword [esp + 0x38], 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 0x424a40
cmp dword [esi + 0x98], 0
jne 0x424a40
mov edx, dword [esi + 0xa4]
push edx
lea eax, [esp + 0x40]
push eax
jmp 0x424a4c
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]
mov edx, dword [0x4e3f18]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, 0x4e3f18
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea edi, [esp + 0x14]
mov dword [esp + 0x1b8], 0
call fcn.00420a70
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx + 0xc0]
cmp dword [edx - 0xc], 0
mov edi, dword [esp + 0x14]
lea eax, [ecx + 0xc0]
je 0x424ad8
cmp dword [edi - 0xc], 0
jne 0x424ad8
lea edi, [esp + 0x14]
call fcn.00405000
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax + 0xc4]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
jmp 0x424b5f
cmp dword [ecx + 0xd8], 0
je 0x424b5f
mov edx, dword [ebx]
push 0
push 0
push 0xd2
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, ax
mov dword [esp + 0x1c], eax
mov eax, dword [edi - 0xc]
xor esi, esi
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x424b57
test esi, esi
js 0x424bc4
mov ebx, dword [edi - 0xc]
cmp esi, ebx
jge 0x424bc4
cmp dword [edi - 4], 1
jle 0x424b33
push ebx
lea edx, [esp + 0x18]
push edx
call fcn.00402bc0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov cx, word [esp + 0x1c]
mov word [edi + esi*2], cx
test ebx, ebx
js 0x424bc4
cmp ebx, dword [edi - 8]
jg 0x424bc4
xor edx, edx
inc esi
mov dword [edi - 0xc], ebx
mov word [edi + ebx*2], dx
cmp esi, eax
jl 0x424b07
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea edx, [esp + 0x8c]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x90], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x90], 6
jb 0x424ba9
mov eax, dword [esi + 0xb0]
cmp byte [eax + 0xa8], 0
jne 0x424ba9
inc dword [esp + 0x3c]
mov ecx, dword [esi + 0xb0]
cmp byte [ecx + 0xa8], 0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x3c]
je 0x424bce
push 0x10
jmp 0x424bd5
push 0x80070057
call fcn.004035c0
mov ecx, dword [esi + 0xb4]
push ecx
push edx
push 0xffffffffffffffff
push edi
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
cmp byte [esp + 0x13], 0
je 0x424bf5
mov edx, dword [ebx]
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.USER32.dll_EndPaint]
mov edx, dword [ebx]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0xb0
push edx
call esi
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebx]
push eax
push ecx
push 0xb1
push edx
call esi
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x30]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
add edi, 0xfffffff0
mov dword [esp + 0x1b8], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x424c66
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
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.0048f6cb
mov esp, ebp
pop ebp
ret 0x10