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

Disassembly:
sub esp, 0x194
push ebx
mov ebx, dword [esp + 0x19c]
push ebp
mov ebp, dword [esp + 0x1a4]
push esi
mov esi, dword [ebx]
mov edx, dword [ebp]
xor eax, eax
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
push eax
lea eax, [esp + 0x50]
push eax
push 9
mov ecx, ebp
mov dword [esp + 0x54], 5
call dword [edx + 0x188]
mov ecx, dword [esp + 0x4c]
push ecx
call sub.CDRRIP110.dll_RIPCreateRSEx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x44], eax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0xdc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x174]
mov dword [esp + 0xdc], esi
push eax
mov dword [esp + 0xf4], edx
call sub.CRLUTL110.dll__UTLGetIdentityMatrix_4
mov ax, word [esi]
cmp ax, 0xa
jne 0x498a79
add esi, 8
mov ecx, dword [esi]
mov dword [esp + 0x1c], ecx
mov edx, dword [esi + 4]
mov dword [esp + 0x20], edx
mov eax, dword [esi + 8]
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x28], ecx
jmp 0x498bd7
cmp ax, 9
jne 0x498aa2
add esi, 8
mov edx, dword [esi]
mov dword [esp + 0x1c], edx
mov eax, dword [esi + 4]
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x24], ecx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x28], edx
jmp 0x498bd7
cmp ax, 0xb
jne 0x498acb
add esi, 8
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], ecx
mov edx, dword [esi + 8]
mov dword [esp + 0x24], edx
mov eax, dword [esi + 0xc]
mov dword [esp + 0x28], eax
jmp 0x498bd7
cmp ax, 7
je 0x498ae4
cmp ax, 8
je 0x498ae4
mov dword [esp + 0x10], 0xc8
jmp 0x499069
lea ecx, [esi + 8]
push 0x684
mov edx, dword [ecx]
mov dword [esp + 0x20], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x28], edx
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_operatornew
mov edi, eax
push 0x88
mov dword [esp + 0x40], edi
call sub.MFC42.DLL_operatornew
add esp, 8
mov dword [esp + 0x2c], eax
test edi, edi
je 0x499069
test eax, eax
je 0x499069
mov ebx, dword [esp + 0x2c]
mov ecx, 0x1a1
xor eax, eax
mov edx, edi
rep stosd dword es:[edi], eax
mov ecx, 0x22
mov edi, ebx
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x24]
mov word [edx], 1
lea eax, [edx + 4]
mov dword [esp + 0x48], 2
mov edi, dword [ecx]
mov dword [eax], edi
mov edi, dword [ecx + 4]
mov dword [eax + 4], edi
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
lea eax, [esi + 0x30]
mov edi, eax
lea ecx, [edx + 0x10]
add esi, 0x18
mov ebp, dword [edi]
mov dword [ecx], ebp
mov ebp, dword [edi + 4]
mov dword [ecx + 4], ebp
mov ebp, dword [edi + 8]
mov dword [ecx + 8], ebp
mov ebp, dword [esp + 0x1ac]
mov edi, dword [edi + 0xc]
mov dword [ecx + 0xc], edi
mov word [ebx], 2
mov edi, dword [esi]
lea ecx, [ebx + 0x48]
mov dword [ebx + 0x48], edi
mov edi, dword [esi + 4]
mov dword [ecx + 4], edi
mov esi, dword [esi + 8]
mov dword [ecx + 8], esi
mov esi, dword [eax]
lea ecx, [ebx + 0x54]
mov dword [ebx + 0x54], esi
mov esi, dword [eax + 4]
mov dword [ecx + 4], esi
mov esi, dword [eax + 8]
mov dword [ecx + 8], esi
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ebx
mov edx, dword [esp + 0x1cc]
mov edi, dword [esp + 0x1b0]
lea ecx, [esp + 0x50]
lea eax, [esp + 0x134]
push ecx
mov ecx, dword [esp + 0x1cc]
push edx
push eax
push ecx
lea edx, [esp + 0xa4]
push edi
lea eax, [esp + 0x90]
push edx
mov edx, dword [esp + 0x1d8]
lea ecx, [esp + 0x17c]
push eax
push ecx
push edx
lea eax, [esp + 0x40]
push ebp
push eax
call fcn.004983b0
add esp, 0x2c
test eax, eax
jne 0x498c3b
mov dword [esp + 0x10], 0xc9
jmp 0x499069
mov eax, dword [esp + 0x50]
xor ecx, ecx
cmp eax, ecx
je 0x498c4e
mov dword [esp + 0x10], ecx
jmp 0x499069
movsx edx, word [esp + 0x28]
mov al, byte [esp + 0x2a]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
test al, 1
fstp qword [esp + 0x8c]
je 0x498c77
xor word [esp + 0x2a], 1
mov esi, 2
jmp 0x498c7c
mov esi, 1
test byte [esp + 0x2a], 2
je 0x498c86
or esi, 0xc
mov ax, word [esp + 0x24]
mov bx, word [esp + 0x26]
cmp ax, cx
jne 0x498c9e
cmp bx, cx
je 0x498d2e
fild dword [esp + 0x1c]
movsx eax, ax
mov dword [esp + 0x14], eax
mov dword [esp + 0xa4], ecx
fild dword [esp + 0x14]
mov dword [esp + 0xb0], ecx
fmulp st(1)
fmul qword [0x51cf18]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x20]
movsx ecx, bx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xac], eax
fild dword [esp + 0x14]
fmulp st(1)
fmul qword [0x51cf18]
call sub.MSVCRT.dll__ftol
lea edx, [esp + 0xa4]
mov dword [esp + 0xa8], eax
push edx
lea eax, [esp + 0x18]
push ebp
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00497a10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
add esp, 0x10
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
lea eax, [esp + 0x140]
push edx
push eax
call sub.CRLUTL110.dll__UTLPreciseTranslateMatrix_20
lea ecx, [esp + 0xb4]
lea edx, [esp + 0xbc]
push ecx
push edx
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.004995c0
add esp, 0x10
lea ecx, [esp + 0x104]
push ecx
call sub.CRLUTL110.dll__UTLGetIdentityMatrix_4
push 0
push 0
push edi
call sub.CDRRIP110.dll_RIPGetHeight
mov dword [esp + 0x1c], eax
sub esp, 8
fild dword [esp + 0x24]
fdivr qword [esp + 0xc4]
fstp qword [esp]
push edi
call sub.CDRRIP110.dll_RIPGetWidth
mov dword [esp + 0x24], eax
sub esp, 8
fild dword [esp + 0x2c]
lea edx, [esp + 0x11c]
fdivr qword [esp + 0xd4]
fstp qword [esp]
push edx
call sub.CRLUTL110.dll__UTLStretchMatrix_28
lea eax, [esp + 0x134]
lea ecx, [esp + 0x104]
push eax
push ecx
call sub.CRLUTL110.dll__UTLTransformMatrix_8
or esi, 0x200
lea edx, [esp + 0x8c]
push esi
lea eax, [esp + 0x108]
push edx
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x9c]
push eax
push ecx
push edi
push edx
call sub.CDRRIP110.dll_RIPBitmapFillInit
test eax, eax
mov dword [esp + 0x14], eax
jne 0x498df4
mov dword [esp + 0x10], 0xc9
jmp 0x49903f
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x84]
mov ebx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x68], esi
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
sub esi, ebx
sub eax, edx
mov dword [esp + 0x60], edi
lea edi, [esi + 1]
inc eax
imul eax, edi
add eax, 0x2dc6bf
mov dword [esp + 0x74], edx
mov dword [esp + 0x64], edx
mov edx, eax
mov eax, 0x165e9f81
mov ecx, dword [esp + 0x7c]
imul edx
sar edx, 0x12
mov eax, edx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x78], ebx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x70], ebx
mov ebp, edx
mov dword [esp + 0x58], ecx
cmp ebp, 1
mov dword [esp + 0x10], edi
jle 0x498ec7
mov eax, esi
cdq
idiv ebp
mov edi, eax
inc edi
mov dword [esp + 0x30], edi
fild dword [esp + 0x30]
lea edx, [ebx + edi - 1]
mov ebx, dword [esp + 0x88]
sub ecx, ebx
mov dword [esp + 0x68], edx
fidiv dword [esp + 0x10]
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fmulp st(1)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x30], eax
add ebx, eax
mov eax, esi
mov dword [esp + 0x58], ebx
cdq
idiv edi
inc eax
mov ebp, eax
jmp 0x498ed2
sub ecx, dword [esp + 0x88]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1b8]
mov eax, dword [esp + 0x1b4]
mov esi, dword [esp + 0x1ac]
mov edx, dword [esp + 0x1bc]
push 0
mov dword [esp + 0xd0], ecx
push 0
push 1
lea ecx, [esp + 0xd0]
mov dword [esp + 0xd4], eax
mov eax, dword [esi]
push 1
push ecx
mov ecx, esi
mov dword [esp + 0xd8], 4
mov dword [esp + 0xe4], edx
call dword [eax + 0x58]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x49903f
xor ebx, ebx
test ebp, ebp
jle 0x499034
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x74]
push esi
push edx
mov edx, dword [esp + 0x1b8]
lea ecx, [esp + 0x6c]
push eax
push ecx
push edx
call fcn.00498890
add esp, 0x14
mov dword [esp + 0x40], eax
test eax, eax
je 0x498de7
push 0
push eax
call fcn.00425a40
mov esi, eax
test esi, esi
mov dword [esp + 0x3c], esi
je 0x498de7
lea edx, [esp + 0x7c]
push 0
push edx
lea edx, [esp + 0x5c]
mov ecx, dword [esp + 0x1b4]
push edx
lea edx, [esp + 0x180]
mov dword [esp + 0x4c], 0
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0x5c]
push edx
lea edx, [esp + 0xf4]
push esi
push edx
call dword [eax + 0x3c]
test eax, eax
jne 0x49902d
push esi
call fcn.00426320
mov edx, dword [esp + 0x70]
lea eax, [ebp - 2]
add edx, edi
cmp ebx, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x70], edx
je 0x498fe3
mov ecx, dword [esp + 0x68]
add ecx, edi
jmp 0x498fea
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x78]
add ecx, edi
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x30]
add esi, ecx
cmp ebx, eax
mov dword [esp + 0x60], esi
je 0x499010
add dword [esp + 0x58], ecx
jmp 0x49901b
mov edx, dword [esp + 0x80]
mov dword [esp + 0x58], edx
mov esi, dword [esp + 0x1ac]
inc ebx
cmp ebx, ebp
jl 0x498f3b
jmp 0x499034
mov esi, dword [esp + 0x1ac]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x5c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x49904d
push eax
call sub.CDRRIP110.dll_RIPBitmapFillCleanup
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x49905b
push eax
call fcn.00426320
mov eax, dword [esp + 0x40]
test eax, eax
je 0x499069
push eax
call sub.CDRRIP110.dll_RIPDestroyImage
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x49907b
push eax
call sub.CDRRIP110.dll_RIPDestroyRS
mov eax, dword [esp + 0x28]
test eax, eax
je 0x49908c
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49909d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp]
add esp, 0x194
ret