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

Disassembly:
sub esp, 0xe0
mov eax, dword [esp + 0xf4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, eax
mov dword [esp + 0x18], esi
shl ecx, 8
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, dword [esp + 0xfc]
mov eax, edx
shr eax, 0x1f
mov ecx, dword [ecx]
add edx, eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0
mov ebx, dword [eax + 4]
mov eax, dword [eax]
cmp eax, ecx
jle 0x41e768
mov ebp, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], 1
jmp 0x41e772
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
mov ebp, eax
lea edi, [esi + 0x2fac]
push 0
mov ecx, edi
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
test eax, eax
jne 0x41e798
push eax
push str.H_i.mif
push str.FrameRes
push edi
mov ecx, esi
call fcn.00423b70
mov eax, dword [esp + 0x1c]
mov edi, ebp
cmp ebp, eax
mov dword [esp + 0x20], edi
jge 0x41eb25
lea eax, [ebx*8]
sub eax, ebx
mov ebx, ebp
shl ebx, 5
sub ebx, ebp
lea edx, [eax + eax*4]
add ebx, 0x2d
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ebx
jmp 0x41e7da
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
add esi, 0x2fac
push 0
mov ecx, esi
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
cmp edi, ebp
mov dword [esp + 0x28], eax
jne 0x41e804
mov eax, dword [esp + 0xf4]
test eax, eax
je 0x41e804
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41e823
mov eax, dword [esp + 0x1c]
dec eax
cmp edi, eax
jne 0x41e82a
mov eax, dword [esp + 0xf4]
test eax, eax
je 0x41e82a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41e82a
add ebx, 0xfffffff0
sub dword [esp + 0x28], 0xf
jmp 0x41e82d
add ebx, 0xfffffff0
push 0
mov ecx, esi
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
mov edx, dword [esp + 0x38]
mov ecx, 0x23
sub ecx, eax
mov eax, dword [esp + 0x1c]
shr ecx, 1
dec eax
cmp edi, eax
lea ebp, [ecx + edx + 0xb5]
jne 0x41e866
mov eax, dword [esp + 0x100]
test eax, eax
je 0x41e866
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41e882
cmp edi, dword [esp + 0x24]
jne 0x41e88f
mov eax, dword [esp + 0x100]
test eax, eax
je 0x41e88f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41e88f
add ebx, 0x10
mov eax, dword [esp + 0x28]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
push 0
mov ecx, esi
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
mov esi, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
shl esi, 0x18
or esi, 0xffffff
mov dword [esp + 0x30], 2
mov edx, dword [esp + 0x2c]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x28]
mov eax, 4
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x44], ecx
push eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x6c], esi
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 5
idiv ecx
push edx
mov edx, dword [esp + 0x20]
push ebp
push ebx
lea ecx, [edx + 0x2fac]
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x30], eax
jne 0x41e8b1
mov eax, dword [esp + 0x18]
push 0
lea esi, [eax + 0x2ff4]
mov ecx, esi
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
mov ecx, dword [esp + 0x18]
push 0
add ecx, 0x2fac
mov edi, eax
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
sub edi, eax
push 0
mov ecx, esi
mov dword [esp + 0x34], edi
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov edx, dword [esp + 0x18]
push 0
mov dword [esp + 0x30], eax
lea ecx, [edx + 0x2fac]
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub ecx, eax
mov eax, dword [esp + 0x20]
cmp eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
jne 0x41e977
test edx, edx
je 0x41e98e
mov eax, dword [esp + 0x1c]
dec eax
cmp dword [esp + 0x20], eax
jne 0x41ea57
test edx, edx
je 0x41ea3b
mov eax, dword [esp + 0x10]
cmp eax, 0xeb
jg 0x41e9a0
add eax, 0x14
mov dword [esp + 0x10], eax
test edx, edx
je 0x41e9c9
mov eax, dword [esp + 0xf4]
test eax, eax
mov eax, edi
cdq
je 0x41e9bc
sub eax, edx
mov esi, ebx
sar eax, 1
sub esi, eax
jmp 0x41e9df
sub eax, edx
mov esi, ebx
sar eax, 1
sub esi, eax
add esi, 0xf
jmp 0x41e9df
push 0
mov ecx, esi
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
shr eax, 1
mov esi, ebx
sub esi, eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edx, ebp
mov ecx, 0xf
sub edx, eax
xor eax, eax
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov eax, 4
shl ecx, 0x18
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa8], eax
or ecx, 0xffffff
lea eax, [esp + 0x78]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x18]
push eax
push 0
push edx
push esi
add ecx, 0x2ff4
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
dec eax
cmp esi, eax
jne 0x41ea57
mov eax, dword [esp + 0x100]
test eax, eax
je 0x41ea57
test edx, edx
je 0x41ea7e
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
cmp eax, esi
jne 0x41eb05
mov eax, dword [esp + 0x100]
test eax, eax
je 0x41eb05
test edx, edx
je 0x41eb05
mov eax, dword [esp + 0x10]
cmp eax, 0xeb
jg 0x41ea90
add eax, 0x14
mov dword [esp + 0x10], eax
mov eax, ecx
test edx, edx
cdq
je 0x41eaa2
sub eax, edx
sar eax, 1
sub ebx, eax
sub ebx, 0xf
jmp 0x41eaaa
sub eax, edx
sar eax, 1
lea ebx, [eax + ebx - 0x1f]
mov eax, edi
mov ecx, 0xf
cdq
sub eax, edx
lea edi, [esp + 0xb4]
sar eax, 1
sub ebp, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov eax, 4
shl ecx, 0x18
lea edx, [esp + 0xb4]
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x18]
or ecx, 0xffffff
push edx
push 0
mov dword [esp + 0xe8], ecx
push ebp
push ebx
lea ecx, [eax + 0x2ff4]
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
inc eax
add edx, 0x1f
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], edx
jl 0x41e7ca
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret 0x14