Function at 0x57b984
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x88]
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 - 0x78]
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 0x57cf15
mov dl, 7
mov eax, dword [ebp + 0x1c]
call fcn.0045df08
lea eax, [ebp - 0x88]
mov dl, 1
call fcn.005c5e08
push eax
lea eax, [ebp - 0x78]
mov dl, 1
call fcn.005c5e08
pop edx
call fcn.0040e6e0
mov edi, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
sub edx, dword [ebp - 0x74]
mov eax, edi
call fcn.0040e6e0
mov edi, eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
sub edx, dword [ebp - 0x84]
mov eax, edi
call fcn.0040e6e0
dec eax
mov edi, eax
test edi, edi
jl 0x57cf15
lea eax, [ebp - 0x88]
mov dl, 1
call fcn.005c5df4
push eax
lea eax, [ebp - 0x78]
mov dl, 1
call fcn.005c5df4
pop edx
call fcn.0040e6e0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
sub edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x28]
call fcn.0040e6e0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
sub edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x28]
call fcn.0040e6e0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x57cf15
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x78]
jle 0x57baf9
cmp dword [ebp - 0x78], 0
jge 0x57bab9
mov eax, dword [ebp - 0x78]
neg eax
add dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x78]
neg eax
sub dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
sub edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x28]
call fcn.0040e6e0
dec eax
mov dword [ebp - 0x28], eax
jmp 0x57baf9
cmp dword [ebp - 0x88], 0
jge 0x57baf9
mov eax, dword [ebp - 0x88]
neg eax
add dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x88]
neg eax
sub dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
sub edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x28]
call fcn.0040e6e0
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x84]
cmp eax, dword [ebp - 0x74]
jle 0x57bb7a
cmp dword [ebp - 0x74], 0
jge 0x57bb3d
mov eax, dword [ebp - 0x74]
neg eax
add dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x74]
neg eax
sub edi, eax
xor eax, eax
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
sub edx, dword [ebp - 0x84]
mov eax, edi
call fcn.0040e6e0
dec eax
mov edi, eax
jmp 0x57bb7a
cmp dword [ebp - 0x84], 0
jge 0x57bb7a
mov eax, dword [ebp - 0x84]
neg eax
add dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x84]
neg eax
sub edi, eax
xor eax, eax
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
sub edx, dword [ebp - 0x74]
mov eax, edi
call fcn.0040e6e0
dec eax
mov edi, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
sub edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x28]
call fcn.0040e6e0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
sub edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x28]
call fcn.0040e6e0
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x70]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 0x1c]
call fcn.0057436c
test al, al
je 0x57cf15
lea ecx, [ebp - 0x18]
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0057436c
test al, al
je 0x57cf15
cmp dword [ebp + 0x10], 0x1fffffff
je 0x57c803
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
movzx edx, byte [ebp - 0x2f]
movzx eax, byte [ebp - 0x30]
call fcn.0040e7a8
mov byte [ebp - 0x36], al
movzx edx, byte [ebp - 0x36]
movzx eax, byte [ebp - 0x2e]
call fcn.0040e7a8
mov dl, 0xff
sub dl, al
mov byte [ebp - 0x36], dl
movzx eax, byte [ebp - 0x36]
add byte [ebp - 0x30], al
movzx eax, byte [ebp - 0x36]
add byte [ebp - 0x2f], al
movzx eax, byte [ebp - 0x36]
add byte [ebp - 0x2e], al
movzx eax, byte [ebp - 0x30]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fld dword [0x57cf20]
call fcn.00404874
fstp qword [ebp - 0x40]
wait
movzx eax, byte [ebp - 0x2f]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fld dword [0x57cf20]
call fcn.00404874
fstp qword [ebp - 0x48]
wait
movzx eax, byte [ebp - 0x2e]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fld dword [0x57cf20]
call fcn.00404874
fstp qword [ebp - 0x50]
wait
cmp dword [ebp + 0xc], 0
je 0x57c116
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x20], 0
jne 0x57be83
test edi, edi
jl 0x57c579
inc edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x84]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x28]
test esi, esi
jl 0x57be72
inc esi
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x78]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x88]
add ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x34], eax
movzx eax, byte [ebp - 0x31]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x36], al
movzx eax, byte [ebp - 0x32]
movzx edx, byte [ebp - 0x33]
add eax, edx
movzx edx, byte [ebp - 0x34]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x35], al
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
lea ebx, [eax + edx*4]
movzx eax, byte [ebp - 0x36]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fmul qword [ebp - 0x40]
call fcn.004046f4
push edx
push eax
push 0
push 0xff
call fcn.0040e6e8
push edx
push eax
movzx eax, byte [ebx + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040853c
push edx
push eax
movzx eax, byte [ebx + 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
mov byte [ebx + 2], al
movzx eax, byte [ebp - 0x36]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fmul qword [ebp - 0x48]
call fcn.004046f4
push edx
push eax
push 0
push 0xff
call fcn.0040e6e8
push edx
push eax
movzx eax, byte [ebx + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040853c
push edx
push eax
movzx eax, byte [ebx + 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
mov byte [ebx + 1], al
movzx eax, byte [ebp - 0x36]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fmul qword [ebp - 0x50]
call fcn.004046f4
push edx
push eax
push 0
push 0xff
call fcn.0040e6e8
push edx
push eax
movzx eax, byte [ebx]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040853c
push edx
push eax
movzx eax, byte [ebx]
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
mov byte [ebx], al
inc dword [ebp - 0x20]
dec esi
jne 0x57bce9
inc dword [ebp - 0x24]
dec dword [ebp - 0x54]
jne 0x57bcb5
jmp 0x57c579
test edi, edi
jl 0x57c579
inc edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x84]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x28]
test esi, esi
jl 0x57c105
inc esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xff00ff
je 0x57c04e
movzx eax, byte [ebp - 0x31]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x36], al
movzx eax, byte [ebp - 0x32]
movzx edx, byte [ebp - 0x33]
add eax, edx
movzx edx, byte [ebp - 0x34]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x35], al
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
lea edi, [eax + edx*4]
movzx eax, byte [ebp - 0x36]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fmul qword [ebp - 0x40]
call fcn.004046f4
push edx
push eax
push 0
push 0xff
call fcn.0040e6e8
push edx
push eax
movzx eax, byte [edi + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040853c
push edx
push eax
movzx eax, byte [edi + 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
mov byte [edi + 2], al
movzx eax, byte [ebp - 0x36]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fmul qword [ebp - 0x48]
call fcn.004046f4
push edx
push eax
push 0
push 0xff
call fcn.0040e6e8
push edx
push eax
movzx eax, byte [edi + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040853c
push edx
push eax
movzx eax, byte [edi + 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
mov byte [edi + 1], al
movzx eax, byte [ebp - 0x36]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fmul qword [ebp - 0x50]
call fcn.004046f4
push edx
push eax
push 0
push 0xff
call fcn.0040e6e8
push edx
push eax
movzx eax, byte [edi]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040853c
push edx
push eax
movzx eax, byte [edi]
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
mov byte [edi], al
jmp 0x57c0fa
cmp byte [ebp + 0x14], 0
je 0x57c0fa
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 - 0x74]
add edx, dword [ebp - 0x24]
cmp eax, edx
jle 0x57c0fe
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, dword [ebp - 0x2c]
cmp eax, edx
jle 0x57c105
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x24]
test eax, eax
jl 0x57c105
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x2c]
test eax, eax
jl 0x57c0fe
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.0045cbac
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x74]
add ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x2c]
mov edi, dword [eax]
call dword [edi + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx*4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
movzx edx, byte [ebp - 0x30]
mov byte [eax + 2], dl
mov eax, dword [ebp - 0x58]
movzx edx, byte [ebp - 0x2f]
mov byte [eax + 1], dl
mov eax, dword [ebp - 0x58]
movzx edx, byte [ebp - 0x2e]
mov byte [eax], dl
inc dword [ebp - 0x2c]
inc ebx
dec esi
jne 0x57becf
inc dword [ebp - 0x24]
dec dword [ebp - 0x54]
jne 0x57be96
jmp 0x57c579
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x20], 0
jne 0x57c2eb
test edi, edi
jl 0x57c579
inc edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x84]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x28]
test esi, esi
jl 0x57c2da
inc esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x34], eax
movzx eax, byte [ebp - 0x32]
movzx edx, byte [ebp - 0x33]
add eax, edx
movzx edx, byte [ebp - 0x34]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x35], al
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
lea edi, [eax + edx*4]
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx*4 + 3]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fmul qword [ebp - 0x40]
call fcn.004046f4
push edx
push eax
push 0
push 0xff
call fcn.0040e6e8
push edx
push eax
movzx eax, byte [edi + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040853c
push edx
push eax
movzx eax, byte [edi + 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
mov byte [edi + 2], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx*4 + 3]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fmul qword [ebp - 0x48]
call fcn.004046f4
push edx
push eax
push 0
push 0xff
call fcn.0040e6e8
push edx
push eax
movzx eax, byte [edi + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040853c
push edx
push eax
movzx eax, byte [edi + 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
mov byte [edi + 1], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx*4 + 3]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fmul qword [ebp - 0x50]
call fcn.004046f4
push edx
push eax
push 0
push 0xff
call fcn.0040e6e8
push edx
push eax
movzx eax, byte [edi]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040853c
push edx
push eax
movzx eax, byte [edi]
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
mov byte [edi], al
inc dword [ebp - 0x2c]
inc ebx
dec esi
jne 0x57c16f
inc dword [ebp - 0x24]
dec dword [ebp - 0x54]
jne 0x57c136
jmp 0x57c579
test edi, edi
jl 0x57c579
inc edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x84]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x28]
test esi, esi
jl 0x57c56d
inc esi
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x34], eax
movzx eax, byte [ebp - 0x32]
movzx edx, byte [ebp - 0x33]
add eax, edx
movzx edx, byte [ebp - 0x34]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x35], al
cmp dword [ebp - 0x34], 0xff00ff
je 0x57c4b0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
lea edi, [eax + edx*4]
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx*4 + 3]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fmul qword [ebp - 0x40]
call fcn.004046f4
push edx
push eax
push 0
push 0xff
call fcn.0040e6e8
push edx
push eax
movzx eax, byte [edi + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040853c
push edx
push eax
movzx eax, byte [edi + 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
mov byte [edi + 2], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx*4 + 3]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fmul qword [ebp - 0x48]
call fcn.004046f4
push edx
push eax
push 0
push 0xff
call fcn.0040e6e8
push edx
push eax
movzx eax, byte [edi + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040853c
push edx
push eax
movzx eax, byte [edi + 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
mov byte [edi + 1], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx*4 + 3]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fmul qword [ebp - 0x50]
call fcn.004046f4
push edx
push eax
push 0
push 0xff
call fcn.0040e6e8
push edx
push eax
movzx eax, byte [edi]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040853c
push edx
push eax
movzx eax, byte [edi]
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
mov byte [edi], al
jmp 0x57c55f
cmp byte [ebp + 0x14], 0
je 0x57c55f
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 - 0x74]
add edx, dword [ebp - 0x24]
cmp eax, edx
jle 0x57c563
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, dword [ebp - 0x2c]
cmp eax, edx
jle 0x57c56d
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x24]
test eax, eax
jl 0x57c56d
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x2c]
test eax, eax
jl 0x57c563
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.0045cbac
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x74]
add ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x78]
add edx, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx*4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
movzx edx, byte [ebp - 0x30]
mov byte [eax + 2], dl
mov eax, dword [ebp - 0x5c]
movzx edx, byte [ebp - 0x2f]
mov byte [eax + 1], dl
mov eax, dword [ebp - 0x5c]
movzx edx, byte [ebp - 0x2e]
mov byte [eax], dl
inc dword [ebp - 0x2c]
inc ebx
inc dword [ebp - 0x20]
dec esi
jne 0x57c33e
inc dword [ebp - 0x24]
dec dword [ebp - 0x54]
jne 0x57c2fe
cmp byte [ebp + 8], 0
je 0x57cf15
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [ebp - 0x6c]
dec eax
push eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
sar eax, 1
jns 0x57c59f
adc eax, 0
dec eax
pop edx
call fcn.0040e6e0
mov edi, eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
sar eax, 1
jns 0x57c5b7
adc eax, 0
push eax
mov eax, 0xff
pop edx
mov ecx, edx
cdq
idiv ecx
mov byte [ebp - 0x2d], al
mov byte [ebp - 0x30], 0xff
test edi, edi
jle 0x57cf15
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x24]
dec eax
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x28]
test esi, esi
jl 0x57c7eb
inc esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xff00ff
je 0x57c7e0
cmp dword [ebp + 0xc], 0
jne 0x57c64b
movzx eax, byte [ebp - 0x31]
mov edx, edi
sub edx, dword [ebp - 0x24]
imul edx
cdq
idiv edi
movzx edx, byte [ebp - 0x30]
imul edx
shr eax, 9
mov byte [ebp - 0x36], al
jmp 0x57c677
movzx eax, byte [ebp - 0x31]
mov edx, edi
sub edx, dword [ebp - 0x24]
imul edx
cdq
idiv edi
movzx edx, byte [ebp - 0x30]
imul edx
shr eax, 9
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x36], al
movzx eax, byte [ebp - 0x32]
movzx edx, byte [ebp - 0x33]
add eax, edx
movzx edx, byte [ebp - 0x34]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x35], al
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx*4]
mov dword [ebp - 0x60], eax
movzx eax, byte [ebp - 0x36]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fmul qword [ebp - 0x40]
call fcn.004046f4
push edx
push eax
push 0
push 0xff
call fcn.0040e6e8
push edx
push eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040853c
push edx
push eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [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
mov edx, dword [ebp - 0x60]
mov byte [edx + 2], al
movzx eax, byte [ebp - 0x36]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fmul qword [ebp - 0x48]
call fcn.004046f4
push edx
push eax
push 0
push 0xff
call fcn.0040e6e8
push edx
push eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040853c
push edx
push eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [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
mov edx, dword [ebp - 0x60]
mov byte [edx + 1], al
movzx eax, byte [ebp - 0x36]
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fmul qword [ebp - 0x50]
call fcn.004046f4
push edx
push eax
push 0
push 0xff
call fcn.0040e6e8
push edx
push eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040853c
push edx
push eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [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
mov edx, dword [ebp - 0x60]
mov byte [edx], al
inc dword [ebp - 0x2c]
inc ebx
dec esi
jne 0x57c613
movzx eax, byte [ebp - 0x2d]
sub byte [ebp - 0x30], al
inc dword [ebp - 0x24]
dec dword [ebp - 0x54]
jne 0x57c5dc
jmp 0x57cf15
cmp dword [ebp + 0xc], 0
je 0x57cac4
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x20], 0
jne 0x57c916
test edi, edi
jl 0x57cd9a
inc edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x84]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x28]
test esi, esi
jl 0x57c905
inc esi
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x78]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x88]
add ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x34], eax
movzx eax, byte [ebp - 0x31]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x36], al
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx*4]
movzx edx, byte [ebp - 0x32]
movzx ecx, byte [eax + 2]
sub edx, ecx
movzx ecx, byte [ebp - 0x36]
imul edx, ecx
movzx ecx, byte [eax + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax + 2], dl
movzx edx, byte [ebp - 0x33]
movzx ecx, byte [eax + 1]
sub edx, ecx
movzx ecx, byte [ebp - 0x36]
imul edx, ecx
movzx ecx, byte [eax + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax + 1], dl
movzx edx, byte [ebp - 0x34]
movzx ecx, byte [eax]
sub edx, ecx
movzx ecx, byte [ebp - 0x36]
imul edx, ecx
movzx ecx, byte [eax]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax], dl
inc dword [ebp - 0x20]
dec esi
jne 0x57c861
inc dword [ebp - 0x24]
dec dword [ebp - 0x54]
jne 0x57c82d
jmp 0x57cd9a
test edi, edi
jl 0x57cd9a
inc edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x84]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x28]
test esi, esi
jl 0x57cab3
inc esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xff00ff
je 0x57c9fc
movzx eax, byte [ebp - 0x31]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x36], al
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx*4]
movzx edx, byte [ebp - 0x32]
movzx ecx, byte [eax + 2]
sub edx, ecx
movzx ecx, byte [ebp - 0x36]
imul edx, ecx
movzx ecx, byte [eax + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax + 2], dl
movzx edx, byte [ebp - 0x33]
movzx ecx, byte [eax + 1]
sub edx, ecx
movzx ecx, byte [ebp - 0x36]
imul edx, ecx
movzx ecx, byte [eax + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax + 1], dl
movzx edx, byte [ebp - 0x34]
movzx ecx, byte [eax]
sub edx, ecx
movzx ecx, byte [ebp - 0x36]
imul edx, ecx
movzx ecx, byte [eax]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax], dl
jmp 0x57caa8
cmp byte [ebp + 0x14], 0
je 0x57caa8
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 - 0x74]
add edx, dword [ebp - 0x24]
cmp eax, edx
jle 0x57caac
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, dword [ebp - 0x2c]
cmp eax, edx
jle 0x57cab3
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x24]
test eax, eax
jl 0x57cab3
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x2c]
test eax, eax
jl 0x57caac
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.0045cbac
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x74]
add ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x2c]
mov edi, dword [eax]
call dword [edi + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx*4]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
movzx edx, byte [ebp - 0x30]
mov byte [eax + 2], dl
mov eax, dword [ebp - 0x64]
movzx edx, byte [ebp - 0x2f]
mov byte [eax + 1], dl
mov eax, dword [ebp - 0x64]
movzx edx, byte [ebp - 0x2e]
mov byte [eax], dl
inc dword [ebp - 0x2c]
inc ebx
dec esi
jne 0x57c962
inc dword [ebp - 0x24]
dec dword [ebp - 0x54]
jne 0x57c929
jmp 0x57cd9a
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x20], 0
jne 0x57cbce
test edi, edi
jl 0x57cd9a
inc edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x84]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x28]
test esi, esi
jl 0x57cbbd
inc esi
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
lea edi, [eax + edx*4]
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx*4 + 2]
movzx edx, byte [edi + 2]
sub eax, edx
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + ebx*4 + 3]
imul edx
movzx edx, byte [edi + 2]
shl edx, 8
add eax, edx
shr eax, 8
mov byte [edi + 2], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx*4 + 1]
movzx edx, byte [edi + 1]
sub eax, edx
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + ebx*4 + 3]
imul edx
movzx edx, byte [edi + 1]
shl edx, 8
add eax, edx
shr eax, 8
mov byte [edi + 1], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx*4]
movzx edx, byte [edi]
sub eax, edx
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + ebx*4 + 3]
imul edx
movzx edx, byte [edi]
shl edx, 8
add eax, edx
shr eax, 8
mov byte [edi], al
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
movzx eax, byte [eax + edx*4 + 3]
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + ebx*4 + 3]
call fcn.0040e7a8
mov byte [edi + 3], al
inc dword [ebp - 0x2c]
inc ebx
dec esi
jne 0x57cb1d
inc dword [ebp - 0x24]
dec dword [ebp - 0x54]
jne 0x57cae4
jmp 0x57cd9a
test edi, edi
jl 0x57cd9a
inc edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x84]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x28]
test esi, esi
jl 0x57cd8e
inc esi
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xff00ff
je 0x57ccd1
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
lea edi, [eax + edx*4]
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx*4 + 2]
movzx edx, byte [edi + 2]
sub eax, edx
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + ebx*4 + 3]
imul edx
movzx edx, byte [edi + 2]
shl edx, 8
add eax, edx
shr eax, 8
mov byte [edi + 2], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx*4 + 1]
movzx edx, byte [edi + 1]
sub eax, edx
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + ebx*4 + 3]
imul edx
movzx edx, byte [edi + 1]
shl edx, 8
add eax, edx
shr eax, 8
mov byte [edi + 1], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx*4]
movzx edx, byte [edi]
sub eax, edx
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + ebx*4 + 3]
imul edx
movzx edx, byte [edi]
shl edx, 8
add eax, edx
shr eax, 8
mov byte [edi], al
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
movzx eax, byte [eax + edx*4 + 3]
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + ebx*4 + 3]
call fcn.0040e7a8
mov byte [edi + 3], al
jmp 0x57cd80
cmp byte [ebp + 0x14], 0
je 0x57cd80
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 - 0x74]
add edx, dword [ebp - 0x24]
cmp eax, edx
jle 0x57cd84
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, dword [ebp - 0x2c]
cmp eax, edx
jle 0x57cd8e
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x24]
test eax, eax
jl 0x57cd8e
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x2c]
test eax, eax
jl 0x57cd84
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.0045cbac
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x74]
add ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x78]
add edx, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx*4]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
movzx edx, byte [ebp - 0x30]
mov byte [eax + 2], dl
mov eax, dword [ebp - 0x68]
movzx edx, byte [ebp - 0x2f]
mov byte [eax + 1], dl
mov eax, dword [ebp - 0x68]
movzx edx, byte [ebp - 0x2e]
mov byte [eax], dl
inc dword [ebp - 0x2c]
inc ebx
inc dword [ebp - 0x20]
dec esi
jne 0x57cc21
inc dword [ebp - 0x24]
dec dword [ebp - 0x54]
jne 0x57cbe1
cmp byte [ebp + 8], 0
je 0x57cf15
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [ebp - 0x6c]
dec eax
push eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
sar eax, 1
jns 0x57cdc0
adc eax, 0
dec eax
pop edx
call fcn.0040e6e0
mov edi, eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, 0xff
pop edx
mov ecx, edx
cdq
idiv ecx
mov byte [ebp - 0x2d], al
mov byte [ebp - 0x30], 0xff
test edi, edi
jle 0x57cf15
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x24]
dec eax
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x24]
imul dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x28]
test esi, esi
jl 0x57cf02
inc esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xff00ff
je 0x57cef7
cmp dword [ebp + 0xc], 0
jne 0x57ce65
movzx eax, byte [ebp - 0x31]
mov edx, edi
sub edx, dword [ebp - 0x24]
imul edx
cdq
idiv edi
movzx edx, byte [ebp - 0x30]
imul edx
shr eax, 9
mov byte [ebp - 0x36], al
jmp 0x57ce91
movzx eax, byte [ebp - 0x31]
mov edx, edi
sub edx, dword [ebp - 0x24]
imul edx
cdq
idiv edi
movzx edx, byte [ebp - 0x30]
imul edx
shr eax, 9
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x36], al
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx*4]
movzx edx, byte [ebp - 0x32]
movzx ecx, byte [eax + 2]
sub edx, ecx
movzx ecx, byte [ebp - 0x36]
imul edx, ecx
movzx ecx, byte [eax + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax + 2], dl
movzx edx, byte [ebp - 0x33]
movzx ecx, byte [eax + 1]
sub edx, ecx
movzx ecx, byte [ebp - 0x36]
imul edx, ecx
movzx ecx, byte [eax + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax + 1], dl
movzx edx, byte [ebp - 0x34]
movzx ecx, byte [eax]
sub edx, ecx
movzx ecx, byte [ebp - 0x36]
imul edx, ecx
movzx ecx, byte [eax]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax], dl
inc dword [ebp - 0x2c]
inc ebx
dec esi
jne 0x57ce2d
movzx eax, byte [ebp - 0x2d]
sub byte [ebp - 0x30], al
inc dword [ebp - 0x24]
dec dword [ebp - 0x54]
jne 0x57cdf6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18