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

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub esp, 0x90
cmp eax, ecx
push esi
push edi
jne 0x4d1524
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esp + 0x9c]
mov esi, eax
mov eax, dword [esp + 0xa0]
push esi
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
add esp, 0x90
ret
mov edi, dword [esp + 0xa4]
cmp edi, 2
je 0x4d15db
mov esi, dword [esp + 0xa0]
push edi
push 1
mov dword [esp + 0x20], 1
mov edx, dword [esi]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x38], edx
xor edx, edx
mov dh, al
mov word [esp + 0x3c], dx
mov edx, eax
and edx, 0xff00
mov word [esp + 0x3e], dx
mov edx, dword [esi + 8]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x48], edx
xor edx, edx
shr eax, 8
mov dh, cl
and eax, 0xff00
mov word [esp + 0x4c], dx
mov word [esp + 0x40], ax
mov edx, ecx
xor eax, eax
shr ecx, 8
mov word [esp + 0x42], ax
and ecx, 0xff00
mov word [esp + 0x52], ax
mov dword [esp + 0x1c], eax
and edx, 0xff00
lea eax, [esp + 0x1c]
mov word [esp + 0x50], cx
mov word [esp + 0x4e], dx
mov edx, dword [esp + 0xa4]
push eax
lea ecx, [esp + 0x38]
push 2
push ecx
push edx
call dword [sym.imp.MSIMG32.dll_GradientFill]
pop edi
pop esi
add esp, 0x90
ret
mov edi, dword [esp + 0xa0]
push ebx
push ebp
mov ecx, edi
call fcn.00575dfb
mov ebx, dword [edi]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
add eax, ebx
cdq
sub eax, edx
mov edx, dword [edi + 0xc]
mov esi, eax
mov eax, ecx
add eax, edx
mov dword [esp + 0x38], ecx
cdq
sub eax, edx
mov dword [esp + 0x28], ecx
mov ebp, eax
mov eax, dword [esp + 0x38]
sar ebp, 1
mov edx, ebp
mov dword [esp + 0x24], ebx
sar esi, 1
sub edx, eax
mov ecx, esi
mov eax, esi
sub ecx, ebx
sub eax, edx
mov dword [esp + 0x10], ecx
sub eax, ecx
mov ecx, ebp
mov dword [esp + 0x1c], edx
sub ecx, edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x54], eax
sub ecx, edx
xor dx, dx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x74], eax
mov dl, cl
mov eax, ebp
shl edx, 8
mov dword [esp + 0x14], edx
mov word [esp + 0x5c], dx
xor edx, edx
mov dword [esp + 0x2c], esi
mov dl, ch
mov dword [esp + 0x30], ebp
shr ecx, 0x10
movzx dx, dl
movzx cx, cl
shl edx, 8
shl ecx, 8
mov dword [esp + 0x18], ecx
mov word [esp + 0x60], cx
mov cx, word [esp + 0x14]
mov word [esp + 0x5e], dx
mov word [esp + 0x6c], cx
mov cx, word [esp + 0x18]
mov word [esp + 0x70], cx
mov ecx, esi
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x68], ecx
mov cx, word [esp + 0x14]
mov word [esp + 0x6e], dx
mov word [esp + 0x7c], cx
mov word [esp + 0x7e], dx
mov dx, word [esp + 0x18]
mov ecx, esi
mov word [esp + 0x62], 0
mov word [esp + 0x72], 0
mov dword [esp + 0x78], eax
mov word [esp + 0x80], dx
mov word [esp + 0x82], 0
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xb4]
xor edx, edx
mov dh, al
xor ecx, ecx
mov word [esp + 0x8c], dx
mov cl, ah
xor edx, edx
push 2
mov dh, cl
xor ecx, ecx
shr eax, 0x10
mov word [esp + 0x92], dx
mov ch, al
lea edx, [esp + 0x98]
push 1
mov word [esp + 0x98], cx
mov ecx, dword [esp + 0xac]
push edx
lea eax, [esp + 0x60]
push 4
push eax
push ecx
mov word [esp + 0xaa], 0
mov dword [esp + 0xac], 3
mov dword [esp + 0xb0], 1
mov dword [esp + 0xb4], 2
call dword [sym.imp.MSIMG32.dll_GradientFill]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0xc]
push 0xcc0020
push edx
mov edx, dword [esp + 0x40]
push ecx
push edx
mov edx, dword [esp + 0xb4]
sub ebp, eax
push ebx
dec ebp
push edx
push ebp
mov ebp, dword [sym.imp.GDI32.dll_StretchBlt]
push ecx
push eax
push ebx
push edx
call ebp
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x10]
mov edi, dword [edi + 8]
sub eax, ecx
push 0xcc0020
push eax
push edx
mov edx, dword [esp + 0x44]
sub esi, edi
push edx
mov edx, dword [esp + 0xb4]
push ebx
push edx
dec esi
push eax
push esi
push ecx
push edi
push edx
call ebp
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x90
ret