Function at 0x4deb48
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 0x4deb51
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.0064e3d0
mov dword [ebp - 0x4c], eax
mov eax, dword [0x671bac]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
call fcn.00627d3c
push eax
lea edx, [ebp - 0x4fec]
mov eax, dword [ebp - 0x4c]
call fcn.0064bccc
lea eax, [ebp - 0x4fec]
push eax
mov eax, dword [ebp - 0x4c]
call fcn.0064bcf0
push eax
call sub.user32.dll_FillRect
mov eax, dword [0x672cb4]
test byte [eax], 8
setne al
mov byte [ebp - 0x46], al
mov eax, dword [0x672cb4]
and dword [eax], 0xfffffff7
call fcn.0054a7a0
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.005687e8
lea edx, [ebp - 0x10c]
mov eax, dword [ebp - 0x50]
call fcn.00566f78
mov edx, 0x19
mov eax, dword [ebp - 0x50]
call fcn.00568354
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.00568354
mov dword [ebp - 0x10c], eax
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0x50]
call fcn.005c8b04
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x10c]
xor edx, edx
mov eax, dword [ebp - 0x50]
call fcn.005cf5f8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.004ddc70
mov dword [ebp - 0xc], eax
mov bl, byte [0x4df6d0]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x4decaf
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 0x4dec99
test bl, 2
jne 0x4decbd
test bl, 8
jne 0x4decbd
xor eax, eax
jmp 0x4decbf
mov al, 1
and eax, 0x7f
inc eax
mov dword [ebp - 0x1c], eax
test bl, 1
jne 0x4decd4
test bl, 4
jne 0x4decd4
xor eax, eax
jmp 0x4decd6
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.004dd808
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
call fcn.004ddc70
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 0x4ded05
mov eax, dword [ebp - 8]
call fcn.0054ac9c
mov esi, eax
dec esi
cmp esi, 0
jl 0x4dee92
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.0054accc
mov edi, eax
mov edx, dword [edi]
mov eax, ebx
call fcn.005f2b28
mov eax, dword [eax + 0x275c]
mov dword [ebp - 0x24], eax
mov edx, dword [edi]
mov eax, ebx
call fcn.005f2848
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.0054accc
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0054ad54
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 0x4dedc9
mov al, 5
jmp 0x4dedcb
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.004de9ec
pop ecx
test bl, 2
je 0x4dedfb
mov al, 4
jmp 0x4dedfd
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.004de9ec
pop ecx
test bl, 4
je 0x4dee2d
mov al, 5
jmp 0x4dee2f
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.004de9ec
pop ecx
test bl, 8
je 0x4dee5f
mov al, 4
jmp 0x4dee61
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.004de9ec
pop ecx
dec esi
cmp esi, 0xffffffff
jne 0x4ded3c
mov eax, dword [ebp - 4]
call fcn.0054b108
mov eax, dword [ebp - 0x10]
call fcn.00652324
mov eax, dword [ebp - 0x10]
call fcn.00652408
mov eax, dword [ebp - 0xc]
call fcn.00652324
mov eax, dword [ebp - 0xc]
call fcn.00652408
cmp dword [ebp - 0x1c], 1
jne 0x4deed5
cmp dword [ebp - 0x20], 1
jne 0x4deed5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x258], 0
jmp 0x4def18
cmp dword [ebp - 0x1c], 2
jne 0x4deef0
cmp dword [ebp - 0x20], 1
jne 0x4deef0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x258], 1
jmp 0x4def18
cmp dword [ebp - 0x1c], 1
jne 0x4def0b
cmp dword [ebp - 0x20], 2
jne 0x4def0b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x258], 2
jmp 0x4def18
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x258], 3
call fcn.00651de8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
dec eax
test eax, eax
jl 0x4df107
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.0065c4dc
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.00568354
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 0x4df0e3
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 0x4df023
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 0x4df009
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 0x4df053
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 0x4df053
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 0x4df0a9
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 0x4df08f
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 0x4df0d9
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 0x4df0d9
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 0x4defb0
mov eax, dword [ebp - 0x9c]
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.00652038
inc esi
add dword [ebp - 0x9c], 0x2758
dec dword [ebp - 0x58]
jne 0x4def3e
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.005cf610
mov eax, dword [ebp - 0x14]
call fcn.00652408
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.004629e4
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x403], 1
mov eax, dword [ebp - 0x50]
call fcn.005bccdc
mov edx, dword [0x6721f4]
mov eax, dword [ebp - 0x50]
call fcn.00564d98
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.0055baf0
lea ecx, [ebp - 0x68]
mov edx, dword [0x6721f4]
call fcn.0055ba28
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.0055baf0
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.00650bbc
lea edx, [ebp - 0x4ff4]
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp - 0x70]
call fcn.0055ba28
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 0x4df322
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x344
call fcn.00656da4
jmp 0x4df3a2
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 0x4df384
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 0x4df3ba
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x354
call fcn.00656da4
jmp 0x4df430
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 0x4df3ea
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 [0x6726c4]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x254]
call fcn.0064e3d0
call fcn.0064bcf0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
call fcn.0064f370
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.0055ef98
mov eax, dword [0x6726c4]
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 0x4df4ce
mov eax, dword [0x672cb4]
or dword [eax], 8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004de05c
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.0064e3d0
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp byte [eax + 0x364], 0xff
je 0x4df67d
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 [0x671bac]
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 0x4df67d
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 0x4df673
inc edi
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x90]
call fcn.0064bc58
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.00656b80
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.00656b80
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.00656b80
pop edx
pop ecx
call fcn.0065c4f4
push eax
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x90]
call fcn.0064bc84
inc ebx
dec edi
jne 0x4df5b1
inc esi
dec dword [ebp - 0x58]
jne 0x4df596
push 0x11
call sub.user32.dll_GetSysColor
mov edx, eax
mov eax, dword [ebp - 0x90]
mov eax, dword [eax + 0x14]
call fcn.0064b2f0
lea edx, [ebp - 0x4fec]
mov eax, dword [ebp - 0x90]
call fcn.0064bccc
lea edx, [ebp - 0x4fec]
mov eax, dword [ebp - 0x90]
call fcn.0064b85c
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