Function at 0x41eb40
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 + 0x34], 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 + 4]
add edx, eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], 0
mov edi, dword [eax]
mov eax, dword [eax + 4]
cmp eax, ecx
jle 0x41eba7
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], 1
jmp 0x41ebaf
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
lea ebx, [esi + 0x2fd0]
push 0
mov ecx, ebx
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
test eax, eax
jne 0x41ebd5
push eax
push str.V_i.mif
push str.FrameRes
push ebx
mov ecx, esi
call fcn.00423b70
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 0x24], ebp
cmp ecx, eax
jge 0x41ef00
mov ebx, edi
lea eax, [ecx*8]
shl ebx, 5
sub ebx, edi
sub eax, ecx
mov dword [esp + 0x38], ebx
lea edi, [eax + eax*4 + 0xd8]
mov dword [esp + 0x2c], edi
jmp 0x41ec1c
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
add esi, 0x2fd0
push 0
mov ecx, esi
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
cmp ebp, eax
jne 0x41ec4a
mov eax, dword [esp + 0xf4]
test eax, eax
je 0x41ec4a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41ec68
mov edx, dword [esp + 0x18]
lea eax, [edx - 1]
cmp ebp, eax
jne 0x41ec7e
mov eax, dword [esp + 0xf4]
test eax, eax
je 0x41ec7e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41ec7e
test eax, eax
mov dword [esp + 0x14], edi
je 0x41ec77
add edi, 0xffffffef
mov dword [esp + 0x14], edi
sub dword [esp + 0x28], 0x11
jmp 0x41ec85
add edi, 0xffffffee
mov dword [esp + 0x14], edi
push 0
mov ecx, esi
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov ecx, 0x1f
sub ecx, eax
mov eax, dword [esp + 0x18]
shr ecx, 1
dec eax
lea edx, [ecx + ebx + 0xe]
cmp ebp, eax
mov dword [esp + 0x30], edx
jne 0x41ecbb
mov eax, dword [esp + 0x100]
test eax, eax
je 0x41ecbb
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41ecd9
cmp ebp, dword [esp + 0x1c]
jne 0x41ece6
mov eax, dword [esp + 0x100]
test eax, eax
je 0x41ece6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41ece6
add dword [esp + 0x14], 0x11
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::GetWidth_unsigned_int_
mov esi, dword [esp + 0x20]
mov ebp, eax
shl esi, 0x18
or esi, 0xffffff
mov ebx, 2
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x3c]
lea edx, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x28]
mov eax, 4
push edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 5
idiv ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
add ecx, 0x2fd0
push edx
mov edx, dword [esp + 0x1c]
push edx
push eax
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
dec ebx
jne 0x41ed03
mov edi, dword [esp + 0x34]
push 0
lea esi, [edi + 0x2ff4]
mov ecx, esi
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
add edi, 0x2fd0
push 0
mov ecx, edi
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
push 0
mov ecx, esi
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
push 0
mov ecx, edi
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, ecx
jne 0x41eda5
test edx, edx
je 0x41edb6
mov ecx, dword [esp + 0x18]
dec ecx
cmp eax, ecx
jne 0x41ee4d
test edx, edx
je 0x41ee2a
mov ebx, dword [esp + 0x20]
cmp ebx, 0xeb
jg 0x41edc9
add ebx, 0x14
mov dword [esp + 0x20], ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x78]
mov edx, ebx
rep stosd dword es:[edi], eax
shl edx, 0x18
lea eax, [esp + 0x78]
or edx, 0xffffff
mov ebp, 4
push eax
mov dword [esp + 0xa8], edx
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xac], ebp
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 5
idiv ecx
mov eax, dword [esp + 0x34]
mov ecx, esi
push edx
mov edx, dword [esp + 0x1c]
push edx
push eax
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
jmp 0x41ee33
mov ebx, dword [esp + 0x20]
mov ebp, 4
mov ecx, dword [esp + 0x18]
dec ecx
cmp eax, ecx
jne 0x41ee56
mov ecx, dword [esp + 0x100]
test ecx, ecx
je 0x41ee56
test edx, edx
je 0x41ee6f
jmp 0x41ee56
mov ebx, dword [esp + 0x20]
mov ebp, 4
cmp eax, dword [esp + 0x1c]
jne 0x41eee4
mov ecx, dword [esp + 0x100]
test ecx, ecx
je 0x41eee4
test edx, edx
je 0x41eee4
cmp ebx, 0xeb
jg 0x41ee7e
add ebx, 0x14
mov dword [esp + 0x20], ebx
test edx, edx
jne 0x41ee8a
push edx
mov ecx, esi
call sub.CLUINewEngineU.dll_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
shl ebx, 0x18
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xb4]
lea edx, [esp + 0xb4]
or ebx, 0xffffff
push edx
rep stosd dword es:[edi], eax
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe0], ebp
mov dword [esp + 0xe8], ebp
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 5
idiv ecx
mov eax, dword [esp + 0x34]
mov ecx, esi
push edx
mov edx, dword [esp + 0x1c]
push edx
push eax
call sub.CLUINewEngineU.dll_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
inc eax
add edx, 0x23
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edx
jl 0x41ec0c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret 0x14