Function at 0x4dc418
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x4dc421
mov eax, dword [ebp - 4]
add esp, 0xfffff010
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x254]
call fcn.0064ad58
mov dword [ebp - 0x4c], eax
mov eax, dword [0x66eb44]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
call fcn.00624860
push eax
lea edx, [ebp - 0x4fec]
mov eax, dword [ebp - 0x4c]
call fcn.00648654
lea eax, [ebp - 0x4fec]
push eax
mov eax, dword [ebp - 0x4c]
call fcn.00648678
push eax
call sub.user32.dll_FillRect
mov eax, dword [0x66fc50]
test byte [eax], 8
setne al
mov byte [ebp - 0x46], al
mov eax, dword [0x66fc50]
and dword [eax], 0xfffffff7
call fcn.005477e8
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x174]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
call fcn.00565830
lea edx, [ebp - 0x10c]
mov eax, dword [ebp - 0x50]
call fcn.00563fc0
mov edx, 0x19
mov eax, dword [ebp - 0x50]
call fcn.0056539c
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x254]
mov edx, dword [eax]
call dword [edx + 0x28]
mov edx, eax
mov eax, dword [ebp - 0x50]
call fcn.0056539c
mov dword [ebp - 0x10c], eax
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0x50]
call fcn.005c5b44
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x10c]
xor edx, edx
mov eax, dword [ebp - 0x50]
call fcn.005cc638
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.004db540
mov dword [ebp - 0xc], eax
mov bl, byte [0x4dcfa0]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x4dc57f
inc eax
mov dword [ebp - 0x58], eax
xor esi, esi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
mov al, byte [eax + 4]
or al, bl
mov ebx, eax
inc esi
dec dword [ebp - 0x58]
jne 0x4dc569
test bl, 2
jne 0x4dc58d
test bl, 8
jne 0x4dc58d
xor eax, eax
jmp 0x4dc58f
mov al, 1
and eax, 0x7f
inc eax
mov dword [ebp - 0x1c], eax
test bl, 1
jne 0x4dc5a4
test bl, 4
jne 0x4dc5a4
xor eax, eax
jmp 0x4dc5a6
mov al, 1
and eax, 0x7f
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, 1
mov dl, 1
call fcn.004db0d8
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
call fcn.004db540
mov dword [ebp - 0x10], eax
mov esi, 5
mov eax, esi
and eax, 0x7f
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + eax*4 + 0x260], 0xffffffff
dec esi
cmp esi, 0xffffffff
jne 0x4dc5d5
mov eax, dword [ebp - 8]
call fcn.00547ce4
mov esi, eax
dec esi
cmp esi, 0
jl 0x4dc762
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ebx, dword [eax + 0x24c]
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00547d14
mov edi, eax
mov edx, dword [edi]
mov eax, ebx
call fcn.005efb5c
mov eax, dword [eax + 0x275c]
mov dword [ebp - 0x24], eax
mov edx, dword [edi]
mov eax, ebx
call fcn.005ef87c
imul eax, eax, 0x27
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x250]
mov edx, dword [edx + 0x1c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [edx + ecx*4]
lea eax, [edx + eax*4 + 0xdc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
mov bl, byte [eax + 4]
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00547d14
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00547d9c
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x1c]
mov edi, dword [edx + eax*4]
mov al, byte [edi + 4]
mov byte [ebp - 0x15], al
test bl, 1
je 0x4dc699
mov al, 5
jmp 0x4dc69b
xor eax, eax
push ebp
push edi
and eax, 0x7f
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
lea eax, [edx + eax*4 + 0x25c]
mov edx, dword [ebp - 0x5c]
add edx, 0x18
xor ecx, ecx
call fcn.004dc2bc
pop ecx
test bl, 2
je 0x4dc6cb
mov al, 4
jmp 0x4dc6cd
mov al, 1
push ebp
push edi
and eax, 0x7f
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
lea eax, [edx + eax*4 + 0x25c]
mov edx, dword [ebp - 0x5c]
add edx, 0x34
mov cl, 1
call fcn.004dc2bc
pop ecx
test bl, 4
je 0x4dc6fd
mov al, 5
jmp 0x4dc6ff
mov al, 2
push ebp
push edi
and eax, 0x7f
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
lea eax, [edx + eax*4 + 0x25c]
mov edx, dword [ebp - 0x5c]
add edx, 0x50
mov cl, 2
call fcn.004dc2bc
pop ecx
test bl, 8
je 0x4dc72f
mov al, 4
jmp 0x4dc731
mov al, 3
push ebp
push edi
and eax, 0x7f
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
lea eax, [edx + eax*4 + 0x25c]
mov edx, dword [ebp - 0x5c]
add edx, 0x6c
mov cl, 3
call fcn.004dc2bc
pop ecx
dec esi
cmp esi, 0xffffffff
jne 0x4dc60c
mov eax, dword [ebp - 4]
call fcn.00548150
mov eax, dword [ebp - 0x10]
call fcn.0064ecc8
mov eax, dword [ebp - 0x10]
call fcn.0064edac
mov eax, dword [ebp - 0xc]
call fcn.0064ecc8
mov eax, dword [ebp - 0xc]
call fcn.0064edac
cmp dword [ebp - 0x1c], 1
jne 0x4dc7a5
cmp dword [ebp - 0x20], 1
jne 0x4dc7a5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x258], 0
jmp 0x4dc7e8
cmp dword [ebp - 0x1c], 2
jne 0x4dc7c0
cmp dword [ebp - 0x20], 1
jne 0x4dc7c0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x258], 1
jmp 0x4dc7e8
cmp dword [ebp - 0x1c], 1
jne 0x4dc7db
cmp dword [ebp - 0x20], 2
jne 0x4dc7db
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x258], 2
jmp 0x4dc7e8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x258], 3
call fcn.0064e78c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
dec eax
test eax, eax
jl 0x4dc9d7
inc eax
mov dword [ebp - 0x58], eax
xor esi, esi
lea eax, [ebp - 0x4fdc]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov edx, 0x2758
call fcn.00658ea4
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [eax + 0x10], 0x1388
mov eax, dword [ebp - 0x60]
mov dword [eax + 0xcc], 0xff000000
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x254]
mov edx, dword [eax]
call dword [edx + 0x1c]
sub eax, 0x32
cdq
idiv dword [ebp - 0x1c]
mov edx, eax
mov eax, dword [ebp - 0x50]
call fcn.0056539c
neg eax
mov edx, dword [ebp - 0x60]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0xd8], eax
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x4dc9b3
imul eax, ebx, 0x27
mov edx, dword [ebp - 0x60]
lea eax, [edx + eax*4 + 0xdc]
mov dword [eax], 0x80000000
mov dword [eax + 0x88], 0xff000000
test esi, esi
jne 0x4dc8f3
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
push esi
lea esi, [edx + 0x278]
lea edi, [eax + 0x34]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop esi
cmp dword [ebp - 0x1c], 1
jne 0x4dc8d9
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
push esi
lea esi, [edx + 0x2b0]
lea edi, [eax + 0x6c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4dc923
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
push esi
lea esi, [edx + 0x2cc]
lea edi, [eax + 0x6c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4dc923
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
push esi
lea esi, [edx + 0x2cc]
lea edi, [eax + 0x34]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop esi
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
push esi
lea esi, [edx + 0x2b0]
lea edi, [eax + 0x6c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop esi
test ebx, ebx
jne 0x4dc979
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
push esi
lea esi, [edx + 0x25c]
lea edi, [eax + 0x18]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop esi
cmp dword [ebp - 0x20], 1
jne 0x4dc95f
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
push esi
lea esi, [edx + 0x294]
lea edi, [eax + 0x50]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4dc9a9
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
push esi
lea esi, [edx + 0x2e8]
lea edi, [eax + 0x50]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4dc9a9
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
push esi
lea esi, [edx + 0x2e8]
lea edi, [eax + 0x18]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop esi
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
push esi
lea esi, [edx + 0x294]
lea edi, [eax + 0x50]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop esi
dec ebx
cmp ebx, 0xffffffff
jne 0x4dc880
mov eax, dword [ebp - 0x9c]
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.0064e9dc
inc esi
add dword [ebp - 0x9c], 0x2758
dec dword [ebp - 0x58]
jne 0x4dc80e
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
mov dl, 0x3d
mov eax, dword [ebp - 0x50]
call fcn.005cc650
mov eax, dword [ebp - 0x14]
call fcn.0064edac
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x254]
mov edx, dword [eax]
call dword [edx + 0x1c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x254]
mov edx, dword [eax]
call dword [edx + 0x28]
mov edx, eax
mov eax, dword [ebp - 0x54]
pop ecx
call fcn.00461b10
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x403], 1
mov eax, dword [ebp - 0x50]
call fcn.005b9d24
mov edx, dword [0x66f18c]
mov eax, dword [ebp - 0x50]
call fcn.00561de0
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
call fcn.00558b38
lea ecx, [ebp - 0x68]
mov edx, dword [0x66f18c]
call fcn.00558a70
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x304
mov edx, dword [ebp - 0x68]
sub edx, 4
dec edx
mov dword [eax], edx
mov edx, dword [eax]
add edx, 9
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x64]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x314
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x68]
mov dword [eax], edx
mov eax, dword [ebp - 0x64]
sub eax, 4
dec eax
mov edx, dword [ebp - 0x6c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 4]
add eax, 9
mov edx, dword [ebp - 0x6c]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x64]
mov dword [eax + 0x328], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x68]
mov dword [eax + 0x334], edx
mov eax, dword [ebp - 0x20]
inc eax
imul dword [ebp - 0x1c]
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0xb0]
mov edx, dword [edx + 0x1c]
mov eax, dword [edx + eax*4 - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
call fcn.00558b38
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
add eax, 0x48
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x74]
sub edx, dword [eax + 4]
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x74]
sub eax, dword [ecx]
lea ecx, [ebp - 0x4ff4]
call fcn.0064d54c
lea edx, [ebp - 0x4ff4]
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp - 0x70]
call fcn.00558a70
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x78]
mov dword [eax + 0x310], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x7c]
mov dword [eax + 0x31c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x324
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x7c]
sub eax, 4
dec eax
mov edx, dword [ebp - 0x80]
mov dword [edx], eax
mov eax, dword [ebp - 0x80]
mov eax, dword [eax]
add eax, 9
mov edx, dword [ebp - 0x80]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x78]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x334
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x7c]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x78]
sub eax, 4
dec eax
mov edx, dword [ebp - 0x84]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 4]
add eax, 9
mov edx, dword [ebp - 0x84]
mov dword [edx + 0xc], eax
cmp dword [ebp - 0x1c], 1
jne 0x4dcbf2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x344
call fcn.0065377c
jmp 0x4dcc72
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x344
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x304]
add eax, 4
mov edx, dword [ebp - 0x88]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x32c]
sub eax, 4
mov edx, dword [ebp - 0x88]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x308]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
add eax, dword [edx + 0x310]
sub eax, 9
sar eax, 1
jns 0x4dcc54
adc eax, 0
mov edx, dword [ebp - 0x88]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x88]
mov eax, dword [eax + 4]
add eax, 9
mov edx, dword [ebp - 0x88]
mov dword [edx + 0xc], eax
cmp dword [ebp - 0x20], 1
jne 0x4dcc8a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x354
call fcn.0065377c
jmp 0x4dcd00
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x354
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x304]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
add eax, dword [edx + 0x324]
sar eax, 1
jns 0x4dccba
adc eax, 0
mov edx, dword [ebp - 0x8c]
mov dword [edx], eax
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
add eax, 9
mov edx, dword [ebp - 0x8c]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x308]
mov edx, dword [ebp - 0x8c]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x310]
mov edx, dword [ebp - 0x8c]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x40d], 1
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x409], 1
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x3f8], 1
mov eax, dword [0x66f65c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x254]
call fcn.0064ad58
call fcn.00648678
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
call fcn.0064bcf8
push 1
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_SetBkMode
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x486], 1
push 0
push 0
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x13c]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
call fcn.0055bfe0
mov eax, dword [0x66f65c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x268]
call fcn.004028c0
cmp byte [ebp - 0x46], 0
je 0x4dcd9e
mov eax, dword [0x66fc50]
or dword [eax], 8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004db92c
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov byte [edx + 0x364], al
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x254]
call fcn.0064ad58
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp byte [eax + 0x364], 0xff
je 0x4dcf4d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
movzx eax, byte [eax + 0x364]
add eax, eax
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
lea eax, [edx + eax*8 + 0x304]
mov dword [ebp - 0x94], eax
mov eax, dword [0x66eb44]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 8]
shr eax, 8
and eax, 0xff
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 8]
shr eax, 0x10
and eax, 0xff
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x94]
mov esi, dword [eax]
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 8]
sub eax, esi
jl 0x4dcf4d
inc eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x94]
mov ebx, dword [eax + 4]
mov eax, dword [ebp - 0x94]
mov edi, dword [eax + 0xc]
sub edi, ebx
jl 0x4dcf43
inc edi
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x90]
call fcn.006485e0
mov edx, dword [ebp + 8]
mov dword [edx - 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 8]
mov edx, 0xff
sub edx, eax
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
shr eax, 8
and eax, 0xff
mov edx, 0xff
sub edx, eax
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
shr eax, 0x10
and eax, 0xff
mov edx, 0xff
sub edx, eax
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
add eax, eax
mov ecx, 3
cdq
idiv ecx
push eax
mov eax, dword [ebp - 0x34]
pop edx
sub eax, edx
call fcn.00653548
push eax
mov eax, dword [ebp - 0x3c]
add eax, eax
mov ecx, 3
cdq
idiv ecx
push eax
mov eax, dword [ebp - 0x30]
pop edx
sub eax, edx
call fcn.00653548
push eax
mov eax, dword [ebp - 0x38]
add eax, eax
mov ecx, 3
cdq
idiv ecx
push eax
mov eax, dword [ebp - 0x2c]
pop edx
sub eax, edx
call fcn.00653548
pop edx
pop ecx
call fcn.00658ebc
push eax
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x90]
call fcn.0064860c
inc ebx
dec edi
jne 0x4dce81
inc esi
dec dword [ebp - 0x58]
jne 0x4dce66
push 0x11
call sub.user32.dll_GetSysColor
mov edx, eax
mov eax, dword [ebp - 0x90]
mov eax, dword [eax + 0x14]
call fcn.00647c78
lea edx, [ebp - 0x4fec]
mov eax, dword [ebp - 0x90]
call fcn.00648654
lea edx, [ebp - 0x4fec]
mov eax, dword [ebp - 0x90]
call fcn.006481e4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x238]
mov edx, dword [eax]
call dword [edx + 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret