Function at 0x4cd89b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
mov edx, dword [ebp + 0x10]
fldz
fstp dword [ebp - 0x20]
push ebx
fldz
push esi
xor esi, esi
fstp dword [ebp - 0x1c]
cmp edx, esi
fldz
push edi
fstp dword [ebp - 0x18]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
je 0x4cdc0d
cmp word [edx], si
je 0x4cdc0d
mov ecx, dword [ebp + 0x1c]
cmp ecx, esi
je 0x4cd913
fld dword [ebp + 0x14]
fcomp dword [0x4012f0]
fnstsw ax
test ah, 5
jp 0x4cd8f8
push 0x4061c4
jmp 0x4cd90d
fld dword [ebp + 0x18]
fcomp dword [0x4012f0]
fnstsw ax
test ah, 5
jp 0x4cd91d
push 0x406194
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 0x8876086c
jmp 0x4cdc5c
push edx
mov dword [ecx], esi
call sub.msvcrt.dll_wcslen
mov esi, eax
mov edi, esi
shl edi, 2
push edi
mov dword [ebp - 0xc], esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
jne 0x4cd948
mov ebx, 0x8007000e
jmp 0x4cdc38
mov ecx, edi
mov edi, dword [ebp - 8]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
test eax, eax
jne 0x4cd975
push 0x406150
jmp 0x4cd980
test byte [ebp - 0x39], 2
jne 0x4cd990
push 0x406120
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 0x8876086c
jmp 0x4cdc38
fld dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push eax
push ecx
push ecx
fstp dword [esp + 4]
xor edi, edi
fld dword [ebp + 0x14]
inc edi
fstp dword [esp]
push dword [ebp + 0xc]
call fcn.004ccc94
mov ebx, eax
test ebx, ebx
jge 0x4cd9c7
push 0x4060f8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [ebp - 0x14]
jmp 0x4cdc2c
and dword [ebp + 0x14], 0
test esi, esi
mov esi, dword [ebp - 0x14]
jbe 0x4cdb73
mov edi, 0x6024f8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
movzx ebx, word [eax + ecx*2]
push edi
xor eax, eax
cmp dword [ebp + 0x28], eax
push eax
push eax
lea eax, [ebp - 0x34]
push eax
push 2
push ebx
push dword [ebp + 0xc]
je 0x4cda01
call dword [sym.imp.GDI32.dll_GetGlyphOutlineW]
jmp 0x4cda07
call dword [sym.imp.GDI32.dll_GetGlyphOutlineA]
cmp eax, 0xffffffff
mov dword [ebp + 0x18], eax
je 0x4cdbd5
cmp eax, dword [ebp - 0x10]
jbe 0x4cda3f
cmp dword [ebp - 4], 0
je 0x4cda27
push dword [ebp - 4]
call sub.msvcrt.dll_free
pop ecx
mov eax, dword [ebp + 0x18]
push eax
mov dword [ebp - 0x10], eax
call sub.msvcrt.dll_malloc
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x4cdbe7
cmp dword [ebp + 0x28], 0
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x34]
push dword [ebp - 0x10]
push eax
push 2
push ebx
push dword [ebp + 0xc]
je 0x4cda5e
call dword [sym.imp.GDI32.dll_GetGlyphOutlineW]
jmp 0x4cda64
call dword [sym.imp.GDI32.dll_GetGlyphOutlineA]
cmp eax, 0xffffffff
je 0x4cdbee
mov eax, dword [ebp - 4]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], eax
mov eax, esi
call fcn.004cd75a
mov ebx, eax
test ebx, ebx
jl 0x4cdc00
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi + 0x1bc]
mov ecx, dword [eax + 0x1c]
call fcn.004cd378
mov eax, dword [esi + 0x1bc]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp + 0x14]
push 0x28
mov dword [ecx + ebx*4], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x4cdac3
mov ecx, eax
call fcn.004ccdd7
jmp 0x4cdac5
xor eax, eax
mov ecx, dword [esi + 0x1bc]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 0x1bc]
cmp dword [eax + 0x1c], 0
je 0x4cdbe0
movsx eax, word [ebp - 0x24]
mov dword [ebp + 0x18], eax
movsx eax, word [ebp - 0x22]
fild dword [ebp + 0x18]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x24]
test eax, eax
fld st(0)
fmul dword [esi + 8]
fadd dword [ebp - 0x20]
fstp dword [ebp - 0x20]
fild dword [ebp + 0x18]
fst dword [ebp + 0x18]
fmul dword [esi + 8]
fadd dword [ebp - 0x1c]
fstp dword [ebp - 0x1c]
je 0x4cdb64
mov ecx, dword [ebp - 0x34]
fild dword [ebp - 0x34]
test ecx, ecx
jge 0x4cdb20
fadd dword [0x4012ec]
fmul dword [esi + 8]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
fstp dword [eax]
fild dword [ebp - 0x30]
jge 0x4cdb35
fadd dword [0x4012ec]
fmul dword [esi + 8]
add eax, 0x18
mov dword [ebp + 0x24], eax
fstp dword [eax - 0x14]
fild dword [ebp - 0x2c]
fmul dword [esi + 8]
fstp dword [eax - 0x10]
fild dword [ebp - 0x28]
fmul dword [esi + 8]
fstp dword [eax - 0xc]
fmul dword [esi + 8]
fstp dword [eax - 8]
fld dword [ebp + 0x18]
fmul dword [esi + 8]
fstp dword [eax - 4]
jmp 0x4cdb66
fstp st(0)
inc ebx
cmp ebx, dword [ebp - 0xc]
mov dword [ebp + 0x14], ebx
jb 0x4cd9db
mov edi, dword [ebp + 0x1c]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004cc7f5
mov ebx, eax
test ebx, ebx
jl 0x4cdc1d
cmp dword [ebp + 0x20], 0
je 0x4cdc1d
mov eax, dword [edi]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
lea eax, [eax + eax*2]
shl eax, 2
push eax
call sym.d3dx9_24.dll_D3DXCreateBuffer
mov ebx, eax
test ebx, ebx
jl 0x4cdc1d
mov ecx, dword [edi]
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov ebx, dword [ecx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
fldz
push eax
push ecx
fstp dword [esp]
push dword [edi]
call dword [ebx + 0x58]
mov ebx, eax
jmp 0x4cdc1d
push 0x4060d0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 0x8007000e
jmp 0x4cdc1d
push 0x4060a4
jmp 0x4cdbda
push 0x4060d0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 0x80004005
jmp 0x4cdc1d
push 0x406070
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4cdc1d
push 0x40604c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 0x8876086c
cmp dword [ebp - 4], 0
je 0x4cdc2c
push dword [ebp - 4]
call sub.msvcrt.dll_free
pop ecx
test esi, esi
je 0x4cdc38
push dword [ebp + 0xc]
call fcn.004cc4e2
cmp dword [ebp - 8], 0
je 0x4cdc5c
xor esi, esi
cmp dword [ebp - 0xc], esi
jbe 0x4cdc5c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x4cdc56
push 1
call fcn.004cc967
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4cdc45
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x24