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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov ebx, ecx
push 0x408
push dword [ebx + 4]
mov dword [esp + 0x3c], ebx
call edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x80]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_BeginPaint]
lea eax, [esp + 0x1c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esp + 0x80]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x420ead
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
push ecx
push dword [esp + 0x88]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x60], eax
test eax, eax
je 0x420ea6
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx + 0x28]
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
lea eax, [esp + 0x64]
push eax
xor eax, eax
inc eax
push eax
push 0x407
push dword [ebx + 4]
call edi
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov eax, ebx
sub eax, edi
cdq
sub eax, edx
mov esi, eax
xor eax, eax
inc eax
mov ecx, dword [esp + 0x18]
sar esi, 1
cmp esi, eax
mov ebp, esi
cmovl ebp, eax
sub ecx, dword [esp + 0x64]
mov eax, ebp
imul eax, eax, 6
sub eax, dword [esp + 0x1c]
xor edx, edx
add eax, dword [esp + 0x24]
mov dword [esp + 0x54], ebx
imul eax, ecx
mov ecx, dword [esp + 0x68]
sub ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x2c]
div ecx
mov dword [esp + 0x34], edi
push 2
mov ecx, eax
add eax, ebp
mov dword [esp + 0x44], eax
lea eax, [esi + edi]
mov dword [esp + 0x48], eax
movzx eax, byte [ebx + 0x30]
shl eax, 8
mov word [esp + 0x5c], ax
mov word [esp + 0x3c], ax
movzx eax, byte [ebx + 0x31]
shl eax, 8
mov word [esp + 0x5e], ax
mov word [esp + 0x3e], ax
movzx eax, byte [ebx + 0x32]
shl eax, 8
mov word [esp + 0x60], ax
mov word [esp + 0x40], ax
movzx eax, byte [ebx + 0x2c]
shl ax, 8
mov word [esp + 0x4c], ax
movzx eax, byte [ebx + 0x2d]
shl ax, 8
mov word [esp + 0x4e], ax
movzx eax, byte [ebx + 0x2e]
shl ax, 8
mov word [esp + 0x50], ax
xor eax, eax
and dword [esp + 0x74], eax
sub ecx, ebp
mov word [esp + 0x62], ax
mov word [esp + 0x52], ax
mov word [esp + 0x42], ax
inc eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov esi, dword [esp + 0x18]
pop ecx
push eax
push ecx
lea eax, [esp + 0x78]
push eax
push 3
pop ebx
push ebx
lea eax, [esp + 0x40]
push eax
push esi
mov dword [esp + 0x94], ecx
call dword [sym.imp.MSIMG32.dll_GradientFill]
imul ebp, ebp, 0x19
movzx ecx, word [esp + 0x38]
mov edi, 0xff00
mov eax, edi
sub eax, ecx
movzx ecx, word [esp + 0x3a]
cdq
and edx, ebx
add eax, edx
sar eax, 2
mov dword [esp + 0x14], eax
mov eax, edi
sub eax, ecx
movzx ecx, word [esp + 0x3c]
cdq
and edx, ebx
add eax, edx
sar eax, 2
mov dword [esp + 0x18], eax
mov eax, edi
sub eax, ecx
cdq
and edx, ebx
add eax, edx
sar eax, 2
mov dword [esp + 0x6c], eax
mov eax, ebp
push 0xa
cdq
pop ecx
idiv ecx
mov ebp, ebx
mov ebx, dword [esp + 0x14]
mov edi, eax
movzx eax, word [esp + 0x48]
mov ecx, dword [esp + 0x30]
sub dword [esp + 0x40], edi
add eax, ebx
mov edx, 0xff00
sub ecx, edi
cmp eax, edx
cmovg eax, edx
mov word [esp + 0x48], ax
movzx eax, word [esp + 0x4a]
add eax, dword [esp + 0x18]
push 1
cmp eax, edx
cmovg eax, edx
mov word [esp + 0x4e], ax
movzx eax, word [esp + 0x50]
add eax, dword [esp + 0x70]
push 2
cmp eax, edx
cmovg eax, edx
mov word [esp + 0x54], ax
lea eax, [esp + 0x78]
push eax
push 3
lea eax, [esp + 0x40]
push eax
push esi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x48], ecx
call dword [sym.imp.MSIMG32.dll_GradientFill]
dec ebp
jne 0x420e01
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
push 0xcc0020
push ebp
push ebp
push esi
push eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
push eax
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0xa0]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x60]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [esp + 0x2c]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esp + 0x80]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4