Function at 0x4cf514
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 0x4cf51d
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.0064ae74
mov dword [ebp - 0x4c], eax
mov eax, dword [0x6691b4]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
call fcn.00624538
push eax
lea edx, [ebp - 0x4fec]
mov eax, dword [ebp - 0x4c]
call fcn.00648770
lea eax, [ebp - 0x4fec]
push eax
mov eax, dword [ebp - 0x4c]
call fcn.00648794
push eax
call sub.user32.dll_FillRect
mov eax, dword [0x6698c8]
test byte [eax], 8
setne al
mov byte [ebp - 0x46], al
mov eax, dword [0x6698c8]
and dword [eax], 0xfffffff7
call fcn.00541d4c
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.0055ff90
lea edx, [ebp - 0x10c]
mov eax, dword [ebp - 0x50]
call fcn.0055e56c
mov edx, 0x19
mov eax, dword [ebp - 0x50]
call fcn.0055fafc
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.0055fafc
mov dword [ebp - 0x10c], eax
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0x50]
call fcn.005c0e14
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x10c]
xor edx, edx
mov eax, dword [ebp - 0x50]
call fcn.005c7adc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.004ce5b8
mov dword [ebp - 0xc], eax
mov bl, byte [0x4d009c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x4cf67b
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 0x4cf665
test bl, 2
jne 0x4cf689
test bl, 8
jne 0x4cf689
xor eax, eax
jmp 0x4cf68b
mov al, 1
and eax, 0x7f
inc eax
mov dword [ebp - 0x1c], eax
test bl, 1
jne 0x4cf6a0
test bl, 4
jne 0x4cf6a0
xor eax, eax
jmp 0x4cf6a2
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.004ce150
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
call fcn.004ce5b8
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 0x4cf6d1
mov eax, dword [ebp - 8]
call fcn.00542248
mov esi, eax
dec esi
cmp esi, 0
jl 0x4cf85e
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.00542278
mov edi, eax
mov edx, dword [edi]
mov eax, ebx
call fcn.005ebd44
mov eax, dword [eax + 0x275c]
mov dword [ebp - 0x24], eax
mov edx, dword [edi]
mov eax, ebx
call fcn.005eba64
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.00542278
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00542300
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 0x4cf795
mov al, 5
jmp 0x4cf797
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.004cf3b8
pop ecx
test bl, 2
je 0x4cf7c7
mov al, 4
jmp 0x4cf7c9
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.004cf3b8
pop ecx
test bl, 4
je 0x4cf7f9
mov al, 5
jmp 0x4cf7fb
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.004cf3b8
pop ecx
test bl, 8
je 0x4cf82b
mov al, 4
jmp 0x4cf82d
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.004cf3b8
pop ecx
dec esi
cmp esi, 0xffffffff
jne 0x4cf708
mov eax, dword [ebp - 4]
call fcn.005426b4
mov eax, dword [ebp - 0x10]
call fcn.0064e4dc
mov eax, dword [ebp - 0x10]
call fcn.0064e5c0
mov eax, dword [ebp - 0xc]
call fcn.0064e4dc
mov eax, dword [ebp - 0xc]
call fcn.0064e5c0
cmp dword [ebp - 0x1c], 1
jne 0x4cf8a1
cmp dword [ebp - 0x20], 1
jne 0x4cf8a1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x258], 0
jmp 0x4cf8e4
cmp dword [ebp - 0x1c], 2
jne 0x4cf8bc
cmp dword [ebp - 0x20], 1
jne 0x4cf8bc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x258], 1
jmp 0x4cf8e4
cmp dword [ebp - 0x1c], 1
jne 0x4cf8d7
cmp dword [ebp - 0x20], 2
jne 0x4cf8d7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x258], 2
jmp 0x4cf8e4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x258], 3
call fcn.0064dfa0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
dec eax
test eax, eax
jl 0x4cfad3
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.00658544
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.0055fafc
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 0x4cfaaf
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 0x4cf9ef
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 0x4cf9d5
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 0x4cfa1f
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 0x4cfa1f
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 0x4cfa75
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 0x4cfa5b
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 0x4cfaa5
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 0x4cfaa5
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 0x4cf97c
mov eax, dword [ebp - 0x9c]
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.0064e1f0
inc esi
add dword [ebp - 0x9c], 0x2758
dec dword [ebp - 0x58]
jne 0x4cf90a
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.005c7af4
mov eax, dword [ebp - 0x14]
call fcn.0064e5c0
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.0044bcb0
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x403], 1
mov eax, dword [ebp - 0x50]
call fcn.005b4f84
mov edx, dword [0x669448]
mov eax, dword [ebp - 0x50]
call fcn.0055c38c
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.0055309c
lea ecx, [ebp - 0x68]
mov edx, dword [0x669448]
call fcn.00552fd4
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.0055309c
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.0064d660
lea edx, [ebp - 0x4ff4]
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp - 0x70]
call fcn.00552fd4
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 0x4cfcee
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x344
call fcn.00652e88
jmp 0x4cfd6e
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 0x4cfd50
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 0x4cfd86
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x354
call fcn.00652e88
jmp 0x4cfdfc
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 0x4cfdb6
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 [0x669650]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x254]
call fcn.0064ae74
call fcn.00648794
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
call fcn.0064be14
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.00556584
mov eax, dword [0x669650]
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 0x4cfe9a
mov eax, dword [0x6698c8]
or dword [eax], 8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004ce9a4
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.0064ae74
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp byte [eax + 0x364], 0xff
je 0x4d0049
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 [0x6691b4]
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 0x4d0049
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 0x4d003f
inc edi
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x90]
call fcn.006486fc
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.00652c64
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.00652c64
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.00652c64
pop edx
pop ecx
call fcn.0065855c
push eax
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x90]
call fcn.00648728
inc ebx
dec edi
jne 0x4cff7d
inc esi
dec dword [ebp - 0x58]
jne 0x4cff62
push 0x11
call sub.user32.dll_GetSysColor
mov edx, eax
mov eax, dword [ebp - 0x90]
mov eax, dword [eax + 0x14]
call fcn.00647d94
lea edx, [ebp - 0x4fec]
mov eax, dword [ebp - 0x90]
call fcn.00648770
lea edx, [ebp - 0x4fec]
mov eax, dword [ebp - 0x90]
call fcn.00648300
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x238]
mov edx, dword [eax]
call dword [edx + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret