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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [esp + 0x68]
mov ebx, eax
xor eax, eax
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [ebp]
push edi
mov ecx, vtable.CBkBitmap.0
push eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x58], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx]
mov edi, eax
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
lea esi, [esp + 0x40]
push eax
push ecx
call fcn.0046bbd0
test eax, eax
jne 0x45c896
test edi, edi
je 0x45c87d
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x45c88c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx]
push eax
push ecx
lea esi, [esp + 0x5c]
call fcn.0046bbd0
test eax, eax
jne 0x45c8e1
test edi, edi
je 0x45c8bb
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x58]
test eax, eax
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x45c8cc
push eax
call esi
mov eax, dword [esp + 0x44]
test eax, eax
je 0x45c8d7
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov eax, dword [ebp]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
movzx ecx, al
or ecx, 0xfffffe00
movzx edx, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
movzx eax, al
shl ecx, 8
or ecx, eax
lea esi, [esp + 0x24]
mov eax, ebp
mov dword [esp + 0x18], ecx
call fcn.0045a4c0
mov ebp, dword [eax]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebp
push edi
call esi
mov ecx, dword [esp + 0x44]
push ecx
push edi
mov dword [esp + 0x28], eax
call esi
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
sub edx, eax
mov dword [esp + 0x38], edx
lea edx, [esp + 0x14]
xor eax, eax
push edx
sub esi, ecx
push edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], eax
call sub.gdiplus.dll_GdipCreateFromHDC
push ebp
lea esi, [esp + 0x2c]
call fcn.0045b8d0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
push 0x7dffffff
push eax
mov eax, dword [esp + 0x7c]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
push edi
lea ecx, [esp + 0x48]
mov eax, ebp
call fcn.0045ca50
mov ecx, dword [esp + 0x34]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
add esp, 0x18
push ecx
push edi
call esi
mov edx, dword [esp + 0x20]
push edx
push edi
call esi
mov eax, dword [esp + 0x28]
push eax
call sub.gdiplus.dll_GdipDeleteFont
mov ecx, dword [esp + 0x14]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, dword [esp + 0x64]
test eax, eax
je 0x45c9e5
mov ecx, dword [esp + 0x60]
imul ecx, dword [esp + 0x5c]
test ecx, ecx
jle 0x45c9e5
mov dl, 0xa
cmp dword [eax], 0
je 0x45c9dd
mov byte [eax + 3], dl
add eax, 4
sub ecx, 1
jne 0x45c9d5
mov ecx, dword [ebx + 4]
mov ebp, dword [esp + 0x4c]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx]
mov ebx, dword [ebx + 8]
mov esi, dword [esp + 0x70]
mov esi, dword [esi]
push 0xff
push ebp
push 0
push 0
sub eax, ecx
push eax
mov eax, dword [esp + 0x5c]
sub ebx, edx
push ebx
push ecx
push edx
push esi
lea ecx, [esp + 0x64]
call fcn.0046baf0
add esp, 0x24
test edi, edi
mov esi, eax
je 0x45ca2a
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x58]
test eax, eax
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x45ca3b
push eax
call edi
mov eax, dword [esp + 0x44]
test eax, eax
je 0x45ca46
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret