Function at 0x447cea
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa68
push ebx
push esi
push edi
mov eax, 0x4d40f0
call fcn.004c5654
mov edx, dword [0x4e2d20]
cmp dword [edx + 0x13], 0
jne 0x447d1d
xor eax, eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x4490f1
cmp dword [0x4cace0], 0xc
jne 0x447d63
mov ecx, dword [0x4cacf0]
mov dword [ebp - 0x58], ecx
mov eax, dword [0x4cacf4]
mov dword [ebp - 0x5c], eax
cmp dword [0x4cacf0], 0
jne 0x447d50
mov edx, dword [0x4e2d20]
mov dword [ebp - 0x58], edx
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
jmp 0x447dc2
mov eax, dword [0x4cacf0]
mov dword [ebp - 0x58], eax
mov edx, dword [0x4cacf4]
mov dword [ebp - 0x5c], edx
jmp 0x447dc2
cmp dword [0x4cace4], 0
jne 0x447d7c
mov ecx, dword [0x4e2d20]
mov dword [ebp - 0x58], ecx
xor eax, eax
mov dword [ebp - 0x5c], eax
jmp 0x447db4
push dword [0x4cace4]
call fcn.00404052
pop ecx
push eax
call fcn.0040405c
pop ecx
mov dword [ebp - 0x58], eax
cmp dword [0x4cace8], 0
je 0x447daf
push dword [0x4cace8]
call fcn.0040405c
pop ecx
mov edx, dword [eax + 0x13]
mov dword [ebp - 0x5c], edx
jmp 0x447db4
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
cmp dword [0x4cace8], 0
jne 0x447dc2
xor eax, eax
mov dword [ebp - 0x5c], eax
push 5
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x447e00
mov word [ebp - 0x44], 0x14
push pe_nt_image_headers32
push 0x4e2750
push dword [ebp - 4]
call sub.OWL50f.dll__TPalette__bctr_qpx15tagPALETTEENTRYi
add esp, 0xc
mov edx, dword [0x4e4444]
sub dword [edx], 2
mov word [ebp - 0x44], 8
mov ecx, dword [ebp - 4]
jmp 0x447e03
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x60], ecx
push 0
push dword [ebp - 0x60]
push dword [ebp + 8]
call sub.OWL50f.dll__TDC_SelectObject_qrx8TPalette4bool
add esp, 0xc
push dword [ebp + 8]
call fcn.00428d82
pop ecx
mov eax, dword [ebp - 0x60]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x447e5d
mov edx, dword [0x4e4444]
add dword [edx], 2
mov word [ebp - 0x44], 0x2c
mov eax, dword [0x4e4444]
dec dword [eax]
push 0
push dword [ebp - 8]
call sub.OWL50f.dll__TGdiObject__bdtr_qv
add esp, 8
push dword [ebp - 8]
call sub.cw3220.DLL___bdele_qpv
pop ecx
mov word [ebp - 0x44], 0x20
mov edx, dword [0x4cecec]
sub edx, dword [0x4cece4]
mov dword [0x4e37c8], edx
mov ecx, dword [0x4cecf0]
sub ecx, dword [0x4cece8]
mov dword [0x4e37cc], ecx
cmp dword [ebp + 0xc], 1
jne 0x447eda
push 5
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x447ed2
mov word [ebp - 0x44], 0x44
push 8
call sub.USER32.dll_GetSysColor
push eax
lea edx, [ebp - 0x68]
push edx
call fcn.0040402e
add esp, 8
lea ecx, [ebp - 0x68]
push ecx
push dword [ebp - 0xc]
call sub.OWL50f.dll__TBrush__bctr_qrx6TColor
add esp, 8
mov eax, dword [0x4e4444]
sub dword [eax], 2
mov word [ebp - 0x44], 0x38
mov edx, dword [ebp - 0xc]
jmp 0x447ed5
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x64], edx
jmp 0x447f2c
push 5
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x447f26
mov word [ebp - 0x44], 0x5c
push 5
call sub.USER32.dll_GetSysColor
push eax
lea ecx, [ebp - 0x6c]
push ecx
call fcn.0040402e
add esp, 8
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x10]
call sub.OWL50f.dll__TBrush__bctr_qrx6TColor
add esp, 8
mov edx, dword [0x4e4444]
sub dword [edx], 2
mov word [ebp - 0x44], 0x50
mov ecx, dword [ebp - 0x10]
jmp 0x447f29
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x64], ecx
push dword [ebp - 0x64]
push dword [ebp + 8]
call sub.OWL50f.dll__TDC_SelectObject_qrx6TBrush
add esp, 8
mov eax, dword [0x4e37cc]
inc eax
push eax
mov edx, dword [0x4e37c8]
inc edx
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00413faf
add esp, 0x14
push dword [ebp + 8]
call sub.OWL50f.dll__TDC_RestoreBrush_qv
pop ecx
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x447f8f
mov edx, dword [0x4e4444]
add dword [edx], 2
mov word [ebp - 0x44], 0x74
push 3
push dword [ebp - 0x14]
call sub.OWL50f.dll__TBrush__bdtr_qv
add esp, 8
mov word [ebp - 0x44], 0x68
lea ecx, [ebp - 0x8c]
push ecx
lea eax, [ebp - 0x88]
push eax
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp - 0x5c]
push dword [ebp - 0x58]
call fcn.00461827
add esp, 0x18
fld dword [ebp - 0x88]
fsub dword [ebp - 0x80]
fcomp dword [0x4490fa]
fnstsw ax
sahf
ja 0x447ff2
fld dword [ebp - 0x8c]
fsub dword [ebp - 0x84]
fcomp dword [0x4490fa]
fnstsw ax
sahf
ja 0x447ff2
xor eax, eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x4490f1
cmp dword [0x4ca8d4], 0
je 0x448040
fld dword [ebp - 0x88]
fsub dword [ebp - 0x80]
fstp dword [ebp - 0x94]
fild dword [0x4c9c9c]
fmul qword [0x4490fe]
fmul dword [0x449106]
fstp dword [ebp - 0x94]
fld dword [ebp - 0x80]
fsub dword [ebp - 0x94]
fstp dword [ebp - 0x80]
fld dword [ebp - 0x88]
fadd dword [ebp - 0x94]
fstp dword [ebp - 0x88]
mov ecx, dword [0x4d3990]
mov dword [ebp - 0x90], ecx
mov dword [0x4d3990], 1
mov eax, dword [0x4e2b78]
mov dword [ebp - 0x70], eax
mov edx, dword [0x4e2b7c]
mov dword [ebp - 0x74], edx
fld dword [ebp - 0x80]
fsub dword [0x44910a]
fstp dword [0x4e2b78]
fld dword [ebp - 0x84]
fsub dword [0x44910a]
fstp dword [0x4e2b7c]
mov ecx, dword [0x4e2b80]
mov dword [ebp - 0x78], ecx
mov eax, dword [0x4e2b84]
mov dword [ebp - 0x7c], eax
fld dword [ebp - 0x88]
fsub dword [ebp - 0x80]
fadd dword [0x44910e]
fld xword [0x449112]
fmulp st(1)
fstp dword [0x4e2b80]
fld dword [ebp - 0x8c]
fsub dword [ebp - 0x84]
fadd dword [0x44910e]
fld xword [0x449112]
fmulp st(1)
fstp dword [0x4e2b84]
cmp dword [ebp + 0xc], 1
jne 0x44811f
push 0x4d399c
lea edx, [ebp - 0x194]
push edx
call sub.cw3220.DLL__strcpy
add esp, 8
push 0x4d4300
push 0x4d399c
call sub.cw3220.DLL__strcpy
add esp, 8
push dword [ebp + 8]
call fcn.00445b1e
pop ecx
lea ecx, [ebp - 0x194]
push ecx
push 0x4d399c
call sub.cw3220.DLL__strcpy
add esp, 8
mov eax, dword [ebp - 0x70]
mov dword [0x4e2b78], eax
mov edx, dword [ebp - 0x74]
mov dword [0x4e2b7c], edx
mov ecx, dword [ebp - 0x78]
mov dword [0x4e2b80], ecx
mov eax, dword [ebp - 0x7c]
mov dword [0x4e2b84], eax
mov edx, dword [ebp - 0x90]
mov dword [0x4d3990], edx
xor ecx, ecx
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp - 0x98]
xor edx, edx
mov dword [eax*4 + 0x4e234c], edx
inc dword [ebp - 0x98]
cmp dword [ebp - 0x98], 0x100
jl 0x448155
mov edi, 0xd8
lea eax, [edi - 0xd8]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0x10
jg 0x4481b4
imul edx, dword [ebp - 0x98], 0xaf
test edx, edx
jns 0x4481a1
add edx, 0xf
sar edx, 4
add dl, 0x50
xor ecx, ecx
mov cl, dl
mov dword [edi*4 + 0x4e234c], ecx
jmp 0x4481ec
mov eax, dword [ebp - 0x98]
add eax, 0xfffffff0
imul eax, eax, 0xb4
mov ecx, 0x14
cdq
idiv ecx
xor edx, edx
mov dl, al
movzx ecx, dx
shl ecx, 8
or ecx, 0xff
and eax, 0xff
shl eax, 0x10
or ecx, eax
mov dword [edi*4 + 0x4e234c], ecx
inc edi
cmp edi, 0xfc
jl 0x44817b
mov edi, 0x24
lea eax, [edi - 0x24]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0x10
jg 0x448239
imul edx, dword [ebp - 0x98], 0xaf
test edx, edx
jns 0x44821d
add edx, 0xf
sar edx, 4
add dl, 0x50
xor ecx, ecx
mov cl, dl
movzx eax, cx
shl eax, 8
or eax, 0
mov dword [edi*4 + 0x4e234c], eax
jmp 0x44826b
mov edx, dword [ebp - 0x98]
add edx, 0xfffffff0
imul eax, edx, 0xb4
mov ecx, 0x14
cdq
idiv ecx
xor edx, edx
mov dl, al
or edx, 0xff00
and eax, 0xff
shl eax, 0x10
or edx, eax
mov dword [edi*4 + 0x4e234c], edx
inc edi
cmp edi, 0x48
jl 0x4481fa
mov edi, 0x48
lea eax, [edi - 0x48]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0x10
jg 0x4482b2
imul edx, dword [ebp - 0x98], 0xaf
test edx, edx
jns 0x448299
add edx, 0xf
sar edx, 4
add dl, 0x50
xor ecx, ecx
mov cl, dl
shl ecx, 0x10
or ecx, 0
mov dword [edi*4 + 0x4e234c], ecx
jmp 0x4482e7
mov eax, dword [ebp - 0x98]
add eax, 0xfffffff0
imul eax, eax, 0xb4
mov ecx, 0x14
cdq
idiv ecx
xor edx, edx
mov dl, al
and eax, 0xff
movzx ecx, ax
shl ecx, 8
or edx, ecx
or edx, 0xff0000
mov dword [edi*4 + 0x4e234c], edx
inc edi
cmp edi, 0x6c
jl 0x448276
mov edi, 0x6c
lea eax, [edi - 0x6c]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0x10
jg 0x448331
imul eax, dword [ebp - 0x98], 0xaf
test eax, eax
jns 0x448315
add eax, 0xf
sar eax, 4
add eax, 0x50
xor edx, edx
mov dl, al
xor ecx, ecx
mov cl, al
shl ecx, 0x10
or edx, ecx
mov dword [edi*4 + 0x4e234c], edx
jmp 0x448366
mov eax, dword [ebp - 0x98]
add eax, 0xfffffff0
imul eax, eax, 0xb4
mov ecx, 0x14
cdq
idiv ecx
and eax, 0xff
movzx edx, ax
shl edx, 8
or edx, 0xff
or edx, 0xff0000
mov dword [edi*4 + 0x4e234c], edx
inc edi
cmp edi, 0x90
jl 0x4482f2
mov edi, 0x90
lea eax, [edi - 0x90]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0x10
jg 0x4483b9
imul eax, dword [ebp - 0x98], 0xaf
test eax, eax
jns 0x44839a
add eax, 0xf
sar eax, 4
add eax, 0x50
xor edx, edx
mov dl, al
xor ecx, ecx
mov cl, al
movzx eax, cx
shl eax, 8
or edx, eax
mov dword [edi*4 + 0x4e234c], edx
jmp 0x4483e4
mov edx, dword [ebp - 0x98]
add edx, 0xfffffff0
imul eax, edx, 0xb4
mov ecx, 0x14
cdq
idiv ecx
and eax, 0xff
shl eax, 0x10
or eax, 0xffff
mov dword [edi*4 + 0x4e234c], eax
inc edi
cmp edi, 0xb4
jl 0x448374
mov edi, 0xb4
lea eax, [edi - 0xb4]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0x10
jg 0x44843e
imul eax, dword [ebp - 0x98], 0xaf
test eax, eax
jns 0x448418
add eax, 0xf
sar eax, 4
add eax, 0x50
xor edx, edx
mov dl, al
movzx ecx, dx
shl ecx, 8
or ecx, 0
and eax, 0xff
shl eax, 0x10
or ecx, eax
mov dword [edi*4 + 0x4e234c], ecx
jmp 0x44846b
mov edx, dword [ebp - 0x98]
add edx, 0xfffffff0
imul eax, edx, 0xb4
mov ecx, 0x14
cdq
idiv ecx
and eax, 0xff
or eax, 0xff00
or eax, 0xff0000
mov dword [edi*4 + 0x4e234c], eax
inc edi
cmp edi, 0xd8
jl 0x4483f2
xor edi, edi
mov dword [ebp - 0x98], edi
imul eax, dword [ebp - 0x98], 0xaf
test eax, eax
jns 0x448491
add eax, 0xf
sar eax, 4
add eax, 0x50
xor edx, edx
mov dl, al
xor ecx, ecx
mov cl, al
movzx ecx, cx
shl ecx, 8
or edx, ecx
and eax, 0xff
shl eax, 0x10
or edx, eax
mov dword [edi*4 + 0x4e234c], edx
inc edi
cmp edi, 0x10
jl 0x44847a
mov edi, 0x10
mov dword [ebp - 0x98], edi
imul eax, dword [ebp - 0x98], 0xaf
mov ecx, 0x24
cdq
idiv ecx
add eax, 0x50
xor edx, edx
mov dl, al
xor ecx, ecx
mov cl, al
movzx ecx, cx
shl ecx, 8
or edx, ecx
and eax, 0xff
shl eax, 0x10
or edx, eax
mov dword [edi*4 + 0x4e234c], edx
inc edi
cmp edi, 0x24
jl 0x4484c3
xor eax, eax
mov dl, byte [eax*4 + 0x4e234c]
mov byte [ebp + eax*4 - 0x594], dl
mov ecx, dword [eax*4 + 0x4e234c]
shr ecx, 8
mov byte [ebp + eax*4 - 0x593], cl
mov edx, dword [eax*4 + 0x4e234c]
shr edx, 0x10
mov byte [ebp + eax*4 - 0x592], dl
mov ecx, dword [eax*4 + 0x4e234c]
shr ecx, 0x18
mov byte [ebp + eax*4 - 0x591], cl
inc eax
cmp eax, 0x100
jl 0x448507
push 5
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x448590
mov word [ebp - 0x44], 0x8c
push pe_nt_image_headers32
lea eax, [ebp - 0x594]
push eax
push dword [ebp - 0x18]
call sub.OWL50f.dll__TPalette__bctr_qpx15tagPALETTEENTRYi
add esp, 0xc
mov edx, dword [0x4e4444]
sub dword [edx], 2
mov word [ebp - 0x44], 0x80
mov ecx, dword [ebp - 0x18]
jmp 0x448593
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x60], ecx
push 0
push dword [ebp - 0x60]
push dword [ebp + 8]
call sub.OWL50f.dll__TDC_SelectObject_qrx8TPalette4bool
add esp, 0xc
push dword [ebp + 8]
call fcn.00428d82
pop ecx
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4485ed
mov edx, dword [0x4e4444]
add dword [edx], 2
mov word [ebp - 0x44], 0xa4
mov eax, dword [0x4e4444]
dec dword [eax]
push 0
push dword [ebp - 0x1c]
call sub.OWL50f.dll__TGdiObject__bdtr_qv
add esp, 8
push dword [ebp - 0x1c]
call sub.cw3220.DLL___bdele_qpv
pop ecx
mov word [ebp - 0x44], 0x98
push 5
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x448637
mov word [ebp - 0x44], 0xbc
push 1
push 1
push 0
lea edx, [ebp - 0xa0]
push edx
call fcn.00409a7c
add esp, 8
push eax
push dword [ebp - 0x20]
call sub.OWL50f.dll__TPen__bctr_qrx6TColorii
add esp, 0x10
mov ecx, dword [0x4e4444]
sub dword [ecx], 2
mov word [ebp - 0x44], 0xb0
mov eax, dword [ebp - 0x20]
jmp 0x44863a
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x9c], eax
push dword [ebp - 0x9c]
push dword [ebp + 8]
call sub.OWL50f.dll__TDC_SelectObject_qrx4TPen
add esp, 8
xor edx, edx
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0xa8], 0x14
xor ecx, ecx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xb0], 0xa
mov dword [ebp - 0xb4], 0x1e
mov dword [ebp - 0xb8], 0xa
mov dword [ebp - 0xbc], 0x3e99999a
mov dword [ebp - 0xc0], 0x3f800000
mov byte [ebp - 0x145], 0
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0x13], 0
je 0x44900b
mov eax, dword [ebp - 0x58]
mov edx, dword [eax + 0x13]
mov ecx, dword [edx + 3]
mov dword [ebp - 0xc8], ecx
mov eax, dword [ebp - 0x58]
mov edx, dword [eax + 0x13]
mov ecx, dword [edx + 7]
mov dword [ebp - 0xcc], ecx
mov eax, dword [0x4d9e90]
mov dword [0x4d9f18], eax
mov edx, dword [0x4d9f18]
push dword [edx*4 + 0x4e2f00]
call fcn.00447c81
pop ecx
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx + 0x13]
mov edx, dword [eax + 0x13]
mov dword [ebp - 0x14c], edx
jmp 0x448ff3
call fcn.0045ec1a
test eax, eax
je 0x44871d
call fcn.0045ec4e
cmp eax, 0x1b
je 0x44900b
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ecx + 3]
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0x14c]
mov ecx, dword [edx + 7]
mov dword [ebp - 0xd4], ecx
mov eax, dword [ebp - 0x14c]
movsx edx, byte [eax]
cmp edx, 2
jne 0x4487b1
mov ecx, dword [ebp - 0x14c]
cmp byte [ecx + 2], 1
jae 0x44875d
inc dword [0x4d9f18]
jmp 0x448775
mov eax, dword [ebp - 0x14c]
xor edx, edx
mov dl, byte [eax + 2]
add edx, dword [0x4d9e90]
dec edx
mov dword [0x4d9f18], edx
mov ecx, dword [0x4d9f18]
push dword [ecx*4 + 0x4e2f00]
call fcn.00447c81
pop ecx
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x14c]
mov edx, dword [eax + 3]
mov dword [ebp - 0xc8], edx
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ecx + 7]
mov dword [ebp - 0xcc], eax
jmp 0x448fe4
cmp byte [ebp - 0x145], 0
je 0x4487e4
mov edx, dword [ebp - 0x14c]
mov ecx, dword [edx + 3]
mov dword [ebp - 0xc8], ecx
mov eax, dword [ebp - 0x14c]
mov edx, dword [eax + 7]
mov dword [ebp - 0xcc], edx
mov byte [ebp - 0x145], 0
jmp 0x448fe4
mov ecx, dword [ebp - 0x14c]
test byte [ecx + 1], 2
jne 0x4487fc
mov eax, dword [ebp - 0x14c]
test byte [eax + 1], 4
je 0x448803
mov byte [ebp - 0x145], 1
mov edx, dword [ebp - 0x14c]
mov ecx, dword [edx + 0xb]
cmp ecx, dword [0x4e37c8]
jge 0x44883d
mov eax, dword [ebp - 0x14c]
cmp dword [eax + 0xb], 0
jle 0x44883d
mov edx, dword [ebp - 0x14c]
mov ecx, dword [edx + 0xf]
cmp ecx, dword [0x4e37cc]
jge 0x44883d
mov eax, dword [ebp - 0x14c]
cmp dword [eax + 0xf], 0
jg 0x4488a6
mov edx, dword [ebp - 0x14c]
mov ecx, dword [edx + 0x17]
mov eax, dword [ecx + 0xb]
cmp eax, dword [0x4e37c8]
jge 0x448883
mov edx, dword [ebp - 0x14c]
mov ecx, dword [edx + 0x17]
cmp dword [ecx + 0xb], 0
jle 0x448883
mov eax, dword [ebp - 0x14c]
mov edx, dword [eax + 0x17]
mov ecx, dword [edx + 0xf]
cmp ecx, dword [0x4e37cc]
jge 0x448883
mov eax, dword [ebp - 0x14c]
mov edx, dword [eax + 0x17]
cmp dword [edx + 0xf], 0
jg 0x4488a6
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ecx + 3]
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0x14c]
mov ecx, dword [edx + 7]
mov dword [ebp - 0xcc], ecx
jmp 0x448fe4
fld dword [ebp - 0xc8]
fcomp dword [ebp - 0xd0]
fnstsw ax
sahf
ja 0x4488d9
fld dword [ebp - 0xc8]
fcomp dword [ebp - 0xd0]
fnstsw ax
sahf
jne 0x448921
fld dword [ebp - 0xcc]
fcomp dword [ebp - 0xd4]
fnstsw ax
sahf
jbe 0x448921
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xd8], edx
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xc8], ecx
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0xd8], edx
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xcc], ecx
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xd4], eax
lea edx, [ebp - 0xe8]
push edx
lea ecx, [ebp - 0xe4]
push ecx
lea eax, [ebp - 0xe0]
push eax
lea edx, [ebp - 0xdc]
push edx
push dword [ebp - 0xd4]
push dword [ebp - 0xd0]
push dword [ebp - 0xcc]
push dword [ebp - 0xc8]
push 0x3e99999a
call fcn.0047599c
add esp, 0x24
lea eax, [ebp - 0xf0]
push eax
lea edx, [ebp - 0xec]
push edx
push dword [ebp - 0xe0]
push dword [ebp - 0xdc]
call fcn.00496307
add esp, 0x10
lea edx, [ebp - 0xf8]
push edx
lea ecx, [ebp - 0xf4]
push ecx
fld dword [ebp - 0xd4]
fsub dword [ebp - 0xcc]
fadd dword [ebp - 0xe0]
add esp, 0xfffffffc
fstp dword [esp]
fld dword [ebp - 0xd0]
fsub dword [ebp - 0xc8]
fadd dword [ebp - 0xdc]
add esp, 0xfffffffc
fstp dword [esp]
call fcn.00496307
add esp, 0x10
lea eax, [ebp - 0x100]
push eax
lea edx, [ebp - 0xfc]
push edx
push dword [ebp - 0xcc]
push dword [ebp - 0xc8]
call fcn.00496307
add esp, 0x10
lea edx, [ebp - 0x108]
push edx
lea ecx, [ebp - 0x104]
push ecx
push dword [ebp - 0xe8]
push dword [ebp - 0xe4]
call fcn.00496307
add esp, 0x10
lea ecx, [ebp - 0x110]
push ecx
lea eax, [ebp - 0x10c]
push eax
fld dword [ebp - 0xd4]
fsub dword [ebp - 0xcc]
fadd dword [ebp - 0xe8]
add esp, 0xfffffffc
fstp dword [esp]
fld dword [ebp - 0xd0]
fsub dword [ebp - 0xc8]
fadd dword [ebp - 0xe4]
add esp, 0xfffffffc
fstp dword [esp]
call fcn.00496307
add esp, 0x10
fild dword [ebp - 0xf8]
add esp, 0xfffffffc
fstp dword [esp]
fild dword [ebp - 0xf4]
add esp, 0xfffffffc
fstp dword [esp]
fild dword [ebp - 0xf0]
add esp, 0xfffffffc
fstp dword [esp]
fild dword [ebp - 0xec]
add esp, 0xfffffffc
fstp dword [esp]
call fcn.004b4d0f
add esp, 0x10
fmul dword [0x44911e]
fadd dword [0x449122]
call sub.cw3220.DLL___ftol
mov dword [ebp - 0x114], eax
fild dword [ebp - 0x114]
fmul dword [ebp - 0xbc]
fadd dword [0x449126]
call sub.cw3220.DLL___ftol
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x114]
sub edx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], edx
fild dword [ebp - 0x100]
add esp, 0xfffffffc
fstp dword [esp]
fild dword [ebp - 0xfc]
add esp, 0xfffffffc
fstp dword [esp]
fild dword [ebp - 0xf0]
add esp, 0xfffffffc
fstp dword [esp]
fild dword [ebp - 0xec]
add esp, 0xfffffffc
fstp dword [esp]
call fcn.004b4d0f
add esp, 0x10
fmul dword [0x44911e]
fadd dword [0x449122]
call sub.cw3220.DLL___ftol
mov dword [ebp - 0x118], eax
xor edx, edx
mov dword [ebp - 0x98], edx
mov ecx, dword [ebp - 0x98]
cmp ecx, dword [ebp - 0x114]
jg 0x448fc6
fild dword [ebp - 0x98]
fild dword [ebp - 0x114]
fdivp st(1)
fstp dword [ebp - 0x124]
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x11c]
jge 0x448bcb
mov edx, dword [ebp - 0xa8]
sub edx, dword [ebp - 0xa4]
mov dword [ebp - 0x598], edx
fild dword [ebp - 0x598]
fild dword [ebp - 0x98]
fmulp st(1)
fild dword [ebp - 0x11c]
fdivp st(1)
fild dword [ebp - 0xa4]
faddp st(1)
fstp dword [ebp - 0x13c]
mov ecx, dword [ebp - 0xb4]
sub ecx, dword [ebp - 0xb0]
mov dword [ebp - 0x598], ecx
fild dword [ebp - 0x598]
fild dword [ebp - 0x98]
fmulp st(1)
fild dword [ebp - 0x11c]
fdivp st(1)
fild dword [ebp - 0xb0]
faddp st(1)
fstp dword [ebp - 0x140]
jmp 0x448c47
fild dword [ebp - 0x98]
fild dword [ebp - 0x11c]
fsubp st(1)
mov eax, dword [ebp - 0xac]
sub eax, dword [ebp - 0xa8]
mov dword [ebp - 0x598], eax
fild dword [ebp - 0x598]
fmulp st(1)
fild dword [ebp - 0x120]
fdivp st(1)
fild dword [ebp - 0xa8]
faddp st(1)
fstp dword [ebp - 0x13c]
fild dword [ebp - 0x98]
fild dword [ebp - 0x11c]
fsubp st(1)
mov edx, dword [ebp - 0xb8]
sub edx, dword [ebp - 0xb4]
mov dword [ebp - 0x598], edx
fild dword [ebp - 0x598]
fmulp st(1)
fild dword [ebp - 0x120]
fdivp st(1)
fild dword [ebp - 0xb4]
faddp st(1)
fstp dword [ebp - 0x140]
fild dword [ebp - 0xec]
mov ecx, dword [ebp - 0xf4]
sub ecx, dword [ebp - 0xec]
mov dword [ebp - 0x598], ecx
fild dword [ebp - 0x598]
fmul dword [ebp - 0x124]
faddp st(1)
fstp dword [ebp - 0x12c]
fild dword [ebp - 0xf0]
mov eax, dword [ebp - 0xf8]
sub eax, dword [ebp - 0xf0]
mov dword [ebp - 0x598], eax
fild dword [ebp - 0x598]
fmul dword [ebp - 0x124]
faddp st(1)
fstp dword [ebp - 0x134]
fild dword [ebp - 0x104]
mov edx, dword [ebp - 0x10c]
sub edx, dword [ebp - 0x104]
mov dword [ebp - 0x598], edx
fild dword [ebp - 0x598]
fmul dword [ebp - 0x124]
faddp st(1)
fstp dword [ebp - 0x130]
fild dword [ebp - 0x108]
mov ecx, dword [ebp - 0x110]
sub ecx, dword [ebp - 0x108]
mov dword [ebp - 0x598], ecx
fild dword [ebp - 0x598]
fmul dword [ebp - 0x124]
faddp st(1)
fstp dword [ebp - 0x138]
fld dword [ebp - 0x124]
fcomp qword [0x44912a]
fnstsw ax
sahf
jae 0x448d3e
fld xword [0x449132]
fmul dword [ebp - 0x124]
fsubr qword [0x44913e]
fld xword [0x449132]
fmul dword [ebp - 0x124]
fsubr qword [0x44913e]
fmulp st(1)
fild dword [ebp - 0x118]
fmulp st(1)
fstp dword [ebp - 0x150]
jmp 0x448d9d
fld dword [ebp - 0x124]
fcomp qword [0x449146]
fnstsw ax
sahf
jbe 0x448d95
fld dword [0x449122]
fsub dword [ebp - 0x124]
fld xword [0x449132]
fmulp st(1)
fsubr qword [0x44913e]
fld dword [0x449122]
fsub dword [ebp - 0x124]
fld xword [0x449132]
fmulp st(1)
fsubr qword [0x44913e]
fmulp st(1)
fild dword [ebp - 0x118]
fmulp st(1)
fstp dword [ebp - 0x150]
jmp 0x448d9d
xor edx, edx
mov dword [ebp - 0x150], edx
fld dword [ebp - 0x150]
call sub.cw3220.DLL___ftol
mov edi, eax
cmp edi, dword [ebp - 0x118]
jg 0x448fae
mov dword [ebp - 0x598], edi
fild dword [ebp - 0x598]
fild dword [ebp - 0x118]
fdivp st(1)
fstp dword [ebp - 0x128]
fild dword [ebp - 0x144]
fadd dword [ebp - 0x13c]
fld dword [ebp - 0x140]
fsub dword [ebp - 0x13c]
fmul dword [ebp - 0x128]
fmul dword [ebp - 0x128]
faddp st(1)
call sub.cw3220.DLL___ftol
mov ebx, eax
cmp ebx, 0xfb
jle 0x448e0a
mov ebx, 0xfb
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x448e4c
mov edx, dword [0x4e4444]
add dword [edx], 2
mov word [ebp - 0x44], 0xd4
mov ecx, dword [0x4e4444]
dec dword [ecx]
push 0
push dword [ebp - 0x24]
call sub.OWL50f.dll__TGdiObject__bdtr_qv
add esp, 8
push dword [ebp - 0x24]
call sub.cw3220.DLL___bdele_qpv
pop ecx
mov word [ebp - 0x44], 0xc8
push 5
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x448e95
mov word [ebp - 0x44], 0xec
push 1
push 1
push ebx
lea edx, [ebp - 0x158]
push edx
call fcn.00409a7c
add esp, 8
push eax
push dword [ebp - 0x28]
call sub.OWL50f.dll__TPen__bctr_qrx6TColorii
add esp, 0x10
mov ecx, dword [0x4e4444]
sub dword [ecx], 2
mov word [ebp - 0x44], 0xe0
mov eax, dword [ebp - 0x28]
jmp 0x448e98
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x9c], eax
push dword [ebp - 0x9c]
push dword [ebp + 8]
call sub.OWL50f.dll__TDC_SelectObject_qrx4TPen
add esp, 8
fld dword [ebp - 0x130]
fsub dword [ebp - 0x12c]
fmul dword [ebp - 0x128]
fmul dword [0x449126]
fadd dword [ebp - 0x12c]
fadd dword [0x449126]
call sub.cw3220.DLL___ftol
mov ebx, eax
fld dword [ebp - 0x138]
fsub dword [ebp - 0x134]
fmul dword [ebp - 0x128]
fmul dword [0x449126]
fadd dword [ebp - 0x134]
fadd dword [0x449126]
call sub.cw3220.DLL___ftol
mov esi, eax
push esi
push ebx
push dword [ebp + 8]
call fcn.00409a90
add esp, 0xc
inc esi
push esi
push ebx
push dword [ebp + 8]
call fcn.00409ab7
add esp, 0xc
fld dword [ebp - 0x128]
fmul dword [0x449126]
fsubr dword [0x449122]
fld dword [ebp - 0x130]
fsub dword [ebp - 0x12c]
fmulp st(1)
fadd dword [ebp - 0x12c]
fadd dword [0x449126]
call sub.cw3220.DLL___ftol
mov ebx, eax
fld dword [ebp - 0x128]
fmul dword [0x449126]
fsubr dword [0x449122]
fld dword [ebp - 0x138]
fsub dword [ebp - 0x134]
fmulp st(1)
fadd dword [ebp - 0x134]
fadd dword [0x449126]
call sub.cw3220.DLL___ftol
mov esi, eax
push esi
push ebx
push dword [ebp + 8]
call fcn.00409a90
add esp, 0xc
inc esi
push esi
push ebx
push dword [ebp + 8]
call fcn.00409ab7
add esp, 0xc
inc edi
cmp edi, dword [ebp - 0x118]
jle 0x448db6
inc dword [ebp - 0x98]
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x114]
jle 0x448b3b
mov edx, dword [ebp - 0x14c]
mov ecx, dword [edx + 3]
mov dword [ebp - 0xc8], ecx
mov eax, dword [ebp - 0x14c]
mov edx, dword [eax + 7]
mov dword [ebp - 0xcc], edx
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ecx + 0x13]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
je 0x44900b
mov edx, dword [ebp - 0x14c]
cmp edx, dword [ebp - 0x5c]
jne 0x448706
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0
je 0x44904c
mov eax, dword [0x4e4444]
add dword [eax], 2
mov word [ebp - 0x44], 0x104
mov edx, dword [0x4e4444]
dec dword [edx]
push 0
push dword [ebp - 0x2c]
call sub.OWL50f.dll__TGdiObject__bdtr_qv
add esp, 8
push dword [ebp - 0x2c]
call sub.cw3220.DLL___bdele_qpv
pop ecx
mov word [ebp - 0x44], 0xf8
push 5
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [ebp - 0x30], eax
test eax, eax
je 0x44908a
mov word [ebp - 0x44], 0x11c
push pe_nt_image_headers32
push 0x4e2750
push dword [ebp - 0x30]
call sub.OWL50f.dll__TPalette__bctr_qpx15tagPALETTEENTRYi
add esp, 0xc
mov edx, dword [0x4e4444]
sub dword [edx], 2
mov word [ebp - 0x44], 0x110
mov ecx, dword [ebp - 0x30]
jmp 0x44908d
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x60], ecx
push 0
push dword [ebp - 0x60]
push dword [ebp + 8]
call sub.OWL50f.dll__TDC_SelectObject_qrx8TPalette4bool
add esp, 0xc
push dword [ebp + 8]
call fcn.00428d82
pop ecx
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4490e7
mov edx, dword [0x4e4444]
add dword [edx], 2
mov word [ebp - 0x44], 0x134
mov eax, dword [0x4e4444]
dec dword [eax]
push 0
push dword [ebp - 0x34]
call sub.OWL50f.dll__TGdiObject__bdtr_qv
add esp, 8
push dword [ebp - 0x34]
call sub.cw3220.DLL___bdele_qpv
pop ecx
mov word [ebp - 0x44], 0x128
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret