Function at 0x47b310
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4daa58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
xor ebp, ebp
push esi
mov eax, vtable.CBkBitmap.0
push edi
mov edi, ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov eax, dword [esp + 0x80]
mov byte [esp + 0x78], 2
mov eax, dword [eax]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov ebx, eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
lea esi, [esp + 0x48]
push eax
push ecx
mov dword [esp + 0x30], ebx
call fcn.0048be20
cmp eax, ebp
jne 0x47b3c5
cmp ebx, ebp
je 0x47b3a1
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x4c]
cmp eax, ebp
je 0x47b3b0
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
push ecx
lea esi, [esp + 0x64]
call fcn.0048be20
cmp eax, ebp
jne 0x47b41b
cmp ebx, ebp
je 0x47b3ea
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x60]
cmp eax, ebp
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x47b3fb
push eax
call esi
mov eax, dword [esp + 0x4c]
cmp eax, ebp
je 0x47b406
push eax
call esi
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov ebp, dword [esp + 0x80]
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.GDI32.dll_GetTextColor]
movzx edx, al
or edx, 0xfffffe00
movzx ecx, ah
shl edx, 8
shr eax, 0x10
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
lea esi, [esp + 0x2c]
mov eax, ebp
mov dword [esp + 0x18], edx
call fcn.00478c10
mov esi, dword [eax]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push esi
push ebx
call ebp
mov ecx, dword [esp + 0x4c]
push ecx
push ebx
mov dword [esp + 0x28], eax
call ebp
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
mov dword [esp + 0x40], edx
sub dword [esp + 0x40], eax
mov edx, dword [edi + 0xc]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x48], edx
sub dword [esp + 0x48], ecx
push ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
push esi
push ebx
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x84], 3
call fcn.004738d0
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
push 0x7dffffff
push eax
mov eax, dword [esp + 0x8c]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x4c]
mov eax, esi
mov edx, ebx
mov byte [esp + 0x8c], 4
call fcn.0047b5e0
mov ecx, dword [esp + 0x30]
add esp, 0x14
push ecx
push ebx
call ebp
mov edx, dword [esp + 0x20]
push edx
push ebx
call ebp
mov esi, dword [esp + 0x24]
test esi, esi
je 0x47b527
mov eax, dword [esi]
push eax
call sub.gdiplus.dll_GdipDeleteFont
push esi
call sub.gdiplus.dll_GdipFree
mov ecx, dword [esp + 0x14]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x47b558
mov ecx, dword [esp + 0x68]
imul ecx, dword [esp + 0x64]
test ecx, ecx
jle 0x47b558
mov dl, 0xa
cmp dword [eax], 0
je 0x47b550
mov byte [eax + 3], dl
add eax, 4
sub ecx, 1
jne 0x47b548
mov ecx, dword [edi + 4]
mov ebp, dword [esp + 0x54]
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
mov edi, dword [edi + 8]
mov esi, dword [esp + 0x80]
mov esi, dword [esi]
push 0xff
push ebp
push 0
push 0
sub eax, ecx
push eax
mov eax, dword [esp + 0x64]
sub edi, edx
push edi
push ecx
push edx
push esi
lea ecx, [esp + 0x6c]
call fcn.0048bd40
add esp, 0x24
test ebx, ebx
mov esi, eax
je 0x47b5a0
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x60]
test eax, eax
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x47b5b1
push eax
call edi
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x47b5bc
push eax
call edi
mov ecx, dword [esp + 0x70]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret