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

Disassembly:
sub esp, 0x238
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24c]
mov esi, ecx
xor ebp, ebp
xor ebx, ebx
mov eax, dword [edi + 8]
mov ecx, dword [edi]
cmp eax, ebp
mov dword [esp + 0x30], 0x64
mov dword [esp + 0x14], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x28], ebp
je 0x40a4cc
cmp byte [eax], 1
jne 0x40a4cc
mov cl, byte [eax + 8]
cmp cl, 8
je 0x40a37f
cmp cl, 9
je 0x40a37f
cmp cl, 0xa
jne 0x40a395
lea edx, [eax + 0xc]
lea ebx, [eax + 0x18]
mov ebp, dword [edx]
mov dword [ebx], ebp
mov ebp, dword [edx + 4]
mov dword [ebx + 4], ebp
mov edx, dword [edx + 8]
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x258]
mov ebx, dword [esp + 0x250]
mov ebp, dword [esp + 0x254]
mov dword [esp + 0x144], edx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x138], 4
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x140], ebp
mov edx, dword [edx + 0x74]
push edx
lea edx, [eax + 0x18]
push edx
push ecx
movsx ecx, word [eax + 0xa]
add eax, 0xc
push ecx
push eax
call dword [sym.imp.CRLCLR110.dll_struct_TINT____stdcall_TNTGetNewTintFor6_struct_CLR_COLORSPEC___int__unsigned_char__struct_CLR_COLORSPEC___class_WAppColorInfo__]
lea edx, [esp + 0x94]
mov dword [esp + 0x1a4], eax
push edx
push ebx
push ebp
mov dword [esp + 0x1d8], 1
call fcn.004403b0
lea eax, [esp + 0x94]
lea ecx, [esp + 0x164]
push eax
push ecx
mov ecx, esi
call fcn.0043b6d0
test eax, eax
je 0x40b0b8
lea edx, [esp + 0x210]
lea eax, [esp + 0x138]
push edx
push eax
mov ecx, esi
call fcn.0043b0b0
test eax, eax
je 0x40a4bb
lea ecx, [esp + 0x1e0]
push ecx
call sub.CRLUTL110.dll__UTLGetIdentityMatrix_4
mov edx, dword [esi + 0x28]
push edx
call sub.CDRRIP110.dll_RIPDuplicateImage
mov ebp, eax
test ebp, ebp
je 0x40a4ac
push 0
push ebp
call fcn.00425a40
mov ebx, eax
test ebx, ebx
je 0x40a4a0
lea eax, [esp + 0x1a4]
push eax
push ebx
call fcn.004264c0
mov eax, dword [esi + 0x20]
push ebx
lea ecx, [esp + 0x1e4]
push 0
lea edx, [esp + 0x9c]
push ecx
add eax, 0x20
push edx
push eax
push edi
mov ecx, esi
call fcn.0043d740
mov dword [esp + 0x30], eax
jmp 0x40a4a6
push ebp
call sub.CDRRIP110.dll_RIPDestroyImage
push ebx
call fcn.00426320
lea ecx, [esp + 0x210]
push ecx
mov ecx, esi
call fcn.0043b150
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x238
ret 0x18
cmp ecx, ebp
je 0x40b0b8
mov ax, word [ecx]
cmp ax, bp
je 0x40b0b8
cmp ax, 1
je 0x40a512
cmp ax, 2
je 0x40a50c
cmp ax, 6
jne 0x40a4fa
mov edx, dword [esi + 0x20]
cmp dword [edx + 0x70], ebp
jne 0x40a50c
pop edi
pop esi
pop ebp
mov eax, 0x64
pop ebx
add esp, 0x238
ret 0x18
cmp ax, 1
jne 0x40a549
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x250]
mov eax, dword [esi]
add ecx, 4
push ecx
mov ecx, dword [esp + 0x25c]
push edx
mov edx, dword [esp + 0x25c]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x94]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x238
ret 0x18
or eax, 0xffffffff
lea ecx, [esp + 0x15c]
mov dword [esp + 0xac], eax
mov dword [esp + 0xa8], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0xa4], ebp
push eax
push ecx
mov dword [esp + 0xb8], ebp
call sub.CDRRIP110.dll_RIPGetDevOriginPoint
mov edx, dword [esi + 0x118]
lea eax, [esp + 0x78]
push edx
push eax
call sub.CDRRIP110.dll_RIPGetDevOriginPoint
mov edx, dword [esp + 0x250]
mov eax, dword [esp + 0x254]
lea ecx, [esp + 0x174]
push ecx
push edx
push eax
call fcn.004403b0
lea ecx, [esp + 0x174]
lea edx, [esp + 0x60]
push ecx
push edx
mov ecx, esi
call fcn.0043b6d0
test eax, eax
je 0x40b0b8
mov eax, dword [esp + 0x14]
xor edi, edi
mov ax, word [eax]
cmp ax, 2
jne 0x40a661
mov ecx, dword [esp + 0x25c]
mov edx, dword [esi]
lea eax, [esp + 0x94]
push eax
push ecx
push 2
mov ecx, esi
call dword [edx + 0xdc]
lea edx, [esp + 0x94]
lea eax, [esp + 0x10c]
push edx
push eax
call sub.CDRRIP110.dll_RIPMakeGoodRRect
lea ecx, [esp + 0x10c]
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0x64]
push edx
push eax
call sub.CDRRIP110.dll_RIPIntersectRRect
test eax, eax
je 0x40b0b8
mov ecx, esi
mov dword [esp + 0x3c], ebp
call fcn.0043ae10
cmp eax, 3
jne 0x40a63e
mov dword [esp + 0x3c], 1
mov ecx, dword [esp + 0x14]
mov edi, 3
mov ax, word [ecx + 0x28]
cmp ax, bp
mov dword [esp + 0x74], eax
jg 0x40a6cc
mov edx, dword [esi + 0x20]
mov ax, word [edx + 0x30]
mov word [ecx + 0x28], ax
jmp 0x40a6cc
cmp ax, 1
jne 0x40a680
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x150]
add edx, 4
push ecx
push edx
mov ecx, esi
call fcn.0043af60
jmp 0x40a6cc
cmp ax, 6
jne 0x40afcf
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x74]
push ecx
call sub.CDRRIP110.dll_RIPCreateRSEx
mov dword [esp + 0x28], eax
call fcn.0043d1d0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x40afcf
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x40afcf
mov edx, eax
mov eax, dword [esp + 0x28]
push edx
push eax
call sub.CDRRIP110.dll_RIPSetFillMode
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
sub eax, edx
mov ecx, dword [esi + 0x114]
cdq
xor eax, edx
push 1
sub eax, edx
mov edx, dword [esp + 0x70]
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x68]
sub eax, edx
lea ecx, [esp + 0x4c]
cdq
xor eax, edx
sub eax, edx
lea edx, [esp + 0x14]
inc eax
push edx
mov dword [esp + 0x4c], eax
lea eax, [esi + 0x134]
push edi
push eax
lea eax, [esp + 0x54]
push eax
push ecx
mov ecx, esi
call fcn.0040b0d0
test eax, eax
je 0x40afcf
mov edx, dword [esp + 0x10]
push ebp
push edx
call sub.CDRRIP110.dll_RIPFreeSoftMaskEncoding
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
call fcn.0040cf20
test eax, eax
je 0x40a792
mov ecx, dword [esi + 0x118]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0040cd50
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x38], ebx
je 0x40afcf
lea eax, [esp + 0xf4]
lea ecx, [esp + 0x124]
push eax
lea edx, [esp + 0x120]
push ecx
lea eax, [esp + 0x10c]
push edx
push eax
mov ecx, ebx
call sub.CDRRIP110.dll_public:_void___thiscall_CRasterizerContext::GetMappingMode_struct_tagPOINT___struct_tagPOINT___struct_tagSIZE___struct_tagSIZE__
mov edi, dword [esp + 0x2c]
jmp 0x40a81a
lea ecx, [esi + 0x160]
lea edx, [esp + 0x90]
push ecx
mov ecx, dword [esi + 8]
push ebp
push ebp
lea eax, [esp + 0x4c]
push edx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esp + 0x264]
push ecx
mov ecx, dword [esp + 0x26c]
push edx
mov edx, dword [esp + 0x274]
push eax
push ecx
push edx
call fcn.0043c660
add esp, 0x28
test eax, eax
je 0x40afcf
cmp dword [esp + 0x90], ebp
jle 0x40affb
cmp dword [esp + 0x40], ebp
jbe 0x40affb
mov ecx, esi
call fcn.0043ae10
cmp eax, 3
jne 0x40a803
mov edi, dword [esi + 0x118]
jmp 0x40a806
mov edi, dword [esi + 0x34]
lea eax, [esi + 0x128]
push ebp
push eax
push edi
mov ecx, esi
mov dword [esp + 0x38], edi
call fcn.0043b020
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
dec ecx
push ebp
dec edx
push ecx
push edx
lea eax, [esp + 0x5c]
push ebp
push eax
call sub.CDRRIP110.dll_RIPSetDevRect
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xa4]
mov dword [esp + 0xb0], ecx
push edx
lea ecx, [esp + 0x198]
push eax
push ecx
call sub.CDRRIP110.dll_RIPSetClipRect
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x60]
push edx
lea ecx, [esp + 0x54]
push eax
push ecx
call sub.CDRRIP110.dll_RIPOffsetRRect
lea edx, [esp + 0x60]
lea eax, [esp + 0x50]
push edx
push eax
push ebp
call sub.CDRRIP110.dll_RIPIntersectRRect
test eax, eax
je 0x40afbb
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], eax
lea edx, [esp + 0x60]
mov dword [esp + 0xe8], ecx
lea eax, [esp + 0xdc]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call sub.CDRRIP110.dll_RIPIntersectRRect
test eax, eax
je 0x40af93
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xbc], edx
neg ecx
neg eax
push ecx
lea edx, [esp + 0xbc]
push eax
push edx
call sub.CDRRIP110.dll_RIPOffsetRRect
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xb8]
push eax
push ecx
push ebp
call sub.CDRRIP110.dll_RIPSetClipRect
cmp ebx, ebp
mov dword [esp + 0x4c], 1
je 0x40a9d5
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
sub ecx, edx
mov edx, dword [esp + 0xf8]
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0xf8]
push edx
mov edx, dword [esp + 0x130]
push edx
mov edx, dword [esp + 0x130]
sub eax, edi
push edx
push ecx
mov dword [esp + 0x130], eax
push eax
mov eax, dword [esp + 0x120]
mov dword [esp + 0x138], ecx
mov ecx, dword [esp + 0x11c]
push eax
push ecx
mov ecx, ebx
call sub.CDRRIP110.dll_public:_void___thiscall_CRasterizerContext::SetMappingMode_struct_tagPOINT__struct_tagPOINT__struct_tagSIZE__struct_tagSIZE_
mov edx, dword [esp + 0x250]
mov eax, dword [esp + 0x258]
mov ecx, dword [esp + 0x254]
push edx
push eax
push ecx
mov ecx, ebx
call sub.CDRRIP110.dll_public:_int___thiscall_CRasterizerContext::PolyFill_struct_tagPOINT_const___struct_NODETYPE_const___int_
test eax, eax
je 0x40afbf
jmp 0x40aa29
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
sub edx, eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xec], edx
sub eax, ecx
lea ecx, [esp + 0xec]
push ecx
push edi
push ebp
mov dword [esp + 0xfc], eax
call sub.CDRRIP110.dll_RIPSetDevOriginPoint
mov edx, dword [esp + 0x90]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push edi
call sub.CDRRIP110.dll_RIPPolyPolygon
test eax, eax
je 0x40afcf
mov eax, dword [esp + 0x14]
mov ax, word [eax]
cmp ax, 2
jne 0x40acaf
mov edx, dword [esp + 0x110]
mov ecx, dword [esp + 0x10c]
mov eax, dword [esp + 0x114]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x118]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xa0], ecx
neg edx
neg eax
push edx
lea ecx, [esp + 0x98]
push eax
push ecx
call sub.CDRRIP110.dll_RIPOffsetRRect
mov eax, dword [esi + 0x20]
cmp dword [eax + 0x10], 6
jne 0x40ac35
cmp dword [eax + 0x78], ebp
je 0x40ac35
mov edx, dword [esp + 0x14]
xor ebx, ebx
xor ecx, ecx
movsx edi, word [edx + 0x30]
test edi, edi
jle 0x40ac35
mov eax, edx
lea edx, [eax + 0x34]
test ebx, ebx
jne 0x40aae4
xor eax, eax
mov ax, word [edx]
cmp eax, 2
je 0x40aad4
cmp eax, 3
je 0x40aad4
mov ebx, 1
inc ecx
add edx, 0x10
cmp ecx, edi
jl 0x40aabc
test ebx, ebx
je 0x40ac35
push 0x684
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0xb4], ebp
je 0x40ac35
mov ecx, 0x1a1
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call fcn.004399a0
mov edx, dword [esp + 0x14]
xor ebx, ebx
cmp word [edx + 0x30], bx
jle 0x40ab88
sub edx, ebp
lea edi, [ebp + 0x34]
mov dword [esp + 0x40], edx
jmp 0x40ab33
mov edx, dword [esp + 0x40]
mov eax, dword [esi + 0x20]
add edx, edi
push edx
mov ecx, dword [eax + 0x74]
mov eax, dword [eax + 0x78]
mov edx, dword [eax]
mov ebp, dword [ecx]
lea eax, [esp + 0x130]
push edx
push eax
call dword [ebp + 0x13c]
mov edx, dword [esp + 0x12c]
mov eax, dword [esp + 0x130]
mov ecx, edi
inc ebx
add edi, 0x10
mov dword [ecx], edx
mov edx, dword [esp + 0x134]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 8], edx
movsx ecx, word [eax + 0x30]
cmp ebx, ecx
jl 0x40ab2f
mov ebp, dword [esp + 0xb4]
lea eax, [ebp + 4]
mov ecx, dword [esp + 0x3c]
push 0
lea edx, [esp + 0xbc]
push ecx
push edx
mov edx, dword [esi + 0x134]
lea ecx, [esp + 0xa0]
push ecx
push edx
push eax
mov eax, dword [esi + 0x34]
push eax
call sub.CDRRIP110.dll_RIPFastFountainFill
test eax, eax
je 0x40afbf
test ebp, ebp
je 0x40abc8
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x134]
push 0
push ecx
push edx
push 0
push 0
call sub.CDRRIP110.dll_RIPSetAlpha
mov eax, dword [esi + 0x138]
test eax, eax
je 0x40ac41
mov ecx, dword [esi + 0x134]
push 0x20000
push 0
push 0
push ecx
mov ecx, dword [esp + 0x34]
push 0
push eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x3c]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esi + 0x28]
inc eax
push eax
push ecx
push edi
push edx
push 0
call sub.CDRRIP110.dll_RIPBlitTrans
test eax, eax
je 0x40afbf
jmp 0x40ac90
mov edx, dword [esp + 0x14]
lea eax, [edx + 4]
jmp 0x40ab8b
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
sub eax, edi
mov ebx, dword [esp + 0x18]
cdq
xor eax, edx
push 0x20000
sub eax, edx
push 0
lea ecx, [eax + 1]
mov eax, dword [esp + 0x28]
sub eax, ebx
push ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esi + 0x134]
inc eax
push eax
push 0
push 0
push edx
push 0
push ecx
push eax
mov eax, dword [esi + 0x28]
push edi
push ebx
push eax
push 0
call sub.CDRRIP110.dll_RIPStretchBlitInContext
test eax, eax
je 0x40afbf
mov ecx, dword [esi + 0x134]
push 0
push 0
push ecx
push 0
push 0
call sub.CDRRIP110.dll_RIPSetAlpha
mov ebx, dword [esp + 0x38]
xor ebp, ebp
jmp 0x40af38
cmp ax, 1
jne 0x40ad6c
mov ecx, dword [esi + 0x138]
cmp ecx, ebp
je 0x40ad1c
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x150]
mov ebx, dword [esp + 0x18]
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x2c]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x34]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esi + 0x118]
inc eax
push eax
push edi
push ebx
push ecx
mov ecx, dword [esi + 0x28]
push ecx
push edx
call sub.CDRRIP110.dll_RIPDrawSoftMaskTrans
test eax, eax
je 0x40afbf
mov ebx, dword [esp + 0x38]
xor ebp, ebp
jmp 0x40af38
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x150]
push eax
mov eax, dword [esp + 0x20]
push ebp
push ebp
push ecx
mov ecx, dword [esp + 0x34]
sub eax, ecx
mov edi, dword [esp + 0x28]
cdq
xor eax, edx
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x34]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esi + 0x28]
inc eax
push eax
mov eax, dword [esi + 0x118]
push ecx
push edi
push edx
push eax
call sub.CDRRIP110.dll_RIPDrawSoftMask
test eax, eax
je 0x40afbf
jmp 0x40af38
cmp ax, 6
jne 0x40afbf
mov ecx, dword [esi + 0x28]
push ecx
call sub.CDRRIP110.dll_RIPGetAlpha
mov edx, dword [esi + 0x28]
test eax, eax
push edx
je 0x40ae59
lea eax, [esp + 0x1d4]
push eax
call sub.CDRRIP110.dll_RIPGetAlphaRect
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], edx
lea ecx, [esp + 0x18]
mov dword [esp + 0xcc], eax
lea edx, [esp + 0xcc]
push ecx
lea eax, [esp + 0x84]
push edx
push eax
mov dword [esp + 0xe4], edi
call sub.CDRRIP110.dll_RIPIntersectRRect
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x8c]
sub eax, ecx
mov edi, dword [esp + 0x80]
cdq
xor eax, edx
push ebp
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x90]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0xe4]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0xdc]
sub edi, ecx
mov ecx, dword [esi + 0x28]
push edi
push ecx
call sub.CDRRIP110.dll_RIPGetAlpha
mov edx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
sub edx, eax
mov eax, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x34]
sub eax, edx
push eax
push ecx
push ebp
call sub.CDRRIP110.dll_RIPMultSoftMaskEx
test eax, eax
je 0x40afbf
jmp 0x40ae8f
lea eax, [esp + 0x13c]
push eax
call sub.CDRRIP110.dll_RIPGetClipRect
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], edi
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
lea ecx, [esp + 0x18]
mov dword [esp + 0x100], ebp
push ecx
push edx
lea ecx, [esp + 0x18c]
push eax
lea edx, [esp + 0xd4]
push ecx
push edx
mov dword [esp + 0x110], ebp
call sub.CDRRIP110.dll_RIPSetAlpha
mov ecx, dword [esi + 0x28]
lea eax, [esp + 0x80]
push eax
lea edx, [esp + 0x168]
push ecx
push edx
call sub.CDRRIP110.dll_RIPSetClipRect
mov eax, dword [esi + 0x28]
push eax
call sub.CDRRIP110.dll_RIPGetHeight
mov ecx, dword [esi + 0x28]
push eax
push ecx
call sub.CDRRIP110.dll_RIPGetWidth
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esi + 0x28]
lea edx, [esp + 0x104]
push edx
push eax
push ecx
call sub.CDRRIP110.dll_RIPRectangle
test eax, eax
je 0x40afbf
mov eax, dword [esp + 0xc8]
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x184]
push edx
push eax
push ecx
push ebp
push ebp
call sub.CDRRIP110.dll_RIPSetAlpha
mov eax, dword [esi + 0x28]
lea edx, [esp + 0x164]
push edx
push eax
push ebp
call sub.CDRRIP110.dll_RIPSetClipRect
mov eax, dword [esp + 0x10]
lea ecx, [esi + 0x11c]
lea edx, [esp + 0xb8]
push ecx
mov ecx, dword [esi + 0x34]
push edx
push eax
push ecx
call sub.CDRRIP110.dll_RIPFastSolidRect
test eax, eax
je 0x40afbf
mov edx, dword [esp + 0x48]
push ebp
lea eax, [esp + 0xe0]
push edx
push eax
mov dword [esp + 0x58], ebp
call sub.CDRRIP110.dll_RIPOffsetRRect
lea ecx, [esp + 0x60]
lea edx, [esp + 0xdc]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call sub.CDRRIP110.dll_RIPIntersectRRect
mov edi, dword [esp + 0x2c]
test eax, eax
jne 0x40a8ef
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x50]
push ecx
push ebp
push edx
call sub.CDRRIP110.dll_RIPOffsetRRect
lea eax, [esp + 0x60]
lea ecx, [esp + 0x50]
push eax
push ecx
push ebp
call sub.CDRRIP110.dll_RIPIntersectRRect
test eax, eax
jne 0x40a8a4
mov dword [esp + 0x30], ebp
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x40afcd
mov edx, dword [ecx]
push 1
call dword [edx]
xor ebp, ebp
mov eax, dword [esi + 0x134]
cmp eax, ebp
je 0x40afe3
push ebp
push ebp
push eax
push ebp
push ebp
call sub.CDRRIP110.dll_RIPSetAlpha
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x40b045
cmp eax, dword [esi + 0x114]
je 0x40b001
push eax
call sub.CDRRIP110.dll_RIPDestroyImage
jmp 0x40b045
mov dword [esp + 0x30], ebp
jmp 0x40afcf
lea eax, [esp + 0xa4]
push eax
call sub.CDRRIP110.dll_RIPIsRRectEmpty
test eax, eax
jne 0x40b045
cmp dword [esp + 0x4c], ebp
je 0x40b032
mov eax, dword [esp + 0x10]
lea ecx, [esi + 0x11c]
lea edx, [esp + 0xa4]
push ecx
push edx
push eax
push ebp
call sub.CDRRIP110.dll_RIPFastSolidRect
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x194]
push ecx
push edx
push ebp
call sub.CDRRIP110.dll_RIPSetClipRect
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x15c]
push eax
push ecx
push ebp
call sub.CDRRIP110.dll_RIPSetDevOriginPoint
mov eax, dword [esi + 0x118]
lea edx, [esp + 0x78]
push edx
push eax
push ebp
call sub.CDRRIP110.dll_RIPSetDevOriginPoint
mov eax, dword [esp + 0x14]
cmp word [eax], 2
jne 0x40b07c
mov cx, word [esp + 0x74]
mov word [eax + 0x28], cx
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
cmp edi, ebp
je 0x40b09d
cmp esi, ebp
je 0x40b097
mov edx, dword [esp + 0x70]
push edx
push esi
call sub.CDRRIP110.dll_RIPSetFillMode
push edi
call sub.CDRRIP110.dll_RIPDestroyFillMode
cmp esi, ebp
je 0x40b0a7
push esi
call sub.CDRRIP110.dll_RIPDestroyRS
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x238
ret 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x238
ret 0x18