Function at 0x5eca8c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
fldz
mov edx, dword [ebp + 0x10]
push ebx
fst dword [ebp - 0x20]
push esi
fst dword [ebp - 0x1c]
push edi
fst dword [ebp - 0x18]
xor edi, edi
xor esi, esi
cmp edx, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
je 0x5ece0a
cmp word [edx], di
je 0x5ece0a
mov ecx, dword [ebp + 0x1c]
cmp ecx, edi
jne 0x5ecadc
fstp st(0)
mov ebx, 0x8876086c
jmp 0x5ece5c
fcom dword [ebp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x5ecaf5
fstp st(0)
push 0x406a54
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x5ecad2
fcomp dword [ebp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x5ecb06
push 0x406a24
jmp 0x5ecaed
mov eax, edx
mov dword [ecx], edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x5ecb0d
sub eax, edx
sar eax, 1
xor ecx, ecx
push 4
mov esi, eax
pop edx
mul edx
seto cl
mov dword [ebp - 0xc], esi
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
mov dword [ebp - 8], eax
jne 0x5ecb46
mov ebx, 0x8007000e
jmp 0x5ece39
mov ecx, esi
shl ecx, 2
push ecx
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
test eax, eax
jne 0x5ecb7c
push 0x4069e0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 0x8876086c
jmp 0x5ece39
test byte [ebp - 0x39], 2
jne 0x5ecb89
push 0x4069b0
jmp 0x5ecb6c
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.005ebeb4
mov ebx, eax
test ebx, ebx
jge 0x5ecbc0
push 0x406988
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [ebp - 0x14]
jmp 0x5ece2b
and dword [ebp + 0x14], 0
test esi, esi
mov esi, dword [ebp - 0x14]
jbe 0x5ecd6e
mov edi, 0x76a4f8
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 0x5ecbfa
call dword [sym.imp.GDI32.dll_GetGlyphOutlineW]
jmp 0x5ecc00
call dword [sym.imp.GDI32.dll_GetGlyphOutlineA]
cmp eax, 0xffffffff
mov dword [ebp + 0x18], eax
je 0x5ecdd2
cmp eax, dword [ebp - 0x10]
jbe 0x5ecc38
cmp dword [ebp - 4], 0
je 0x5ecc20
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 0x5ecdd9
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 0x5ecc57
call dword [sym.imp.GDI32.dll_GetGlyphOutlineW]
jmp 0x5ecc5d
call dword [sym.imp.GDI32.dll_GetGlyphOutlineA]
cmp eax, 0xffffffff
je 0x5ecdeb
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.005ec942
mov ebx, eax
test ebx, ebx
jl 0x5ecdfd
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi + 0x1bc]
mov ecx, dword [eax + 0x1c]
call fcn.005ec572
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 0x5eccbc
mov ecx, eax
call fcn.005ebff5
jmp 0x5eccbe
xor eax, eax
mov ecx, dword [esi + 0x1bc]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 0x1bc]
cmp dword [eax + 0x1c], 0
je 0x5ecde4
movsx eax, word [ebp - 0x24]
mov dword [ebp + 0x18], eax
movsx eax, word [ebp - 0x22]
fild dword [ebp + 0x18]
fld dword [esi + 8]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x24]
test eax, eax
fmul st(1)
fadd dword [ebp - 0x20]
fstp dword [ebp - 0x20]
fild dword [ebp + 0x18]
fld dword [esi + 8]
fmul st(1)
fadd dword [ebp - 0x1c]
fstp dword [ebp - 0x1c]
je 0x5ecd5d
mov ecx, dword [ebp - 0x34]
fild dword [ebp - 0x34]
test ecx, ecx
jge 0x5ecd18
fadd dword [0x4689e0]
fmul dword [esi + 8]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
fstp dword [eax]
fild dword [ebp - 0x30]
jge 0x5ecd2d
fadd dword [0x4689e0]
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]
fld dword [esi + 8]
fmulp st(2)
fxch st(1)
fstp dword [eax - 8]
fmul dword [esi + 8]
fstp dword [eax - 4]
jmp 0x5ecd61
fstp st(1)
fstp st(0)
inc ebx
cmp ebx, dword [ebp - 0xc]
mov dword [ebp + 0x14], ebx
jb 0x5ecbd4
mov edi, dword [ebp + 0x1c]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.005eba1d
mov ebx, eax
test ebx, ebx
jl 0x5ece1c
cmp dword [ebp + 0x20], 0
je 0x5ece1c
mov eax, dword [edi]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
imul eax, eax, 0xc
push eax
call sym.d3dx9_35.dll_D3DXCreateBuffer
mov ebx, eax
test ebx, ebx
jl 0x5ece1c
mov eax, dword [edi]
mov edi, dword [eax]
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
add edi, 0x58
call dword [ecx + 0xc]
fldz
push eax
mov eax, dword [ebp + 0x1c]
push ecx
fstp dword [esp]
push dword [eax]
call dword [edi]
mov ebx, eax
jmp 0x5ece1c
push 0x406960
jmp 0x5ecdde
push 0x406934
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 0x8007000e
jmp 0x5ece1c
push 0x406960
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 0x80004005
jmp 0x5ece1c
push 0x406900
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x5ece1c
push 0x4068dc
fstp st(0)
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 0x8876086c
cmp dword [ebp - 4], 0
je 0x5ece2b
push dword [ebp - 4]
call sub.msvcrt.dll_free
pop ecx
xor edi, edi
cmp esi, edi
je 0x5ece39
push dword [ebp + 0xc]
call fcn.005eb725
cmp dword [ebp - 8], edi
je 0x5ece5c
xor esi, esi
cmp dword [ebp - 0xc], edi
jbe 0x5ece5c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + esi*4]
cmp ecx, edi
je 0x5ece56
push 1
call fcn.005ebb81
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x5ece45
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