Function at 0x51bbb8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x1c], 0
je 0x51d11e
mov dl, 7
mov eax, dword [ebp + 0x1c]
call fcn.0045d300
lea eax, [ebp - 0x68]
mov dl, 1
call fcn.0057b0d4
push eax
lea eax, [ebp - 0x58]
mov dl, 1
call fcn.0057b0d4
pop edx
call fcn.0040dd7c
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
sub edx, dword [ebp - 0x54]
mov eax, ebx
call fcn.0040dd7c
mov ebx, eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
sub edx, dword [ebp - 0x64]
mov eax, ebx
call fcn.0040dd7c
dec eax
mov ebx, eax
test ebx, ebx
jl 0x51d11e
lea eax, [ebp - 0x68]
mov dl, 1
call fcn.0057b0c0
push eax
lea eax, [ebp - 0x58]
mov dl, 1
call fcn.0057b0c0
pop edx
call fcn.0040dd7c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
sub edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x14]
call fcn.0040dd7c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
sub edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x14]
call fcn.0040dd7c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x51d11e
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x58]
jle 0x51bcd2
cmp dword [ebp - 0x58], 0
jge 0x51bd06
mov eax, dword [ebp - 0x58]
neg eax
add dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x58]
neg eax
sub dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
sub edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x14]
call fcn.0040dd7c
dec eax
mov dword [ebp - 0x14], eax
jmp 0x51bd06
cmp dword [ebp - 0x68], 0
jge 0x51bd06
mov eax, dword [ebp - 0x68]
neg eax
add dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x68]
neg eax
sub dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
sub edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x14]
call fcn.0040dd7c
dec eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x54]
jle 0x51bd41
cmp dword [ebp - 0x54], 0
jge 0x51bd72
mov eax, dword [ebp - 0x54]
neg eax
add dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x54]
neg eax
sub ebx, eax
xor eax, eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
sub edx, dword [ebp - 0x64]
mov eax, ebx
call fcn.0040dd7c
dec eax
mov ebx, eax
jmp 0x51bd72
cmp dword [ebp - 0x64], 0
jge 0x51bd72
mov eax, dword [ebp - 0x64]
neg eax
add dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x64]
neg eax
sub ebx, eax
xor eax, eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
sub edx, dword [ebp - 0x54]
mov eax, ebx
call fcn.0040dd7c
dec eax
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
sub edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x14]
call fcn.0040dd7c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
sub edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x14]
call fcn.0040dd7c
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], 0x1fffffff
je 0x51c9a2
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebp - 0x1c]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fld dword [0x51d128]
call fcn.004048b0
fstp qword [ebp - 0x30]
wait
movzx eax, byte [ebp - 0x1b]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fld dword [0x51d128]
call fcn.004048b0
fstp qword [ebp - 0x38]
wait
movzx eax, byte [ebp - 0x1a]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fld dword [0x51d128]
call fcn.004048b0
fstp qword [ebp - 0x40]
wait
cmp dword [ebp + 0xc], 0
je 0x51c2a4
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x10], 0
jne 0x51c00d
test ebx, ebx
jl 0x51c720
inc ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0045c128
mov esi, eax
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.0045c128
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x51bffc
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp - 0x58]
add ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x20], eax
movzx eax, byte [ebp - 0x1d]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x1e]
movzx edx, byte [ebp - 0x1f]
add eax, edx
movzx edx, byte [ebp - 0x20]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x21], al
movzx eax, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x30]
call fcn.00404724
push edx
push eax
push 0
push 0xff
call fcn.0040dd84
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00407fb0
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax + 2]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
lea edx, [ebx + ebx*2]
mov byte [esi + edx + 2], al
movzx eax, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x38]
call fcn.00404724
push edx
push eax
push 0
push 0xff
call fcn.0040dd84
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00407fb0
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax + 1]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
lea edx, [ebx + ebx*2]
mov byte [esi + edx + 1], al
movzx eax, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x40]
call fcn.00404724
push edx
push eax
push 0
push 0xff
call fcn.0040dd84
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00407fb0
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
lea edx, [ebx + ebx*2]
mov byte [esi + edx], al
inc dword [ebp - 0xc]
dec dword [ebp - 0x48]
jne 0x51be62
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x51be2b
jmp 0x51c720
test ebx, ebx
jl 0x51c720
inc ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0045c128
mov esi, eax
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.0045c128
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x51c293
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xff00ff
je 0x51c1ea
movzx eax, byte [ebp - 0x1d]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x1e]
movzx edx, byte [ebp - 0x1f]
add eax, edx
movzx edx, byte [ebp - 0x20]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x21], al
movzx eax, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x30]
call fcn.00404724
push edx
push eax
push 0
push 0xff
call fcn.0040dd84
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00407fb0
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax + 2]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
lea edx, [ebx + ebx*2]
mov byte [esi + edx + 2], al
movzx eax, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x30]
call fcn.00404724
push edx
push eax
push 0
push 0xff
call fcn.0040dd84
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00407fb0
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax + 1]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
lea edx, [ebx + ebx*2]
mov byte [esi + edx + 1], al
movzx eax, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x30]
call fcn.00404724
push edx
push eax
push 0
push 0xff
call fcn.0040dd84
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00407fb0
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
lea edx, [ebx + ebx*2]
mov byte [esi + edx], al
jmp 0x51c286
cmp byte [ebp + 0x14], 0
je 0x51c286
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 8]
add edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
cmp eax, edx
jle 0x51c28a
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
cmp eax, edx
jle 0x51c293
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x10]
test eax, eax
jl 0x51c293
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, ebx
test eax, eax
jl 0x51c28a
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.0045bfa4
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
mov edi, dword [eax]
call dword [edi + 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebx + ebx*2]
movzx edx, byte [ebp - 0x1c]
mov byte [esi + eax + 2], dl
lea eax, [ebx + ebx*2]
movzx edx, byte [ebp - 0x1b]
mov byte [esi + eax + 1], dl
lea eax, [ebx + ebx*2]
movzx edx, byte [ebp - 0x1a]
mov byte [esi + eax], dl
inc ebx
inc dword [ebp - 0x18]
dec dword [ebp - 0x48]
jne 0x51c059
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x51c020
jmp 0x51c720
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x10], 0
jne 0x51c48f
test ebx, ebx
jl 0x51c720
inc ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0045c128
mov esi, eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x70]
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.0045c128
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x51c47e
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x20], eax
movzx eax, byte [ebp - 0x1e]
movzx edx, byte [ebp - 0x1f]
add eax, edx
movzx edx, byte [ebp - 0x20]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx*4 + 3]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x30]
call fcn.00404724
push edx
push eax
push 0
push 0xff
call fcn.0040dd84
push edx
push eax
lea edi, [ebx + ebx*2]
movzx eax, byte [esi + edi + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00407fb0
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax + 2]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + edi + 2], al
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx*4 + 3]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x38]
call fcn.00404724
push edx
push eax
push 0
push 0xff
call fcn.0040dd84
push edx
push eax
movzx eax, byte [esi + edi + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00407fb0
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax + 1]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + edi + 1], al
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx*4 + 3]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x40]
call fcn.00404724
push edx
push eax
push 0
push 0xff
call fcn.0040dd84
push edx
push eax
movzx eax, byte [esi + edi]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00407fb0
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + edi], al
inc ebx
inc dword [ebp - 0x18]
dec dword [ebp - 0x48]
jne 0x51c305
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x51c2c4
jmp 0x51c720
test ebx, ebx
jl 0x51c720
inc ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0045c128
mov esi, eax
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.0045c128
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x51c714
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x20], eax
movzx eax, byte [ebp - 0x1e]
movzx edx, byte [ebp - 0x1f]
add eax, edx
movzx edx, byte [ebp - 0x20]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x21], al
cmp dword [ebp - 0x20], 0xff00ff
je 0x51c660
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx*4 + 3]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x30]
call fcn.00404724
push edx
push eax
push 0
push 0xff
call fcn.0040dd84
push edx
push eax
lea edi, [ebx + ebx*2]
movzx eax, byte [esi + edi + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00407fb0
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax + 2]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + edi + 2], al
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx*4 + 3]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x38]
call fcn.00404724
push edx
push eax
push 0
push 0xff
call fcn.0040dd84
push edx
push eax
movzx eax, byte [esi + edi + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00407fb0
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax + 1]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + edi + 1], al
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx*4 + 3]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x40]
call fcn.00404724
push edx
push eax
push 0
push 0xff
call fcn.0040dd84
push edx
push eax
movzx eax, byte [esi + edi]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00407fb0
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + edi], al
jmp 0x51c704
cmp byte [ebp + 0x14], 0
je 0x51c704
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 8]
add edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
cmp eax, edx
jle 0x51c708
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
cmp eax, edx
jle 0x51c714
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x10]
test eax, eax
jl 0x51c714
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, ebx
test eax, eax
jl 0x51c708
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.0045bfa4
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x58]
add edx, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebx + ebx*2]
movzx edx, byte [ebp - 0x1c]
mov byte [esi + eax + 2], dl
lea eax, [ebx + ebx*2]
movzx edx, byte [ebp - 0x1b]
mov byte [esi + eax + 1], dl
lea eax, [ebx + ebx*2]
movzx edx, byte [ebp - 0x1a]
mov byte [esi + eax], dl
inc ebx
inc dword [ebp - 0x18]
inc dword [ebp - 0xc]
dec dword [ebp - 0x48]
jne 0x51c4e2
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x51c4a2
cmp byte [ebp + 8], 0
je 0x51d11e
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [ebp - 0x4c]
dec eax
push eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
sar eax, 1
jns 0x51c746
adc eax, 0
dec eax
pop edx
call fcn.0040dd7c
mov ebx, eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
sar eax, 1
jns 0x51c75e
adc eax, 0
push eax
mov eax, 0xff
pop edx
mov ecx, edx
cdq
idiv ecx
mov byte [ebp - 0x19], al
mov byte [ebp - 0x1c], 0xff
test ebx, ebx
jle 0x51d11e
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0045c128
mov esi, eax
mov edx, dword [ebp - 0x5c]
sub edx, dword [ebp - 0x10]
dec edx
mov eax, dword [ebp + 0x1c]
call fcn.0045c128
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x51c98a
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xff00ff
je 0x51c97d
cmp dword [ebp + 0xc], 0
jne 0x51c804
movzx eax, byte [ebp - 0x1d]
mov ecx, 3
xor edx, edx
div ecx
movzx edx, byte [ebp - 0x1c]
imul edx
mov ecx, 0xff
xor edx, edx
div ecx
xor edx, edx
call fcn.0040de44
mov byte [ebp - 0x22], al
jmp 0x51c832
movzx eax, byte [ebp - 0x1d]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x12c
cdq
idiv ecx
movzx edx, byte [ebp - 0x1c]
imul edx
mov ecx, 0xff
cdq
idiv ecx
xor edx, edx
call fcn.0040de44
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x1e]
movzx edx, byte [ebp - 0x1f]
add eax, edx
movzx edx, byte [ebp - 0x20]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x21], al
movzx eax, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x30]
call fcn.00404724
push edx
push eax
push 0
push 0xff
call fcn.0040dd84
push edx
push eax
lea edi, [ebx + ebx*2]
movzx eax, byte [esi + edi + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00407fb0
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax + 2]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + edi + 2], al
movzx eax, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x38]
call fcn.00404724
push edx
push eax
push 0
push 0xff
call fcn.0040dd84
push edx
push eax
movzx eax, byte [esi + edi + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00407fb0
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax + 1]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + edi + 1], al
movzx eax, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x40]
call fcn.00404724
push edx
push eax
push 0
push 0xff
call fcn.0040dd84
push edx
push eax
movzx eax, byte [esi + edi]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00407fb0
push edx
push eax
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + edi], al
inc ebx
inc dword [ebp - 0x18]
dec dword [ebp - 0x48]
jne 0x51c7bd
movzx eax, byte [ebp - 0x19]
sub byte [ebp - 0x1c], al
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x51c783
jmp 0x51d11e
cmp dword [ebp + 0xc], 0
je 0x51cc81
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x10], 0
jne 0x51cac9
test ebx, ebx
jl 0x51cf79
inc ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0045c128
mov esi, eax
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.0045c128
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x51cab8
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp - 0x58]
add ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x20], eax
movzx eax, byte [ebp - 0x1d]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x22], al
movzx edx, byte [ebp - 0x1e]
lea eax, [ebx + ebx*2]
movzx ecx, byte [esi + eax + 2]
sub edx, ecx
movzx ecx, byte [ebp - 0x22]
imul edx, ecx
lea ecx, [ebx + ebx*2]
movzx ecx, byte [esi + ecx + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [esi + eax + 2], dl
movzx edx, byte [ebp - 0x1f]
movzx ecx, byte [esi + eax + 1]
sub edx, ecx
movzx ecx, byte [ebp - 0x22]
imul edx, ecx
movzx ecx, byte [esi + eax + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [esi + eax + 1], dl
movzx edx, byte [ebp - 0x20]
movzx ecx, byte [esi + eax]
sub edx, ecx
movzx ecx, byte [ebp - 0x22]
imul edx, ecx
movzx ecx, byte [esi + eax]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [esi + eax], dl
inc dword [ebp - 0xc]
dec dword [ebp - 0x48]
jne 0x51ca03
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x51c9cc
jmp 0x51cf79
test ebx, ebx
jl 0x51cf79
inc ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0045c128
mov esi, eax
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.0045c128
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x51cc70
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xff00ff
je 0x51cbc7
movzx eax, byte [ebp - 0x1d]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x22], al
movzx edx, byte [ebp - 0x1e]
lea eax, [ebx + ebx*2]
movzx ecx, byte [esi + eax + 2]
sub edx, ecx
movzx ecx, byte [ebp - 0x22]
imul edx, ecx
lea ecx, [ebx + ebx*2]
movzx ecx, byte [esi + ecx + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [esi + eax + 2], dl
movzx edx, byte [ebp - 0x1f]
movzx ecx, byte [esi + eax + 1]
sub edx, ecx
movzx ecx, byte [ebp - 0x22]
imul edx, ecx
lea ecx, [ebx + ebx*2]
movzx ecx, byte [esi + ecx + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [esi + eax + 1], dl
movzx edx, byte [ebp - 0x20]
movzx ecx, byte [esi + eax]
sub edx, ecx
movzx ecx, byte [ebp - 0x22]
imul edx, ecx
lea ecx, [ebx + ebx*2]
movzx ecx, byte [esi + ecx]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [esi + eax], dl
jmp 0x51cc63
cmp byte [ebp + 0x14], 0
je 0x51cc63
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 8]
add edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
cmp eax, edx
jle 0x51cc67
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
cmp eax, edx
jle 0x51cc70
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x10]
test eax, eax
jl 0x51cc70
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, ebx
test eax, eax
jl 0x51cc67
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.0045bfa4
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
mov edi, dword [eax]
call dword [edi + 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebx + ebx*2]
movzx edx, byte [ebp - 0x1c]
mov byte [esi + eax + 2], dl
lea eax, [ebx + ebx*2]
movzx edx, byte [ebp - 0x1b]
mov byte [esi + eax + 1], dl
lea eax, [ebx + ebx*2]
movzx edx, byte [ebp - 0x1a]
mov byte [esi + eax], dl
inc ebx
inc dword [ebp - 0x18]
dec dword [ebp - 0x48]
jne 0x51cb15
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x51cadc
jmp 0x51cf79
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x10], 0
jne 0x51cda4
test ebx, ebx
jl 0x51cf79
inc ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0045c128
mov esi, eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x70]
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.0045c128
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x51cd93
inc eax
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [edx + ecx*4 + 2]
lea eax, [ebx + ebx*2]
movzx ecx, byte [esi + eax + 2]
sub edx, ecx
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x18]
movzx ecx, byte [ecx + edi*4 + 3]
imul edx, ecx
lea ecx, [ebx + ebx*2]
movzx ecx, byte [esi + ecx + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [esi + eax + 2], dl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [edx + ecx*4 + 1]
movzx ecx, byte [esi + eax + 1]
sub edx, ecx
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x18]
movzx ecx, byte [ecx + edi*4 + 3]
imul edx, ecx
lea ecx, [ebx + ebx*2]
movzx ecx, byte [esi + ecx + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [esi + eax + 1], dl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [edx + ecx*4]
movzx ecx, byte [esi + eax]
sub edx, ecx
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x18]
movzx ecx, byte [ecx + edi*4 + 3]
imul edx, ecx
lea ecx, [ebx + ebx*2]
movzx ecx, byte [esi + ecx]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [esi + eax], dl
inc ebx
inc dword [ebp - 0x18]
dec dword [ebp - 0x48]
jne 0x51cce2
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x51cca1
jmp 0x51cf79
test ebx, ebx
jl 0x51cf79
inc ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0045c128
mov esi, eax
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.0045c128
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x51cf6d
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xff00ff
je 0x51ceb9
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [edx + ecx*4 + 2]
lea eax, [ebx + ebx*2]
movzx ecx, byte [esi + eax + 2]
sub edx, ecx
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x18]
movzx ecx, byte [ecx + edi*4 + 3]
imul edx, ecx
lea ecx, [ebx + ebx*2]
movzx ecx, byte [esi + ecx + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [esi + eax + 2], dl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [edx + ecx*4 + 1]
movzx ecx, byte [esi + eax + 1]
sub edx, ecx
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x18]
movzx ecx, byte [ecx + edi*4 + 3]
imul edx, ecx
lea ecx, [ebx + ebx*2]
movzx ecx, byte [esi + ecx + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [esi + eax + 1], dl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [edx + ecx*4]
movzx ecx, byte [esi + eax]
sub edx, ecx
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x18]
movzx ecx, byte [ecx + edi*4 + 3]
imul edx, ecx
lea ecx, [ebx + ebx*2]
movzx ecx, byte [esi + ecx]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [esi + eax], dl
jmp 0x51cf5d
cmp byte [ebp + 0x14], 0
je 0x51cf5d
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 8]
add edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
cmp eax, edx
jle 0x51cf61
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
cmp eax, edx
jle 0x51cf6d
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x10]
test eax, eax
jl 0x51cf6d
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, ebx
test eax, eax
jl 0x51cf61
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.0045bfa4
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x58]
add edx, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebx + ebx*2]
movzx edx, byte [ebp - 0x1c]
mov byte [esi + eax + 2], dl
lea eax, [ebx + ebx*2]
movzx edx, byte [ebp - 0x1b]
mov byte [esi + eax + 1], dl
lea eax, [ebx + ebx*2]
movzx edx, byte [ebp - 0x1a]
mov byte [esi + eax], dl
inc ebx
inc dword [ebp - 0x18]
inc dword [ebp - 0xc]
dec dword [ebp - 0x48]
jne 0x51cdf7
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x51cdb7
cmp byte [ebp + 8], 0
je 0x51d11e
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [ebp - 0x4c]
dec eax
push eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
sar eax, 1
jns 0x51cf9f
adc eax, 0
dec eax
pop edx
call fcn.0040dd7c
mov ebx, eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
sar eax, 1
jns 0x51cfb7
adc eax, 0
push eax
mov eax, 0xff
pop edx
mov ecx, edx
cdq
idiv ecx
mov byte [ebp - 0x19], al
mov byte [ebp - 0x1c], 0xff
test ebx, ebx
jle 0x51d11e
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0045c128
mov esi, eax
mov edx, dword [ebp - 0x5c]
sub edx, dword [ebp - 0x10]
dec edx
mov eax, dword [ebp + 0x1c]
call fcn.0045c128
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x51d10b
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xff00ff
je 0x51d0fe
cmp dword [ebp + 0xc], 0
jne 0x51d05d
movzx eax, byte [ebp - 0x1d]
mov ecx, 3
xor edx, edx
div ecx
movzx edx, byte [ebp - 0x1c]
imul edx
mov ecx, 0xff
xor edx, edx
div ecx
xor edx, edx
call fcn.0040de44
mov byte [ebp - 0x22], al
jmp 0x51d08b
movzx eax, byte [ebp - 0x1d]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x12c
cdq
idiv ecx
movzx edx, byte [ebp - 0x1c]
imul edx
mov ecx, 0xff
cdq
idiv ecx
xor edx, edx
call fcn.0040de44
mov byte [ebp - 0x22], al
movzx ecx, byte [ebp - 0x1e]
lea eax, [ebx + ebx*2]
movzx edi, byte [esi + eax + 2]
sub ecx, edi
movzx edx, byte [ebp - 0x22]
imul ecx, edx
lea edi, [ebx + ebx*2]
movzx edi, byte [esi + edi + 2]
shl edi, 8
add ecx, edi
shr ecx, 8
and cl, 0xff
mov byte [esi + eax + 2], cl
movzx ecx, byte [ebp - 0x1f]
movzx edi, byte [esi + eax + 1]
sub ecx, edi
imul ecx, edx
lea edi, [ebx + ebx*2]
movzx edi, byte [esi + edi + 1]
shl edi, 8
add ecx, edi
shr ecx, 8
and cl, 0xff
mov byte [esi + eax + 1], cl
movzx ecx, byte [ebp - 0x20]
movzx edi, byte [esi + eax]
sub ecx, edi
imul ecx, edx
lea edx, [ebx + ebx*2]
movzx edx, byte [esi + edx]
shl edx, 8
add ecx, edx
shr ecx, 8
and cl, 0xff
mov byte [esi + eax], cl
inc ebx
inc dword [ebp - 0x18]
dec dword [ebp - 0x48]
jne 0x51d016
movzx eax, byte [ebp - 0x19]
sub byte [ebp - 0x1c], al
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x51cfdc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18