Function at 0x4bc3be
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 0x4bc730
cmp word [edx], si
je 0x4bc730
mov ecx, dword [ebp + 0x1c]
cmp ecx, esi
je 0x4bc436
fld dword [ebp + 0x14]
fcomp dword [0x4013e0]
fnstsw ax
test ah, 5
jp 0x4bc41b
push 0x406294
jmp 0x4bc430
fld dword [ebp + 0x18]
fcomp dword [0x4013e0]
fnstsw ax
test ah, 5
jp 0x4bc440
push 0x406264
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 0x8876086c
jmp 0x4bc77f
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 0x4bc46b
mov ebx, 0x8007000e
jmp 0x4bc75b
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 0x4bc498
push 0x406220
jmp 0x4bc4a3
test byte [ebp - 0x39], 2
jne 0x4bc4b3
push 0x4061f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 0x8876086c
jmp 0x4bc75b
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.004bb7b7
mov ebx, eax
test ebx, ebx
jge 0x4bc4ea
push 0x4061c8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [ebp - 0x14]
jmp 0x4bc74f
and dword [ebp + 0x14], 0
test esi, esi
mov esi, dword [ebp - 0x14]
jbe 0x4bc696
mov edi, 0x6194f8
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 0x4bc524
call dword [sym.imp.GDI32.dll_GetGlyphOutlineW]
jmp 0x4bc52a
call dword [sym.imp.GDI32.dll_GetGlyphOutlineA]
cmp eax, 0xffffffff
mov dword [ebp + 0x18], eax
je 0x4bc6f8
cmp eax, dword [ebp - 0x10]
jbe 0x4bc562
cmp dword [ebp - 4], 0
je 0x4bc54a
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 0x4bc70a
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 0x4bc581
call dword [sym.imp.GDI32.dll_GetGlyphOutlineW]
jmp 0x4bc587
call dword [sym.imp.GDI32.dll_GetGlyphOutlineA]
cmp eax, 0xffffffff
je 0x4bc711
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.004bc27d
mov ebx, eax
test ebx, ebx
jl 0x4bc723
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi + 0x1bc]
mov ecx, dword [eax + 0x1c]
call fcn.004bbe9b
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 0x4bc5e6
mov ecx, eax
call fcn.004bb8fa
jmp 0x4bc5e8
xor eax, eax
mov ecx, dword [esi + 0x1bc]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 0x1bc]
cmp dword [eax + 0x1c], 0
je 0x4bc703
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 0x4bc687
mov ecx, dword [ebp - 0x34]
fild dword [ebp - 0x34]
test ecx, ecx
jge 0x4bc643
fadd dword [0x4013dc]
fmul dword [esi + 8]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
fstp dword [eax]
fild dword [ebp - 0x30]
jge 0x4bc658
fadd dword [0x4013dc]
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 0x4bc689
fstp st(0)
inc ebx
cmp ebx, dword [ebp - 0xc]
mov dword [ebp + 0x14], ebx
jb 0x4bc4fe
mov edi, dword [ebp + 0x1c]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004bb318
mov ebx, eax
test ebx, ebx
jl 0x4bc740
cmp dword [ebp + 0x20], 0
je 0x4bc740
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_27.dll_D3DXCreateBuffer
mov ebx, eax
test ebx, ebx
jl 0x4bc740
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 0x4bc740
push 0x4061a0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 0x8007000e
jmp 0x4bc740
push 0x406174
jmp 0x4bc6fd
push 0x4061a0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 0x80004005
jmp 0x4bc740
push 0x406140
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4bc740
push 0x40611c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 0x8876086c
cmp dword [ebp - 4], 0
je 0x4bc74f
push dword [ebp - 4]
call sub.msvcrt.dll_free
pop ecx
test esi, esi
je 0x4bc75b
push dword [ebp + 0xc]
call fcn.004bb005
cmp dword [ebp - 8], 0
je 0x4bc77f
xor esi, esi
cmp dword [ebp - 0xc], esi
jbe 0x4bc77f
mov eax, dword [ebp - 8]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x4bc779
push 1
call fcn.004bb48a
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4bc768
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