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

Disassembly:
push 0xffffffffffffffff
push 0x529da8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55c4c8]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x74]
mov esi, ecx
mov edi, edx
cmp dword [esp + 0x78], 0
je 0x4d16bf
test esi, esi
je 0x4d16bf
cmp byte [esi + 0x56c], 0
jne 0x4d1446
cmp byte [esi + 0x130], 0
jne 0x4d1446
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, ebx
shr eax, 8
movzx edx, bl
movzx ecx, al
shl edx, 8
or ecx, edx
shr ebx, 0x10
movzx eax, bl
shl ecx, 8
or ecx, eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x80]
mov eax, esi
call fcn.004b0f50
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
mov ecx, dword [esp + 0x78]
mov ebx, eax
mov eax, dword [esp + 0x84]
or eax, 0x800
push eax
push ebp
push 0xffffffffffffffff
push ecx
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push ebx
push edi
call esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
lea edx, [esp + 0x18]
push edx
push edi
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
push 4
push eax
mov dword [esp + 0x74], 0
call sub.gdiplus.dll_GdipSetTextRenderingHint
test eax, eax
je 0x4d147d
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x80]
test eax, eax
jl 0x4d149d
cmp eax, dword [esi + 0x788]
jge 0x4d149d
mov ecx, dword [esi + 0x784]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx]
jmp 0x4d14a6
mov eax, esi
call fcn.004b0b80
mov eax, dword [eax]
push eax
lea esi, [esp + 0x30]
call fcn.004d3c00
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
sub edx, eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
fstp dword [esp + 0x50]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x1c]
fstp dword [esp + 0x54]
push ecx
fild dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov edx, ebx
shr edx, 0x10
movzx eax, dl
fstp dword [esp + 0x5c]
fild dword [esp + 0x20]
or eax, 0xfffffe00
mov ecx, ebx
shr ecx, 8
movzx edx, cl
fstp dword [esp + 0x60]
shl eax, 8
or eax, edx
movzx ecx, bl
shl eax, 8
or eax, ecx
xor esi, esi
push eax
mov dword [esp + 0x24], esi
call sub.gdiplus.dll_GdipCreateSolidFill
mov edi, dword [esp + 0x1c]
push 0x626d0c
mov dword [esp + 0x3c], edi
call sub.gdiplus.dll_GdipStringFormatGetGenericTypographic
lea edx, [esp + 0x24]
mov dword [0x626d10], eax
mov eax, dword [0x626d0c]
push edx
push eax
mov dword [esp + 0x2c], esi
call sub.gdiplus.dll_GdipCloneStringFormat
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x28], eax
test ebx, 0x8000
je 0x4d1575
mov ecx, dword [esp + 0x24]
push 3
push ecx
call sub.gdiplus.dll_GdipSetStringFormatTrimming
cmp eax, esi
je 0x4d1575
mov dword [esp + 0x28], eax
xor eax, eax
test ebx, 0x100
je 0x4d1584
mov eax, 0x4000
test bl, 0x20
je 0x4d158e
or eax, 0x1000
mov edx, dword [esp + 0x24]
push eax
push edx
call sub.gdiplus.dll_GdipSetStringFormatFlags
cmp eax, esi
je 0x4d15a1
mov dword [esp + 0x28], eax
test bl, 1
je 0x4d15af
mov eax, dword [esp + 0x24]
push 1
push eax
jmp 0x4d15c3
test bl, 2
je 0x4d15bd
mov ecx, dword [esp + 0x24]
push 2
push ecx
jmp 0x4d15c3
mov edx, dword [esp + 0x24]
push esi
push edx
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, esi
je 0x4d15d0
mov dword [esp + 0x28], eax
push 0x626d0c
call sub.gdiplus.dll_GdipStringFormatGetGenericTypographic
mov dword [0x626d10], eax
test bl, 4
je 0x4d15ed
mov eax, dword [esp + 0x24]
push 1
push eax
jmp 0x4d1601
test bl, 8
je 0x4d15fb
mov ecx, dword [esp + 0x24]
push 2
push ecx
jmp 0x4d1601
mov edx, dword [esp + 0x24]
push esi
push edx
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, esi
je 0x4d160e
mov dword [esp + 0x28], eax
test ebx, 0x400
je 0x4d167a
mov ecx, dword [esp + 0x24]
fldz
push esi
fst dword [esp + 0x50]
push esi
fst dword [esp + 0x50]
mov esi, dword [esp + 0x34]
fst dword [esp + 0x4c]
lea eax, [esp + 0x48]
fstp dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x60]
push edx
push esi
push 0xffffffffffffffff
push eax
push ecx
call sub.gdiplus.dll_GdipMeasureString
fld dword [esp + 0x4c]
call fcn.00528350
fld dword [esp + 0x48]
mov edx, dword [ebp + 4]
lea eax, [eax + edx + 1]
mov dword [ebp + 0xc], eax
call fcn.00528350
mov ecx, dword [ebp]
lea edx, [eax + ecx + 1]
mov dword [ebp + 8], edx
jmp 0x4d169b
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x78]
push edi
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x58]
push ecx
push esi
push 0xffffffffffffffff
push edx
push eax
call sub.gdiplus.dll_GdipDrawString
mov ecx, dword [esp + 0x24]
push ecx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov edx, dword [esp + 0x38]
push edx
call sub.gdiplus.dll_GdipDeleteBrush
push esi
call sub.gdiplus.dll_GdipDeleteFont
mov eax, dword [esp + 0x18]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret