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

Disassembly:
mov eax, dword [0x4a92f4]
sub esp, 0x5c
test eax, eax
push esi
mov esi, ecx
je 0x45a071
mov eax, dword [esi + 0x28]
test eax, eax
jle 0x45a04d
mov al, byte [esi + 0x2c]
test al, al
je 0x45a04d
mov eax, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x70]
push edi
push 0
lea edi, [esi + 4]
push 0
push ebp
push eax
mov ecx, edi
call sub.CLUINewEngine.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
lea ecx, [esp + 0x20]
push ecx
call sub.CLUINewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::GetFont_void_
lea edx, [esp + 0x24]
push 0
lea eax, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x30], 0xffffffff
call sub.CLUINewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
mov ecx, dword [esi + 0x74]
add esp, 0x10
mov edx, dword [ecx - 8]
push 0
mov ecx, edi
mov dword [esp + 0x78], edx
call sub.CLUINewEngine.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov ebx, eax
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
lea ecx, [ebp + 0x23]
lea eax, [eax + eax*2]
mov dword [esp + 0x74], ecx
shl eax, 1
sub ebx, eax
push 0
shr ebx, 1
add ebx, edx
mov edx, dword [esi + 0x70]
mov ecx, edi
mov eax, dword [edx - 8]
mov dword [esp + 0x1c], eax
call sub.CLUINewEngine.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov ecx, eax
mov eax, dword [esp + 0x18]
push 0
push 0
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x78]
shl edx, 1
sub ecx, edx
push 0
shr ecx, 1
push 0
push 0
lea edi, [ecx + eax + 8]
mov eax, dword [esi + 0x74]
mov ecx, dword [esp + 0x88]
add ebp, 0x34
mov edx, dword [eax - 8]
push ecx
push ebx
push edx
push eax
mov dword [esp + 0x94], edi
mov dword [esp + 0x34], ebp
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 + 0x70]
push 0
push 0
push 0
mov ecx, dword [eax - 8]
push 0
push 0
push ebp
push edi
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 [esi + 0x9c]
add esp, 0x48
test eax, eax
mov dword [esp + 0x14], 0
jle 0x45a02f
lea edx, [esi + 0x18ac]
lea ebp, [esi + 0x78]
mov dword [esp + 0x18], edx
push 0
mov ecx, ebp
call sub.CLUINewEngine.dll_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
push 0
mov ecx, ebp
call sub.CLUINewEngine.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
push 0
mov ecx, ebp
call sub.CLUINewEngine.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x30]
push eax
rep stosd dword es:[edi], eax
mov ecx, ebp
call sub.CLUINewEngine.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov edi, dword [esp + 0x18]
mov ecx, eax
mov eax, 0x58ed2309
push 0
imul ecx, dword [edi - 4]
mul ecx
sub ecx, edx
mov dword [esp + 0x38], 0
shr ecx, 1
add ecx, edx
shr ecx, 6
mov dword [esp + 0x34], ecx
mov ecx, ebp
call sub.CLUINewEngine.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov ecx, eax
mov eax, 0x58ed2309
mul ecx
sub ecx, edx
push 0
shr ecx, 1
add ecx, edx
shr ecx, 6
mov dword [esp + 0x3c], ecx
mov ecx, ebp
call sub.CLUINewEngine.dll_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x30]
test eax, eax
mov eax, dword [edi]
jne 0x459fad
cmp eax, 0x10
jg 0x459f6e
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x30]
lea eax, [eax + eax*2]
push ecx
add edx, 0xfffffffb
push 0
lea ecx, [ebx + eax*2 + 3]
push edx
push ecx
mov ecx, ebp
jmp 0x45a00c
mov edx, dword [esi + 0x74]
mov ecx, dword [edx - 8]
sub eax, ecx
mov ecx, dword [esi + 0x70]
inc eax
mov edx, dword [ecx - 8]
sub edx, 4
cmp eax, edx
jg 0x45a011
mov ecx, dword [esp + 0x70]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2 + 3]
lea ecx, [ebx + 6]
cmp eax, ecx
jge 0x459f9c
mov eax, ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push 0
push ecx
push eax
mov ecx, ebp
jmp 0x45a00c
cmp eax, 0x10
jg 0x459fcd
mov ecx, dword [edi + 8]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x78]
lea eax, [eax + eax*2]
push ecx
add edx, 0xfffffffb
lea ecx, [ebx + eax*2 + 3]
push edx
push ecx
jmp 0x45a009
mov edx, dword [esi + 0x74]
mov ecx, dword [edx - 8]
sub eax, ecx
mov ecx, dword [esi + 0x70]
inc eax
mov edx, dword [ecx - 8]
sub edx, 4
cmp eax, edx
jg 0x45a011
mov ecx, dword [esp + 0x70]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2 + 3]
add ecx, 6
cmp eax, ecx
jge 0x459ff7
mov eax, ecx
mov edx, dword [edi + 8]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffffb
push edx
push ecx
push eax
lea ecx, [edi + 0xc]
call sub.CLUINewEngine.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x9c]
inc eax
add edi, 0x38
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
jl 0x459ec0
lea edx, [esp + 0x28]
push 0
lea eax, [esp + 0x1c]
push edx
push eax
call sub.CLUINewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x5c
ret 0xc
push 0x4872c8
lea ecx, [esi + 0x74]
call sub.MFC42.DLL_CString::operator_1
push 0x4872c8
lea ecx, [esi + 0x70]
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 0x9c], 0
pop esi
add esp, 0x5c
ret 0xc