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

Disassembly:
push 0xffffffffffffffff
push 0x47517b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
mov al, byte [0x4d8b11]
push edi
mov edi, ecx
test al, al
mov dword [esp + 8], edi
jne 0x420ce4
push ebx
push ebp
push esi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_2
xor ebp, ebp
xor esi, esi
lea eax, [edi + 0x51e4]
mov dword [esp + 0xbc], ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
jmp 0x42089c
xor ebp, ebp
push 0x4941b0
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator_2
push ebp
lea ecx, [edi + 0x3254]
mov dword [esp + 0x28], 0xffffffff
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov ebx, eax
mov ecx, dword [edi + 0x51ac]
imul ebx, esi
push esi
add ebx, 0x26b
call fcn.00448890
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x18], esi
je 0x420be7
mov ecx, dword [esi + 8]
cmp ecx, ebp
jne 0x4208ff
mov al, byte [esi + 1]
test al, al
jbe 0x420be7
cmp word [esi + 2], bp
jle 0x420be7
mov al, byte [esi + 1]
and al, 0xf
cmp al, 0xb
mov byte [esp + 0x34], al
jae 0x420ccd
cmp ecx, ebp
je 0x420929
cmp word [esi + 2], bp
jne 0x420929
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], 2
cmp eax, ebp
jne 0x42092d
mov dword [esp + 0x24], ebp
cmp ecx, ebp
je 0x42096c
cmp word [esi + 2], bp
jne 0x42096c
cmp dword [esi + 0xc], ebp
je 0x42096c
mov ebp, dword [esp + 0x34]
and ebp, 0xff
mov ecx, dword [ebp*4 + 0x48c198]
push ecx
push ebp
call fcn.0045cf00
add esp, 4
lea edx, [esp + 0x14]
push eax
push 0x48db08
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
jmp 0x420992
mov ebp, dword [esp + 0x34]
and ebp, 0xff
push ebp
call fcn.0045cf00
add esp, 4
push eax
lea eax, [esp + 0x14]
push 0x48c0bc
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov al, byte [esi + 1]
test al, al
jbe 0x420b14
cmp word [esi + 2], 0
jle 0x420b14
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x48]
test eax, eax
je 0x420b14
push 0
push 0
lea ecx, [edi + 0x32e4]
push 0xbd
push ebx
mov dword [esp + 0x38], ecx
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov eax, dword [esi + 4]
test eax, eax
je 0x420a2c
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x3c]
push eax
push 0
push 0xbd
push ebx
mov dword [esp + 0x78], 0x202020
mov dword [esp + 0x74], 8
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov ecx, dword [esp + 0x14]
push 0
push ebp
push 0xbd
push ebx
add ecx, 0x3254
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
jmp 0x420a40
push 0
push ebp
push 0xbd
push ebx
lea ecx, [edi + 0x3254]
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov ax, word [esi + 2]
cmp ax, 1
jl 0x420be7
movsx ecx, ax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov esi, edx
lea eax, [esi + esi*4]
lea edx, [eax + eax*4]
shl edx, 2
mov eax, edx
mov edx, ecx
sub edx, eax
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebp, edx
lea edx, [esi + esi*4]
lea eax, [ebp + edx*2]
lea eax, [eax + eax*4]
shl eax, 1
sub ecx, eax
cmp esi, 9
mov dword [esp + 0x28], ecx
jle 0x420aa4
mov esi, 9
jmp 0x420aa8
test esi, esi
jle 0x420ac2
lea ecx, [esi - 1]
push 0
push ecx
lea edx, [ebx + 4]
push 0xcd
push edx
lea ecx, [edi + 0x3308]
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
test ebp, ebp
jg 0x420ad5
test esi, esi
jle 0x420aed
test ebp, ebp
jne 0x420ad5
mov ebp, 9
jmp 0x420ad6
dec ebp
push 0
push ebp
lea eax, [ebx + 0xa]
push 0xcd
push eax
lea ecx, [edi + 0x3308]
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x420afc
mov eax, 9
jmp 0x420afd
dec eax
push 0
push eax
lea ecx, [ebx + 0x10]
push 0xcd
push ecx
lea ecx, [edi + 0x3308]
jmp 0x420bde
mov eax, dword [esi + 0xc]
test eax, eax
je 0x420ba0
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x48]
test eax, eax
je 0x420ba0
push 0
push 0
push 0xbd
push ebx
lea ecx, [edi + 0x32e4]
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov eax, dword [esi + 4]
test eax, eax
je 0x420b8a
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x78]
push eax
push ebp
push 0xbd
push ebx
add ecx, 0x3254
mov dword [esp + 0xb4], 0x202020
mov dword [esp + 0xb0], 8
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov edi, dword [esp + 0x14]
jmp 0x420be3
push 0
push ebp
push 0xbd
push ebx
lea ecx, [edi + 0x3254]
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
jmp 0x420be7
push 0
lea ecx, [edi + 0x3254]
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov esi, eax
push 0
imul esi, dword [esp + 0x30]
add esi, 0x26b
push 0
push 0xbd
push esi
lea ecx, [edi + 0x32e4]
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
push 0
push ebp
push 0xbd
push esi
lea ecx, [edi + 0x3278]
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp]
cmp eax, 0xfffffff8
jle 0x420ca7
cmp eax, 8
jle 0x420c03
mov dword [ebp], 8
mov ecx, dword [ebp]
test ecx, ecx
mov eax, ecx
jl 0x420c20
shl eax, 8
sub eax, ecx
cdq
and edx, 7
add edx, eax
or al, 0xff
sar edx, 3
sub al, dl
jmp 0x420c2e
shl eax, 8
sub eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
test al, al
mov byte [esp + 0x30], al
jbe 0x420c97
cmp al, 0xff
ja 0x420c97
mov ebp, dword [esp + 0x24]
test ebp, ebp
jl 0x420c93
push 0
lea ecx, [edi + 0x33bc]
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov ecx, dword [esp + 0x20]
mov dl, byte [esi + 1]
sub eax, 0x18
push 0xbd
shr eax, 1
push ebx
and dl, 0xf
lea eax, [eax + ecx + 0x24d]
mov ecx, dword [esp + 0x38]
push ecx
push ebp
mov byte [esp + 0x48], dl
push 0xa5
push eax
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x28]
and eax, 0xff
push edx
push 1
push eax
mov ecx, edi
call fcn.00423fe0
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp]
cmp eax, 2
jg 0x420ca3
test eax, eax
jge 0x420ca7
dec eax
mov dword [ebp], eax
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
add eax, 0x18
inc esi
add ebp, 4
cmp eax, 0xa8
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
jl 0x42089a
lea ecx, [esp + 0x10]
mov dword [esp + 0xbc], 0xffffffff
call fcn.00465724
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
pop edi
mov dword fs:[0], ecx
add esp, 0xb0
ret