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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
test esi, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
je 0x4d46cb
push eax
push eax
push esi
call sub.CDRRIP110.dll_RIPGetImageDataPtr
push esi
mov dword [esp + 0x60], eax
call sub.CDRRIP110.dll_RIPGetBytesPerLine
push esi
mov dword [esp + 0x58], eax
call sub.CDRRIP110.dll_RIPGetHeight
mov ebx, eax
push esi
mov dword [esp + 0x5c], ebx
call sub.CDRRIP110.dll_RIPGetWidth
cmp eax, 0x1e
mov dword [esp + 0x20], eax
mov esi, eax
jb 0x4d43ae
mov esi, 0x1e
lea eax, [esi*4]
push eax
call sub.MFC42.DLL_operatornew
push 0x2d8
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_operatornew
fld qword [0x51fd30]
fld qword [0x521658]
xor ecx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
add esp, 8
fild qword [esp + 0x18]
add edi, 0x28
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], eax
fstp qword [esp + 0xa0]
mov dword [esp + 0x50], edi
fld qword [edi + 0x2d8]
fld qword [edi]
fcom qword [0x51be98]
fnstsw ax
test ah, 1
je 0x4d4448
mov edx, dword [esp + 0x20]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x98], edx
mov dword [esp + 0x68], ebx
fild qword [esp + 0x98]
mov dword [esp + 0x6c], ecx
fmul st(2)
fchs
fild qword [esp + 0x68]
fmul st(2)
fchs
fstp qword [esp + 0x18]
jmp 0x4d4485
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ecx
fild qword [esp + 0x88]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x18], 0
fmul st(1)
mov dword [esp + 0x1c], 0
fchs
fild qword [esp + 0x78]
fmul st(3)
fsubp st(1)
fld qword [esp + 0x18]
fsub st(1)
xor edx, edx
mov dword [esp + 0x34], edx
fdiv qword [esp + 0xa0]
fst qword [esp + 0x40]
faddp st(1)
fcom qword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x4d460c
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
xor esi, esi
cmp ebx, ecx
mov dword [esp + 0x38], 1
mov dword [eax], ecx
jbe 0x4d4541
fld st(0)
fchs
xor edi, edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], 0
fild qword [esp + 0x60]
fmul st(3)
fsubr st(1)
fdiv st(4)
call sub.MSVCRT.dll__ftol
cmp eax, dword [esp + 0x20]
jae 0x4d452e
cmp esi, ebx
jae 0x4d452e
mov ebx, dword [esp + 0x5c]
mov ecx, eax
and ecx, 7
mov edx, 0x80
sar edx, cl
shr eax, 3
add eax, edi
xor ecx, ecx
mov cl, byte [eax + ebx]
and edx, 0xff
and edx, ecx
jne 0x4d4526
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4d4526
mov eax, dword [esp + 0x14]
inc dword [eax]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x54]
inc esi
add edi, ecx
cmp esi, ebx
jb 0x4d44cf
mov edx, dword [esp + 0x34]
xor ecx, ecx
fstp st(0)
fadd qword [esp + 0x40]
mov eax, dword [esp + 0x14]
inc edx
add eax, 4
mov dword [esp + 0x34], edx
fcom qword [esp + 0x18]
mov dword [esp + 0x14], eax
fnstsw ax
test ah, 1
jne 0x4d44b5
fstp st(0)
fstp st(0)
cmp edx, ecx
fstp st(0)
jbe 0x4d4612
fld qword [0x51be98]
fld qword [0x51be98]
mov eax, dword [esp + 0x10]
mov ecx, edx
mov esi, dword [eax]
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], esi
add eax, 4
fild qword [esp + 0x70]
dec ecx
faddp st(1)
jne 0x4d4584
xor ecx, ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
cmp edx, ecx
fild qword [esp + 0x80]
fstp qword [esp + 0x40]
fdiv qword [esp + 0x40]
jbe 0x4d4600
mov eax, dword [esp + 0x10]
mov ecx, edx
mov edx, dword [eax]
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], edx
add eax, 4
fild qword [esp + 0x90]
dec ecx
fsub st(1)
fld st(0)
fmul st(1)
faddp st(3)
fstp st(0)
jne 0x4d45c7
fstp st(0)
fdiv qword [esp + 0x40]
xor ecx, ecx
fstp qword [esp + 0x28]
jmp 0x4d4612
fstp st(0)
fdiv qword [esp + 0x40]
fstp qword [esp + 0x28]
jmp 0x4d4612
fstp st(0)
fstp st(0)
fstp st(0)
fld qword [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
fcomp st(2)
mov dword [edx], eax
mov dword [edx + 4], esi
fnstsw ax
test ah, 0x41
jne 0x4d4642
fstp st(0)
fstp st(0)
fld qword [esp + 0x28]
fild dword [esp + 0x24]
fsub qword [0x521650]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x50]
inc eax
add edi, 8
add edx, 8
cmp eax, 0x5b
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x3c], edx
jl 0x4d4400
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x4c]
fstp qword [ecx]
fld qword [0x51be98]
mov ecx, 0x5b
fadd qword [eax]
add eax, 8
dec ecx
jne 0x4d467a
fmul qword [0x521648]
mov edx, dword [ebp + 0x10]
fdivp st(1)
fld st(0)
fstp qword [edx]
fcomp qword [str.333333]
fnstsw ax
test ah, 0x41
jne 0x4d46a5
mov esi, 1
jmp 0x4d46a7
xor esi, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4d46b8
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4d46c9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc