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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46a9fe
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
mov ebp, ecx
push esi
mov eax, dword [ebp + 0xd8]
test eax, eax
je 0x410a29
mov eax, dword [ebp + 0x138]
mov ecx, dword [ebp + 0x13c]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x40]
mov esi, dword [ebp + 0x30]
add eax, 5
mov dword [ebp + 0x12c], eax
lea eax, [esp + 0x48]
add ecx, 0xa
push eax
mov dword [ebp + 0x130], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edx
call sub.CLUINewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::GetFont_void_
lea ecx, [esp + 0x44]
push ecx
call sub.CLUINewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::GetFont_void_
mov edx, dword [ebp + 0x13c]
mov eax, dword [ebp + 0x138]
add esp, 8
lea ecx, [ebp + 0x108]
push 0
push 0
push edx
push eax
call sub.CLUINewEngine.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x410a29
push edi
mov ecx, ebp
call fcn.00412ad0
mov edi, dword [esp + 0x9c]
mov ecx, dword [ebp + 0x130]
mov edx, dword [ebp + 0x12c]
push edi
push ecx
push edx
mov ecx, ebp
call fcn.004123e0
push edi
mov ecx, ebp
call fcn.00410ec0
test ebx, ebx
je 0x410998
jmp 0x410334
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x410998
test esi, esi
je 0x410998
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx + 0x28]
cmp eax, ecx
jge 0x4103ae
mov ecx, dword [esi + 8]
lea edx, [esp + 0x44]
push 0
lea eax, [esp + 0x58]
or ecx, 0xff000000
push edx
push eax
mov dword [esp + 0x50], ecx
call sub.CLUINewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
mov ecx, dword [eax]
push 0
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 0x12c]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x130]
push 0
push 0
push 0
mov dword [esp + 0x64], edx
push 0
lea edx, [ebx + 4]
push eax
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call sub.CLUINewEngine.dll_public:_static_void___cdecl_CxImage::DrawTextA_char_const___int__int__int__int__int__unsigned_int__struct_tagRECT_const___struct_HFONT____
add esp, 0x30
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x28]
cmp edx, eax
jne 0x410946
add ebx, 4
lea ecx, [esp + 0x14]
push ebx
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x98], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 4]
mov byte [esp + 0x94], 1
test eax, eax
jne 0x410618
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x410459
mov ecx, dword [esi + 8]
push eax
lea edx, [esp + 0x48]
lea eax, [esp + 0x60]
or ecx, 0xff000000
push edx
push eax
mov dword [esp + 0x50], ecx
call sub.CLUINewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
mov ecx, dword [eax]
push 0
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 0x12c]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x130]
push 0
push 0
push 0
push 0
push eax
push ecx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x70], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
call sub.CLUINewEngine.dll_public:_static_void___cdecl_CxImage::DrawTextA_char_const___int__int__int__int__int__unsigned_int__struct_tagRECT_const___struct_HFONT____
add esp, 0x30
jmp 0x41091d
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0xc]
cmp edx, eax
jne 0x4105a1
mov eax, dword [esi + 8]
lea ecx, [esp + 0x44]
push 0
lea edx, [esp + 0x68]
or eax, 0xff000000
push ecx
push edx
mov dword [esp + 0x50], eax
call sub.CLUINewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
mov ecx, dword [eax]
add esp, 0xc
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x18]
mov edx, dword [eax + 4]
push 0x4872c8
mov dword [esp + 0x4c], edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 4]
mov byte [esp + 0x94], 2
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x14]
sub edx, eax
push edx
push eax
lea eax, [esp + 0x34]
push eax
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x98], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
mov byte [esp + 0x94], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
mov edi, dword [edx - 8]
sub eax, edi
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x34]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x94], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x130]
push 0
push 0
mov edi, dword [ebp + 0x12c]
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0
mov edx, dword [ecx - 8]
push eax
mov eax, dword [esi + 4]
lea eax, [eax + eax*2]
lea eax, [edi + eax*2]
push eax
push edx
push ecx
call sub.CLUINewEngine.dll_public:_static_void___cdecl_CxImage::DrawTextA_char_const___int__int__int__int__int__unsigned_int__struct_tagRECT_const___struct_HFONT____
mov eax, dword [esi + 0x10]
add esp, 0x24
test eax, eax
je 0x410590
mov esi, eax
mov byte [esp + 0x94], 1
lea ecx, [esp + 0x18]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x41059c
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov edx, dword [ecx + 0xc]
cmp edx, eax
je 0x410467
jmp 0x4105a1
mov byte [esp + 0x94], 1
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x41091d
mov ecx, dword [esi + 8]
lea edx, [esp + 0x44]
push 0
lea eax, [esp + 0x70]
or ecx, 0xff000000
push edx
push eax
mov dword [esp + 0x50], ecx
call sub.CLUINewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
mov ecx, dword [eax]
mov edi, dword [ebp + 0x130]
mov dword [esp + 0x50], ecx
push 0
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x20]
mov eax, dword [eax - 8]
push 0
mov ecx, dword [edx - 8]
push 0
push 0
sub eax, ecx
push 0
push edi
mov edi, dword [ebp + 0x12c]
lea eax, [eax + eax*2]
lea eax, [edi + eax*2]
push eax
push ecx
push edx
call sub.CLUINewEngine.dll_public:_static_void___cdecl_CxImage::DrawTextA_char_const___int__int__int__int__int__unsigned_int__struct_tagRECT_const___struct_HFONT____
add esp, 0x30
jmp 0x41091d
mov eax, dword [esi]
test eax, eax
je 0x41064c
mov ecx, dword [eax + 8]
lea edx, [esp + 0x44]
push 0
lea eax, [esp + 0x78]
or ecx, 0xff000000
push edx
push eax
mov dword [esp + 0x50], ecx
call sub.CLUINewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
mov ecx, dword [eax]
add esp, 0xc
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
push 0x4872c8
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 4]
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 5
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x98], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x34]
mov byte [esp + 0x94], 5
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp + 0x130]
mov eax, dword [esp + 0x20]
push 0
push 0
mov ecx, dword [eax - 8]
push 0
push 0
push 0
push edx
mov edx, dword [ebp + 0x12c]
push edx
push ecx
push eax
call sub.CLUINewEngine.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 + 0x34]
mov ecx, dword [esp + 0x44]
add esp, 0x24
mov eax, dword [eax - 8]
mov edx, dword [ecx - 8]
sub eax, edx
lea edx, [esp + 0x38]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x94], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x41076d
mov eax, dword [esi + 8]
lea ecx, [esp + 0x44]
push 0
lea edx, [esp + 0x80]
or eax, 0xff000000
push ecx
push edx
mov dword [esp + 0x50], eax
call sub.CLUINewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
mov ecx, dword [eax]
push 0
mov dword [esp + 0x54], ecx
push 0
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x130]
mov edi, dword [ebp + 0x12c]
mov ecx, dword [esp + 0x24]
push 0
push 0
push 0
mov dword [esp + 0x68], edx
mov edx, dword [ecx - 8]
push eax
mov eax, dword [esi + 4]
lea eax, [eax + eax*2]
lea eax, [edi + eax*2]
push eax
push edx
push ecx
call sub.CLUINewEngine.dll_public:_static_void___cdecl_CxImage::DrawTextA_char_const___int__int__int__int__int__unsigned_int__struct_tagRECT_const___struct_HFONT____
add esp, 0x30
jmp 0x41090c
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0xc]
cmp ecx, eax
jne 0x4108b9
mov edx, dword [esi + 8]
lea eax, [esp + 0x44]
push 0
lea ecx, [esp + 0x88]
or edx, 0xff000000
push eax
push ecx
mov dword [esp + 0x50], edx
call sub.CLUINewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
mov edx, dword [eax]
add esp, 0xc
mov dword [esp + 0x44], edx
lea ecx, [esp + 0x1c]
mov eax, dword [eax + 4]
push 0x4872c8
mov dword [esp + 0x4c], eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 4]
mov byte [esp + 0x94], 8
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x14]
sub edx, eax
push edx
push eax
lea eax, [esp + 0x44]
push eax
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x98], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 8
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx - 8]
mov edi, dword [edx - 8]
sub eax, edi
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 0xa
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x40]
mov byte [esp + 0x94], 8
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x130]
push 0
push 0
mov edi, dword [ebp + 0x12c]
mov ecx, dword [esp + 0x24]
push 0
push 0
push 0
mov edx, dword [ecx - 8]
push eax
mov eax, dword [esi + 4]
lea eax, [eax + eax*2]
lea eax, [edi + eax*2]
push eax
push edx
push ecx
call sub.CLUINewEngine.dll_public:_static_void___cdecl_CxImage::DrawTextA_char_const___int__int__int__int__int__unsigned_int__struct_tagRECT_const___struct_HFONT____
mov eax, dword [esi + 0x10]
add esp, 0x24
test eax, eax
je 0x4108a8
mov esi, eax
mov byte [esp + 0x94], 5
lea ecx, [esp + 0x1c]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4108b4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov edx, dword [ecx + 0xc]
cmp edx, eax
je 0x41077b
jmp 0x4108b9
mov byte [esp + 0x94], 5
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jle 0x41090c
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x48]
or eax, 0xff000000
mov edi, dword [ebp + 0x130]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], ecx
mov ecx, dword [edx - 8]
mov eax, dword [eax - 8]
push 0
push 0
push 0
push 0
sub eax, ecx
push 0
push edi
mov edi, dword [ebp + 0x12c]
lea eax, [eax + eax*2]
lea eax, [edi + eax*2]
push eax
push ecx
push edx
call sub.CLUINewEngine.dll_public:_static_void___cdecl_CxImage::DrawTextA_char_const___int__int__int__int__int__unsigned_int__struct_tagRECT_const___struct_HFONT____
add esp, 0x24
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x94], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x24]
mov ecx, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x130]
add edx, ecx
mov dword [ebp + 0x130], edx
mov ebx, dword [ebx + 0x2c]
test ebx, ebx
je 0x410998
mov ecx, dword [ebx + 0x28]
mov eax, dword [esi + 0xc]
cmp eax, ecx
mov dword [esp + 0x24], ebx
jge 0x41097d
mov eax, dword [esi + 0x10]
test eax, eax
je 0x41097a
mov esi, eax
cmp dword [esi + 0xc], ecx
jl 0x41096c
cmp dword [esi + 0xc], ecx
jle 0x410987
mov eax, dword [esi]
test eax, eax
je 0x410987
mov esi, eax
mov ecx, dword [esp + 0x28]
dec ecx
test ebx, ebx
mov dword [esp + 0x28], ecx
jne 0x410330
lea edx, [esp + 0x4c]
push 0
lea eax, [esp + 0x88]
push edx
push eax
call sub.CLUINewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
mov ecx, dword [ebp + 0x138]
mov edx, dword [ebp + 0x13c]
mov esi, dword [ebp + 0x24]
add esp, 0xc
add ecx, 5
add edx, 7
test esi, esi
mov dword [ebp + 0x12c], ecx
mov dword [ebp + 0x130], edx
pop edi
je 0x410a29
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x410a29
mov eax, dword [esi + 0xc]
mov edx, dword [ecx + 0x28]
mov ecx, dword [ebp + 0x40]
sub eax, edx
cmp eax, ecx
jge 0x410a29
test eax, eax
jl 0x410a29
mov edx, dword [ebp + 0x3c]
mov ecx, dword [esi + 8]
imul edx, eax
mov eax, dword [esi + 4]
mov ebx, dword [ebp + 0x130]
push 0
push ecx
mov ecx, dword [ebp + 0x12c]
add edx, ebx
lea eax, [eax + eax*2]
push edx
lea edx, [ecx + eax*2 + 2]
lea ecx, [ebp + 0xe4]
push edx
call sub.CLUINewEngine.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov esi, dword [esi + 0x10]
test esi, esi
je 0x410a29
jne 0x4109d5
mov ecx, dword [esp + 0x88]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret 4