Function at 0x496a80
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b95f8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
jne 0x496aae
or eax, 0xffffffff
jmp 0x496c11
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x30], 0
cmp eax, esi
mov word [esp + 0x31], si
jle 0x496ac6
mov dword [esp + 0x10], eax
jmp 0x496ad6
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x14]
push eax
call sub.CLRenderNewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::GetFont_void_
mov ebp, dword [esp + 0x44]
add esp, 4
test ebp, ebp
mov byte [esp + 0x30], 0x20
jle 0x496b34
mov ecx, dword [esp + 0x1a]
mov edi, dword [esp + 0x38]
and ecx, 0xff
push 0
imul ecx, esi
push 0
push 0
push 0
add ecx, edi
push 0
push ecx
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea eax, [esp + 0x4c]
push ecx
push eax
call sub.CLRenderNewEngine.dll_public:_static_void___cdecl_CxImage::DrawTextA_char_const___int__int__int__int__int__unsigned_int__struct_tagRECT_const___struct_HFONT____
add esp, 0x24
inc esi
cmp esi, ebp
jl 0x496af0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x40], esi
inc ecx
mov dword [esp + 0x3c], ebp
je 0x496c0d
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
cmp ecx, eax
jge 0x496c0d
xor ebp, ebp
test esi, esi
jl 0x496b84
mov edx, dword [esp + 0x40]
push edx
push ebx
call fcn.00498770
mov ecx, dword [esp + 0x48]
add esp, 8
mov ebp, eax
inc ecx
cmp ebp, esi
mov dword [esp + 0x40], ecx
jle 0x496b67
mov eax, ebp
sub eax, esi
cmp eax, 2
jg 0x496c26
xor ecx, ecx
add esi, ebx
push eax
lea edx, [esp + 0x34]
mov word [esp + 0x34], cx
push esi
push edx
mov byte [esp + 0x3e], cl
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esp + 0x26]
mov ecx, dword [esp + 0x44]
and eax, 0xff
push 0
imul eax, dword [esp + 0x4c]
push 0
push 0
push 0
add eax, ecx
mov ecx, dword [esp + 0x50]
push 0
push eax
push ecx
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call sub.CLRenderNewEngine.dll_public:_static_void___cdecl_CxImage::DrawTextA_char_const___int__int__int__int__int__unsigned_int__struct_tagRECT_const___struct_HFONT____
mov eax, dword [esp + 0x6c]
add esp, 0x30
inc eax
mov edi, ebx
mov dword [esp + 0x3c], eax
or ecx, 0xffffffff
xor eax, eax
mov esi, ebp
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x40]
not ecx
cmp eax, ecx
jb 0x496b51
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x38]
push str.Error_Draw_UprightText_draw_text_number___2_
push eax
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x40]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x38]
mov esi, 0xfffffffe
mov dword [esp + 0x28], 0xffffffff
call fcn.004ac05e
mov eax, esi
jmp 0x496c11