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

Disassembly:
push 0xffffffffffffffff
push 0x5deb90
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x658aa8]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + 0x7c]
cmp dword [esp + 0x84], 0
je 0x45b4d4
test ebp, ebp
je 0x45b4d4
mov edx, ebp
call fcn.00430350
mov edi, dword [esp + 0x78]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipCreateFromHDC
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov ecx, esi
mov edx, ebp
mov dword [esp + 0x70], 0
call fcn.00430350
push eax
lea esi, [esp + 0x44]
call fcn.0045eb50
mov ebp, dword [ebp + 0x53c]
xor edi, edi
xor eax, eax
cmp ebp, 5
ja case.default.0x45b1aa
jmp dword [ebp*4 + 0x45b4e8]
xor eax, eax
jmp case.default.0x45b1aa
mov eax, 1
jmp case.default.0x45b1aa
mov eax, 2
jmp case.default.0x45b1aa
mov eax, 3
jmp case.default.0x45b1aa
mov eax, 4
jmp case.default.0x45b1aa
mov eax, 5
mov esi, dword [esp + 0x18]
push eax
push esi
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, edi
je 0x45b1e9
mov dword [esp + 0x3c], eax
push 2
push esi
call sub.gdiplus.dll_GdipSetSmoothingMode
cmp eax, edi
je 0x45b1f9
mov dword [esp + 0x3c], eax
push 7
push esi
call sub.gdiplus.dll_GdipSetInterpolationMode
cmp eax, edi
je 0x45b209
mov dword [esp + 0x3c], eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
sub edx, eax
mov eax, dword [ebx + 0xc]
fstp dword [esp + 0x20]
sub eax, ecx
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x1c], edx
fstp dword [esp + 0x24]
mov edx, ecx
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
shr edx, 0x10
movzx eax, dl
fstp dword [esp + 0x28]
mov edx, ecx
fild dword [esp + 0x1c]
or eax, 0xfffffe00
shr edx, 8
movzx edx, dl
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fstp dword [esp + 0x58]
shl eax, 8
fld dword [esp + 0x24]
or eax, edx
fstp dword [esp + 0x5c]
movzx ecx, cl
fld dword [esp + 0x28]
fstp dword [esp + 0x60]
fld dword [esp + 0x1c]
shl eax, 8
lea edx, [esp + 0x1c]
fstp dword [esp + 0x64]
or eax, ecx
push edx
push eax
mov dword [esp + 0x50], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x24], edi
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
push 0x66be30
call sub.gdiplus.dll_GdipStringFormatGetGenericTypographic
mov edx, dword [0x66be30]
lea ecx, [esp + 0x30]
push ecx
push edx
mov dword [0x66be34], eax
mov dword [esp + 0x38], edi
call sub.gdiplus.dll_GdipCloneStringFormat
mov dword [esp + 0x34], eax
test dword [esp + 0x8c], 0x8000
mov byte [esp + 0x70], 3
je 0x45b302
mov eax, dword [esp + 0x30]
push 3
push eax
call sub.gdiplus.dll_GdipSetStringFormatTrimming
cmp eax, edi
je 0x45b302
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x8c]
xor eax, eax
test ecx, 0x100
je 0x45b318
mov eax, 0x4000
test cl, 0x20
je 0x45b322
or eax, 0x1000
mov ecx, dword [esp + 0x30]
push eax
push ecx
call sub.gdiplus.dll_GdipSetStringFormatFlags
cmp eax, edi
je 0x45b335
mov dword [esp + 0x34], eax
mov al, byte [esp + 0x8c]
test al, 1
je 0x45b349
mov edx, dword [esp + 0x30]
push 1
push edx
jmp 0x45b35c
test al, 2
je 0x45b356
mov eax, dword [esp + 0x30]
push 2
push eax
jmp 0x45b35c
mov ecx, dword [esp + 0x30]
push edi
push ecx
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, edi
je 0x45b369
mov dword [esp + 0x34], eax
push 0x66be30
call sub.gdiplus.dll_GdipStringFormatGetGenericTypographic
mov dword [0x66be34], eax
mov al, byte [esp + 0x8c]
test al, 4
je 0x45b38c
mov edx, dword [esp + 0x30]
push 1
push edx
jmp 0x45b39f
test al, 8
je 0x45b399
mov eax, dword [esp + 0x30]
push 2
push eax
jmp 0x45b39f
mov ecx, dword [esp + 0x30]
push edi
push ecx
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, edi
je 0x45b3ac
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x84]
push edi
push edi
push 0xffffffffffffffff
push edx
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call edi
mov ebp, eax
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048fcef
mov esi, eax
lea eax, [ebp + ebp + 2]
push eax
push 0
push esi
call fcn.004a0660
mov ecx, dword [esp + 0x94]
add esp, 0x10
push ebp
push esi
push 0xffffffffffffffff
push ecx
push 0
push 0
call edi
mov edi, dword [esp + 0x40]
test esi, esi
je 0x45b4a0
test dword [esp + 0x8c], 0x400
je 0x45b47a
mov eax, dword [esp + 0x30]
fldz
push 0
fst dword [esp + 0x58]
push 0
fst dword [esp + 0x58]
lea edx, [esp + 0x50]
fst dword [esp + 0x54]
push edx
fstp dword [esp + 0x54]
mov edx, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x68]
push ecx
push edi
push 0xffffffffffffffff
push esi
push edx
call sub.gdiplus.dll_GdipMeasureString
fld dword [esp + 0x54]
fld qword [0x644d38]
fmul st(1), st(0)
fxch st(1)
call fcn.004a0760
fmul dword [esp + 0x50]
mov ecx, dword [ebx + 4]
sub ecx, eax
mov dword [ebx + 0xc], ecx
call fcn.004a0760
mov edx, dword [ebx]
sub edx, eax
mov dword [ebx + 8], edx
jmp 0x45b497
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x60]
push edx
push edi
push 0xffffffffffffffff
push esi
push eax
call sub.gdiplus.dll_GdipDrawString
push esi
call fcn.0048fcfa
add esp, 4
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x78]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x30]
push eax
call sub.gdiplus.dll_GdipDeleteStringFormat
mov ecx, dword [esp + 0x1c]
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
push edi
call sub.gdiplus.dll_GdipDeleteFont
mov edx, dword [esp + 0x18]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret