Function at 0x41b7a0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4224a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
mov edi, ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0x438]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov ebp, dword [esp + 0x68]
mov edx, dword [esi]
push ebp
mov ecx, esi
mov dword [esp + 0x14], eax
call dword [edx + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
lea ecx, [esp + 0x54]
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CString::CString_3
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x4c], 0
mov ecx, ebx
call fcn.00404640
add ebx, 4
push eax
push ebx
lea ecx, [esp + 0x5c]
push str._s___s_
push ecx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x7c]
add esp, 0x10
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
add eax, edx
lea ebx, [ecx + 0xfc]
add ecx, 0x34
lea edx, [eax + 0x1c]
push edx
push ebx
push eax
push ecx
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x64]
test eax, eax
jl 0x41b871
lea edx, [eax*8]
sub edx, eax
lea eax, [esp + 0x24]
shl edx, 2
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi + 0x244]
test eax, eax
je 0x41b88a
push 0
lea ecx, [esp + 0x28]
push 0xffffffffffffffd4
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [esp + 0x54]
mov edx, dword [esi]
lea ebx, [esp + 0x24]
push 0x24
mov ecx, dword [eax - 8]
push ebx
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x38], ecx
lea edx, [esp + 0x1c]
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ebp, dword [esp + 0x60]
test ebp, ebp
jl 0x41b9c6
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add eax, 0x16
add ecx, 0xc
mov dword [esp + 0x28], eax
add eax, 3
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
xor ebx, ebx
test ebx, ebx
jne 0x41b920
mov eax, dword [edi + 0x224]
test eax, eax
je 0x41b9bc
jmp 0x41b988
cmp ebx, 1
jne 0x41b935
mov eax, dword [edi + 0x228]
test eax, eax
je 0x41b9bc
jmp 0x41b988
cmp ebx, 2
jne 0x41b946
mov eax, dword [edi + 0x22c]
test eax, eax
je 0x41b9bc
jmp 0x41b988
cmp ebx, 3
jne 0x41b957
mov eax, dword [edi + 0x238]
test eax, eax
je 0x41b9bc
jmp 0x41b988
cmp ebx, 4
jne 0x41b968
mov eax, dword [edi + 0x240]
test eax, eax
je 0x41b9bc
jmp 0x41b988
cmp ebx, 5
jne 0x41b979
mov eax, dword [edi + 0x250]
test eax, eax
je 0x41b9bc
jmp 0x41b988
cmp ebx, 6
jne 0x41b988
mov eax, dword [edi + 0x254]
test eax, eax
je 0x41b9bc
push ebp
mov ecx, edi
call fcn.0041a2f0
mov edx, dword [eax + ebx*4 + 0x40]
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::FillSolidRect
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub eax, edx
push 0
add eax, 3
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
inc ebx
cmp ebx, 7
jl 0x41b90c
mov eax, dword [edi + 0x244]
cmp eax, 1
jl 0x41ba34
cmp eax, 4
jg 0x41ba34
dec eax
test eax, eax
jne 0x41b9e7
mov edx, dword [esp + 0x5c]
mov eax, dword [edx + 0x318]
jmp 0x41ba1c
cmp eax, 2
jne 0x41b9f8
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x33c]
jmp 0x41ba1c
cmp eax, 3
jne 0x41ba09
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + 0x360]
jmp 0x41ba1c
cmp eax, 1
jne 0x41ba1a
mov edx, dword [esp + 0x5c]
mov eax, dword [edx + 0x384]
jmp 0x41ba1c
xor eax, eax
push eax
lea eax, [esp + 0x58]
push str._Total___d_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x41bae0
cmp dword [edi + 0xa78], 2
jne 0x41babb
mov eax, dword [edi + 0x264]
mov ecx, dword [esp + 0x5c]
mov edx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, edx
jne 0x41ba6e
mov edx, dword [edx + 0xa4]
mov eax, dword [eax + 0xa4]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x68], eax
fild dword [esp + 0x5c]
fidiv dword [esp + 0x68]
jmp 0x41ba8a
mov eax, dword [eax + 0xa4]
mov edx, dword [edx + 0xa4]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x68], edx
fild dword [esp + 0x5c]
fidiv dword [esp + 0x68]
fstp dword [esp + 0x5c]
mov ebx, dword [ecx + 0xa4]
push 0
call fcn.00404820
fld dword [esp + 0x5c]
push eax
push ebx
sub esp, 8
lea eax, [esp + 0x64]
fstp qword [esp]
push str.__.2f___d___d_action_min_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x18
jmp 0x41bae0
mov ecx, dword [esp + 0x5c]
push 0
mov ebx, dword [ecx + 0xa4]
call fcn.00404820
push eax
push ebx
lea ecx, [esp + 0x5c]
push str.__d___d_action_min_
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov edx, dword [esp + 0x1c]
push 0
add edx, 8
lea eax, [esp + 0x38]
push edx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi + 0x434]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov edx, dword [esi]
push 0x808080
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esp + 0x54]
mov edx, dword [esi]
lea edi, [esp + 0x34]
push 0x24
mov ecx, dword [eax - 8]
push edi
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x34]
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 0x1c