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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x517c86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, ebx
mov dword [esp + 0x60], ecx
push esi
push edi
mov ecx, dword [eax]
mov dword [esp + 0xc8], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xcc], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xd0], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0x1c]
test eax, eax
mov dword [esp + 0xd4], edx
jne 0x461bed
mov eax, ebx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [ebp + 0x18]
mov dword [esp + 0xb8], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0xbc], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0xc0], ecx
test esi, esi
mov dword [esp + 0xc4], edx
je 0x461c2b
mov ecx, 0xc
lea edi, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
jmp 0x461c38
lea eax, [esp + 0xd8]
push eax
call sub.CRLUTL110.dll__UTLGetIdentityMatrix_4
mov eax, dword [esp + 0xb8]
test eax, eax
jne 0x461c52
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x461ce8
lea ecx, [esp + 0x158]
push ecx
call sub.CRLUTL110.dll__UTLGetIdentityMatrix_4
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xb8]
push edx
lea ecx, [esp + 0x15c]
push eax
push ecx
call sub.CRLUTL110.dll__UTLTranslateMatrix_12
lea edx, [esp + 0xd8]
lea eax, [esp + 0x158]
push edx
push eax
call sub.CRLUTL110.dll__UTLTransformMatrix_8
mov ecx, 0xc
lea esi, [esp + 0x158]
lea edi, [esp + 0xd8]
lea eax, [esp + 0xc8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xb8]
neg ecx
neg edx
push ecx
push edx
push eax
call sub.CDRRIP110.dll_RIPOffsetRRect
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xb8]
neg ecx
neg edx
push ecx
lea eax, [esp + 0xbc]
push edx
push eax
call sub.CDRRIP110.dll_RIPOffsetRRect
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0xb8]
push edx
mov eax, dword [ecx + 8]
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00461520
mov edx, dword [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x84], eax
lea eax, [esp + 0x188]
push edx
push eax
call sub.CDRRIP110.dll_RIPSetDevRectFromImage
mov ecx, dword [esp + 0x14]
push ecx
call sub.CDRRIP110.dll_RIPGetWidth
mov edx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
push edx
call sub.CDRRIP110.dll_RIPGetHeight
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 4]
mov edi, dword [ebx]
sub eax, esi
mov ecx, dword [ebx + 8]
inc eax
sub ecx, edi
mov dword [esp + 0x10], eax
inc ecx
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov ebx, dword [ebp + 0x1c]
fidiv dword [esp + 0x28]
mov edx, dword [ebx]
sub edx, edi
fst qword [esp + 0x8c]
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
fidiv dword [esp + 0x38]
fst qword [esp + 0xa4]
fild dword [esp + 0x10]
fdiv st(1)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0xc]
sub eax, esi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fdiv st(2)
call sub.MSVCRT.dll__ftol
mov ecx, dword [ebx + 8]
mov dword [esp + 0x48], eax
sub ecx, edi
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fadd st(1)
fsub qword [0x51cce8]
fdiv st(1)
call sub.MSVCRT.dll__ftol
mov edx, dword [ebx + 4]
mov dword [esp + 0x44], eax
sub edx, esi
fstp st(0)
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fadd st(1)
fsub qword [0x51cce8]
fdiv st(1)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x40], eax
lea eax, [esp + 0x188]
fstp st(0)
push eax
lea ecx, [esp + 0x40]
lea edx, [esp + 0x40]
push ecx
push edx
call sub.CDRRIP110.dll_RIPIntersectRRect
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x9c], edx
cmp eax, ecx
jl 0x462488
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
cmp edx, esi
jl 0x462488
sub eax, ecx
inc eax
mov esi, eax
mov dword [esp + 0x64], esi
lea edi, [esi*8]
push edi
call sub.MFC42.DLL_operatornew
mov ebx, eax
lea eax, [esi*4]
push eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_operatornew
mov esi, eax
push edi
mov dword [esp + 0x94], esi
call sub.MFC42.DLL_operatornew
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
xor edi, edi
push eax
mov dword [esp + 0x28], edi
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov dword [esp + 0x34], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1a0], edi
push ecx
call sub.CDRRIP110.dll_RIPIsSingleTileImage
test eax, eax
jne 0x461f2c
mov edx, dword [esp + 0x14]
push edx
call sub.CDRRIP110.dll_RIPGetVRes
mov edi, eax
mov eax, dword [esp + 0x14]
push eax
call sub.CDRRIP110.dll_RIPGetHRes
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
push ecx
call sub.CDRRIP110.dll_RIPGetWidth
mov edx, dword [esp + 0x28]
push 0
push 0
push 2
push edi
push edx
push 1
push eax
push 6
call sub.CDRRIP110.dll_RIPCreateImageEx
test eax, eax
mov dword [esp + 0x50], eax
jne 0x461f2c
mov eax, 0x64
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [esp + 0x20]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x50]
test edi, edi
je 0x461f66
push 0
push 0
push edi
mov dword [esp + 0x34], 0
call sub.CDRRIP110.dll_RIPGetImageDataPtr
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x20], eax
jmp 0x461f95
mov eax, dword [esp + 0x14]
push eax
call sub.CDRRIP110.dll_RIPGetBytesPerLine
mov ecx, dword [esp + 0x14]
push 0
mov edi, eax
push 0
push ecx
mov dword [esp + 0x34], edi
call sub.CDRRIP110.dll_RIPGetImageDataPtr
mov ecx, dword [esp + 0x48]
imul edi, ecx
add eax, edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], ecx
inc edx
cmp ecx, edx
jg 0x46245b
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x34]
lea ecx, [eax*4]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x50]
test edi, edi
je 0x462001
mov eax, dword [esp + 0x14]
push 0
push 0
push 1
push eax
call sub.CDRRIP110.dll_RIPGetWidth
mov ecx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push 0
push eax
push 0
push 1
push eax
call sub.CDRRIP110.dll_RIPGetWidth
push eax
push 0
push 0
push edi
push 0
call sub.CDRRIP110.dll_RIPStretchBlitInContext
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
inc edx
cmp eax, edx
je 0x4620bc
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
push edi
push eax
mov eax, dword [esp + 0x44]
mov ecx, eax
and ecx, 0x80000007
jns 0x46202f
dec ecx
or ecx, 0xfffffff8
inc ecx
cdq
and edx, 7
push ecx
add eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 3
add eax, edx
push eax
call fcn.0042be20
add esp, 0x10
test eax, eax
jle 0x4620bc
mov ecx, edi
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x18]
xor eax, eax
test edx, edx
jle 0x462080
mov edx, ebx
mov edi, dword [ecx]
cmp edi, dword [edx]
jne 0x46206c
mov edi, dword [ecx + 4]
cmp edi, dword [edx + 4]
je 0x46207a
mov edi, dword [esp + 0x18]
inc eax
add edx, 8
cmp eax, edi
jl 0x46205e
jmp 0x462080
cmp eax, dword [esp + 0x18]
jl 0x46209c
mov dword [esi + eax*4], 0
mov edx, dword [ecx]
mov dword [ebx + eax*8], edx
mov edx, dword [ecx + 4]
mov dword [ebx + eax*8 + 4], edx
mov edx, dword [esp + 0x18]
inc edx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x34]
add ecx, 8
mov dword [edx + eax*4], 1
mov edi, dword [esi + eax*4]
inc edi
mov dword [esi + eax*4], edi
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x462052
mov ecx, dword [esp + 0x18]
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
test ecx, ecx
mov dword [esp + 0x58], edx
jle 0x462429
mov ecx, ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x5c], ecx
mov edi, dword [esp + 0x34]
add eax, edx
mov dword [esp + 0x80], eax
cmp dword [edi + eax*4], 0
jne 0x4623f0
mov ecx, dword [ebx + eax*8]
mov ebx, dword [ebx + eax*8 + 4]
mov esi, dword [esi + eax*4]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
sub ebx, ecx
mov dword [esp + 0x2c], esi
inc ebx
fmul qword [esp + 0xa4]
mov dword [esp + 0x4c], ebx
call sub.MSVCRT.dll__ftol
mov edi, eax
mov eax, dword [esp + 0x30]
sub eax, esi
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x7c], eax
sub eax, esi
add edi, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x6c], edi
fild dword [esp + 0x24]
fmul qword [esp + 0x8c]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x2c]
mov edx, dword [esp + 0xa0]
mov esi, eax
add esi, edx
fmul qword [esp + 0x8c]
mov dword [esp + 0x78], esi
fadd qword [0x51be90]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x4c]
add eax, esi
mov dword [esp + 0x70], eax
fmul qword [esp + 0xa4]
fadd qword [0x51be90]
call sub.MSVCRT.dll__ftol
add eax, edi
mov dword [esp + 0x74], eax
mov eax, dword [0x535230]
push eax
push eax
lea eax, [esp + 0x74]
push eax
call sub.CDRRIP110.dll_RIPInflateRRect
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
mov ecx, 0x14
lea esi, [esp + 0xb8]
lea edi, [esp + 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], ecx
mov ecx, dword [esp + 0x78]
test eax, eax
mov dword [esp + 0x110], edx
mov dword [esp + 0x114], ecx
jne 0x4621f6
test ecx, ecx
je 0x46228c
lea eax, [esp + 0x158]
push eax
call sub.CRLUTL110.dll__UTLGetIdentityMatrix_4
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x108]
push ecx
lea eax, [esp + 0x15c]
push edx
push eax
call sub.CRLUTL110.dll__UTLTranslateMatrix_12
lea ecx, [esp + 0x128]
lea edx, [esp + 0x158]
push ecx
push edx
call sub.CRLUTL110.dll__UTLTransformMatrix_8
mov ecx, 0xc
lea esi, [esp + 0x158]
lea edi, [esp + 0x128]
lea edx, [esp + 0x118]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x108]
neg eax
neg ecx
push eax
push ecx
push edx
call sub.CDRRIP110.dll_RIPOffsetRRect
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x108]
neg eax
neg ecx
push eax
lea edx, [esp + 0x10c]
push ecx
push edx
call sub.CDRRIP110.dll_RIPOffsetRRect
mov eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x110]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 0x11c], ecx
mov dword [esp + 0x124], eax
xor eax, eax
mov dword [esp + 0x120], edx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb0], eax
mov edi, dword [esp + 0x84]
mov byte [esp + 0x1a0], 1
push edi
call sub.CDRRIP110.dll_RIPGetPalette
push edi
mov dword [esp + 0x50], eax
call sub.CDRRIP110.dll_RIPGetVRes
push edi
mov esi, eax
call sub.CDRRIP110.dll_RIPGetHRes
push edi
mov dword [esp + 0x28], eax
call sub.CDRRIP110.dll_RIPGetImageType
mov ecx, dword [esp + 0x24]
push 0
push 0
push 1
cmp eax, 0xa
push esi
push ecx
jne 0x46232c
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x60]
push 1
push 8
push edx
push ebx
push eax
call sub.CDRRIP110.dll_RIPCreatePalettedImageEx
jmp 0x462338
mov edx, dword [esp + 0x40]
push edx
push ebx
push eax
call sub.CDRRIP110.dll_RIPCreateImageEx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x3c]
mov esi, eax
mov eax, dword [esp + 0x2c]
push 0
push 0
push eax
mov eax, dword [esp + 0x6c]
push ebx
push ecx
mov ecx, dword [esp + 0x94]
add edx, dword [eax + ecx*8]
push edx
mov edx, dword [esp + 0x44]
push edi
push 0
push edx
push ebx
push 0
push 0
push esi
push 0
call sub.CDRRIP110.dll_RIPStretchBlitInContext
mov eax, dword [ebp + 0xc]
push 0
push esi
push eax
mov dword [esp + 0xbc], 0
call fcn.00460e90
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4623ca
mov eax, dword [ebp + 0x20]
push 1
mov ecx, dword [esp + 0x6c]
push eax
lea eax, [esp + 0x110]
mov ecx, dword [ecx + 8]
push eax
lea eax, [esp + 0x134]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x128]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push esi
push eax
call dword [edx + 0x3c]
push esi
call fcn.00426320
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x88]
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
inc eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1a0], 0
jmp 0x46241c
mov edi, dword [ebx + eax*8]
inc edx
mov dword [ecx], edi
mov edi, dword [ebx + eax*8 + 4]
mov dword [ecx + 4], edi
mov edi, dword [esi + eax*4]
mov eax, dword [esp + 0x38]
add ecx, 8
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
mov dword [eax], edi
add eax, 4
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
lea edi, [eax + edx]
cmp edi, dword [esp + 0x18]
jl 0x4620de
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
sub ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
add edi, ecx
inc eax
inc edx
mov dword [esp + 0x20], edi
cmp eax, edx
mov dword [esp + 0x30], eax
jle 0x461fa6
mov edi, dword [esp + 0x50]
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x14]
push eax
call sub.MFC42.DLL_operatordelete
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x40]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 0x10
test edi, edi
je 0x462488
push edi
call sub.CDRRIP110.dll_RIPDestroyImage
mov ecx, dword [esp + 0x198]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x20