Function at 0x40ab50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x40ad51
push 0x2c
xor esi, esi
lea eax, [esp + 0x40]
push esi
push eax
call fcn.00474b70
mov edx, dword [edi + 8]
sub edx, dword [edi]
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
add esp, 0xc
push esi
push esi
mov dword [esp + 0x48], edx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x50], eax
push esi
mov ecx, 0x20
lea eax, [esp + 0x4c]
mov word [esp + 0x5a], cx
push eax
mov ecx, 1
push esi
mov dword [esp + 0x54], 0x28
mov dword [esp + 0x64], esi
mov word [esp + 0x60], cx
mov dword [esp + 0x28], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebx, eax
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push esi
call ebx
mov ecx, dword [esp + 0x78]
push ecx
push esi
mov dword [esp + 0x2c], eax
call ebx
mov ebp, dword [sym.imp.GDI32.dll_SetTextColor]
push 0xffffff
push esi
mov dword [esp + 0x28], eax
call ebp
push 0
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x14], eax
xor eax, eax
push 0x24
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x78]
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [esp + 0x14]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0xc]
push edx
push esi
call ebp
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, ecx
imul eax, edx
test eax, eax
jle 0x40acfb
mov ecx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x10]
movzx edx, cl
mov dword [esp + 0x18], edx
mov dx, cx
shr dx, 8
shr ecx, 0x10
mov word [esp + 0xc], dx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
movzx ecx, byte [ebp + 2]
mov eax, dword [esp + 0x18]
imul eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov byte [ebp + 2], al
movzx eax, byte [esp + 0xc]
imul eax, ecx
cdq
and edx, 0xff
add eax, edx
mov edx, dword [esp + 0x10]
sar eax, 8
mov byte [edx + 1], al
movzx eax, byte [esp + 0x1c]
imul eax, ecx
cdq
and edx, 0xff
add eax, edx
mov edx, dword [esp + 0x10]
sar eax, 8
mov byte [edx], al
mov eax, dword [esp + 0x10]
mov byte [eax + 3], cl
mov ebp, dword [esp + 0x10]
add ebp, 4
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], ebp
jne 0x40ac8b
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov byte [esp + 0xf], 1
mov byte [esp + 0xd], 0
mov byte [esp + 0xc], 0
mov byte [esp + 0xe], 0xff
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x70]
push ecx
push edx
push 0
push 0
push esi
push ecx
mov ecx, dword [edi + 4]
push edx
mov edx, dword [edi]
push ecx
push edx
push eax
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
mov ecx, dword [esp + 0x20]
push ecx
push esi
call ebx
mov edx, dword [esp + 0x24]
push edx
push esi
call ebx
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret