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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5874a8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ecx, dword [edi + 4]
lea eax, [esp + 0x40]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov esi, dword [edi + 0x24]
mov edx, dword [edi + 0x28]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x34], ecx
mov ecx, dword [edi + 0x28]
push ecx
mov dword [esp + 0x40], eax
mov eax, esi
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x44], edx
call dword [sym.imp.USER32.dll_OffsetRect]
cmp dword [edi + 0xb8], ebx
lea eax, [esp + 0x30]
je 0x4913e3
mov ecx, dword [edi + 0x94]
mov edx, dword [edi]
mov edx, dword [edx + 0x18]
push eax
push ecx
mov ecx, edi
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x94]
mov edx, dword [esp + 0x3c]
push 0xcc0020
push eax
mov eax, dword [esp + 0x3c]
push esi
push ecx
mov ecx, dword [esp + 0x40]
sub edx, eax
push edx
mov edx, dword [esp + 0x4c]
sub edx, ecx
push edx
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
lea esi, [esp + 0x50]
call fcn.00490170
mov dword [esp + 0x80], ebx
mov esi, dword [esp + 0x50]
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x491430
push ebx
push ebx
push ebx
lea eax, [esp + 0x3c]
push eax
push 2
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ecx, dword [esp + 0x18]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
cmp dword [edi + 0xbc], ebx
je 0x4914a7
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push ecx
mov dword [esp + 0x18], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0xffedf3f6
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push edx
push ecx
mov dword [esp + 0x40], edx
call sub.gdiplus.dll_GdipFillRectangleI
mov edx, dword [esp + 0x28]
push edx
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x1c]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
jmp 0x491557
cmp dword [edi + 0x90], 0xffffffff
je 0x491539
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
movzx eax, byte [edi + 0x90]
movzx ecx, byte [edi + 0x91]
mov edx, dword [esp + 0x10]
or eax, 0xfffffe00
shl eax, 8
or eax, ecx
mov dword [esp + 0x1c], edx
movzx edx, byte [edi + 0x92]
shl eax, 8
or eax, edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.00493000
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x14]
push ecx
push ebx
push ebx
push esi
push eax
call sub.gdiplus.dll_GdipFillRectangleI
push esi
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x1c]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov esi, dword [esp + 0x50]
jmp 0x491557
cmp dword [edi + 0x68], ebx
je 0x491557
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x68]
mov edx, dword [eax]
mov edx, dword [edx]
push ecx
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [edi + 4]
push ecx
push esi
push eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x30]
push ecx
push esi
mov ecx, edi
call edx
lea esi, [esp + 0x50]
call fcn.00490210
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4