Function at 0x5777e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x1fc]
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 - 0x1ec]
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 0x579954
mov dl, 7
mov eax, dword [ebp + 0x1c]
call fcn.004ad1e0
lea eax, [ebp - 0x1ec]
mov dl, 1
call sym.DatCutter.exe__Acntutils_HeightOf_qqrrx11Types_TRecto
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x1fc]
mov dl, 1
call sym.DatCutter.exe__Acntutils_HeightOf_qqrrx11Types_TRecto
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x58]
jge 0x57784b
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
jmp 0x577851
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x60]
jge 0x577878
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x64], eax
jmp 0x57787e
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x68]
jge 0x5778a5
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x6c], eax
jmp 0x5778ab
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x579954
lea eax, [ebp - 0x1ec]
mov dl, 1
call sym.DatCutter.exe__Acntutils_WidthOf_qqrrx11Types_TRecto
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x1fc]
mov dl, 1
call sym.DatCutter.exe__Acntutils_WidthOf_qqrrx11Types_TRecto
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x74]
jge 0x5778ec
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x78], eax
jmp 0x5778f2
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x7c]
jge 0x577919
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x80], eax
jmp 0x57791f
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x84]
jge 0x57794f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x88], eax
jmp 0x57795b
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x579954
mov eax, dword [ebp - 0x1ec]
cmp eax, dword [ebp - 0x1fc]
jge 0x5779ec
cmp dword [ebp - 0x1ec], 0
jge 0x577a56
mov eax, dword [ebp - 0x1ec]
neg eax
add dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x1ec]
neg eax
sub dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x8c]
jge 0x5779d4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x90], eax
jmp 0x5779e0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
dec eax
mov dword [ebp - 0x1c], eax
jmp 0x577a56
cmp dword [ebp - 0x1fc], 0
jge 0x577a56
mov eax, dword [ebp - 0x1fc]
neg eax
add dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1fc]
neg eax
sub dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x94]
jge 0x577a40
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x98], eax
jmp 0x577a4c
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
dec eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1e8]
cmp eax, dword [ebp - 0x1f8]
jge 0x577ad4
cmp dword [ebp - 0x1e8], 0
jge 0x577b3e
mov eax, dword [ebp - 0x1e8]
neg eax
add dword [ebp - 0x1f8], eax
mov eax, dword [ebp - 0x1e8]
neg eax
sub dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x9c]
jge 0x577abc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xa0], eax
jmp 0x577ac8
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
dec eax
mov dword [ebp - 0x18], eax
jmp 0x577b3e
cmp dword [ebp - 0x1f8], 0
jge 0x577b3e
mov eax, dword [ebp - 0x1f8]
neg eax
add dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1f8]
neg eax
sub dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [ebp - 0x1e8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xa4]
jge 0x577b28
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xa8], eax
jmp 0x577b34
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
dec eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, dword [ebp - 0x1ec]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xac]
jge 0x577b68
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xb0], eax
jmp 0x577b74
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, dword [ebp - 0x1fc]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xb4]
jge 0x577ba7
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xb8], eax
jmp 0x577bb3
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x10], 0x1fffffff
je 0x578f13
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
xor eax, eax
mov al, byte [ebp - 0x28]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fdiv dword [0x579960]
fstp qword [ebp - 0x38]
wait
xor eax, eax
mov al, byte [ebp - 0x27]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fdiv dword [0x579960]
fstp qword [ebp - 0x40]
wait
xor eax, eax
mov al, byte [ebp - 0x26]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fdiv dword [0x579960]
fstp qword [ebp - 0x48]
wait
cmp dword [ebp + 0xc], 0
je 0x578364
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x10], 0
jne 0x577f6a
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x578a96
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x1e8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004ac008
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x1f8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.004ac008
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jl 0x577f59
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1ec]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1fc]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov al, byte [ebp - 0x29]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x2e], al
xor eax, eax
mov al, byte [ebp - 0x2a]
xor edx, edx
mov dl, byte [ebp - 0x2b]
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x2c]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x2d], al
xor eax, eax
mov al, byte [ebp - 0x2d]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fmul qword [ebp - 0x38]
call fcn.00456748
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], edx
cmp dword [ebp - 0xbc], 0
jne 0x577d25
cmp dword [ebp - 0xc0], 0xff
jae 0x577d41
jmp 0x577d27
jge 0x577d41
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc4], eax
jmp 0x577d55
mov dword [ebp - 0xc8], 0xff
mov dword [ebp - 0xc4], 0
xor eax, eax
mov al, byte [ebp - 0x2e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc8]
mov edx, dword [ebp - 0xc4]
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0045a1f0
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 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 edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 2], al
xor eax, eax
mov al, byte [ebp - 0x2d]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fmul qword [ebp - 0x40]
call fcn.00456748
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], edx
cmp dword [ebp - 0xcc], 0
jne 0x577df2
cmp dword [ebp - 0xd0], 0xff
jae 0x577e0e
jmp 0x577df4
jge 0x577e0e
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd4], eax
jmp 0x577e22
mov dword [ebp - 0xd8], 0xff
mov dword [ebp - 0xd4], 0
xor eax, eax
mov al, byte [ebp - 0x2e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xd4]
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0045a1f0
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 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 edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 1], al
xor eax, eax
mov al, byte [ebp - 0x2d]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fmul qword [ebp - 0x48]
call fcn.00456748
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
cmp dword [ebp - 0xdc], 0
jne 0x577ebf
cmp dword [ebp - 0xe0], 0xff
jae 0x577edb
jmp 0x577ec1
jge 0x577edb
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xe4], eax
jmp 0x577eef
mov dword [ebp - 0xe8], 0xff
mov dword [ebp - 0xe4], 0
xor eax, eax
mov al, byte [ebp - 0x2e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xe8]
mov edx, dword [ebp - 0xe4]
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0045a1f0
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4]
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 edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4], al
inc dword [ebp - 0x10]
dec dword [ebp - 0x50]
jne 0x577c8c
inc dword [ebp - 0x14]
dec dword [ebp - 0x4c]
jne 0x577c4e
jmp 0x578a96
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x578a96
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x1e8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004ac008
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x1f8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.004ac008
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jl 0x578353
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xff00ff
je 0x57828b
xor eax, eax
mov al, byte [ebp - 0x29]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x2e], al
xor eax, eax
mov al, byte [ebp - 0x2a]
xor edx, edx
mov dl, byte [ebp - 0x2b]
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x2c]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x2d], al
xor eax, eax
mov al, byte [ebp - 0x2d]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fmul qword [ebp - 0x38]
call fcn.00456748
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], edx
cmp dword [ebp - 0xec], 0
jne 0x57805e
cmp dword [ebp - 0xf0], 0xff
jae 0x57807a
jmp 0x578060
jge 0x57807a
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xf4], eax
jmp 0x57808e
mov dword [ebp - 0xf8], 0xff
mov dword [ebp - 0xf4], 0
xor eax, eax
mov al, byte [ebp - 0x2e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xf8]
mov edx, dword [ebp - 0xf4]
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0045a1f0
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 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 edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 2], al
xor eax, eax
mov al, byte [ebp - 0x2d]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fmul qword [ebp - 0x38]
call fcn.00456748
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], edx
cmp dword [ebp - 0xfc], 0
jne 0x57812b
cmp dword [ebp - 0x100], 0xff
jae 0x578147
jmp 0x57812d
jge 0x578147
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x104], eax
jmp 0x57815b
mov dword [ebp - 0x108], 0xff
mov dword [ebp - 0x104], 0
xor eax, eax
mov al, byte [ebp - 0x2e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 0x104]
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0045a1f0
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 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 edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 1], al
xor eax, eax
mov al, byte [ebp - 0x2d]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fmul qword [ebp - 0x38]
call fcn.00456748
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], edx
cmp dword [ebp - 0x10c], 0
jne 0x5781f8
cmp dword [ebp - 0x110], 0xff
jae 0x578214
jmp 0x5781fa
jge 0x578214
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x114], eax
jmp 0x578228
mov dword [ebp - 0x118], 0xff
mov dword [ebp - 0x114], 0
xor eax, eax
mov al, byte [ebp - 0x2e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x118]
mov edx, dword [ebp - 0x114]
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0045a1f0
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4]
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 edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4], al
jmp 0x578341
cmp byte [ebp + 0x14], 0
je 0x578341
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 - 0x1e8]
add edx, dword [ebp - 0x14]
cmp eax, edx
jle 0x578347
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 - 0x20]
cmp eax, edx
jle 0x578353
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x1e8]
add eax, dword [ebp - 0x14]
test eax, eax
jl 0x578353
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x20]
test eax, eax
jl 0x578347
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.004abe84
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x1e8]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x18]
mov dword [ebp - 0x28], eax
mov al, byte [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 2], al
mov al, byte [ebp - 0x27]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 1], al
mov al, byte [ebp - 0x26]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4], al
inc dword [ebp - 0x20]
inc dword [ebp - 0x24]
inc dword [ebp - 0x10]
dec dword [ebp - 0x50]
jne 0x577fd0
inc dword [ebp - 0x14]
dec dword [ebp - 0x4c]
jne 0x577f80
jmp 0x578a96
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x10], 0
jne 0x5786a3
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x578a96
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x1e8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004ac008
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x70]
mov edx, dword [ebp - 0x1f8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.004ac008
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jl 0x578692
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov al, byte [ebp - 0x2a]
xor edx, edx
mov dl, byte [ebp - 0x2b]
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x2c]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x2d], al
xor eax, eax
mov al, byte [ebp - 0x2d]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fmul qword [ebp - 0x38]
call fcn.00456748
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], edx
cmp dword [ebp - 0x11c], 0
jne 0x578446
cmp dword [ebp - 0x120], 0xff
jae 0x578462
jmp 0x578448
jge 0x578462
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x124], eax
jmp 0x578476
mov dword [ebp - 0x128], 0xff
mov dword [ebp - 0x124], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx*4 + 3]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x128]
mov edx, dword [ebp - 0x124]
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0045a1f0
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 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 edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 2], al
xor eax, eax
mov al, byte [ebp - 0x2d]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fmul qword [ebp - 0x40]
call fcn.00456748
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], edx
cmp dword [ebp - 0x12c], 0
jne 0x578519
cmp dword [ebp - 0x130], 0xff
jae 0x578535
jmp 0x57851b
jge 0x578535
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x134], eax
jmp 0x578549
mov dword [ebp - 0x138], 0xff
mov dword [ebp - 0x134], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx*4 + 3]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x138]
mov edx, dword [ebp - 0x134]
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0045a1f0
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 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 edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 1], al
xor eax, eax
mov al, byte [ebp - 0x2d]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fmul qword [ebp - 0x48]
call fcn.00456748
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], edx
cmp dword [ebp - 0x13c], 0
jne 0x5785ec
cmp dword [ebp - 0x140], 0xff
jae 0x578608
jmp 0x5785ee
jge 0x578608
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x144], eax
jmp 0x57861c
mov dword [ebp - 0x148], 0xff
mov dword [ebp - 0x144], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx*4 + 3]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x148]
mov edx, dword [ebp - 0x144]
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0045a1f0
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4]
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 edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4], al
inc dword [ebp - 0x20]
inc dword [ebp - 0x24]
inc dword [ebp - 0x10]
dec dword [ebp - 0x50]
jne 0x5783df
inc dword [ebp - 0x14]
dec dword [ebp - 0x4c]
jne 0x578387
jmp 0x578a96
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x578a96
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x1e8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004ac008
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x1f8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.004ac008
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jl 0x578a8a
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov al, byte [ebp - 0x2a]
xor edx, edx
mov dl, byte [ebp - 0x2b]
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x2c]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x2d], al
cmp dword [ebp - 0x2c], 0xff00ff
je 0x5789bc
xor eax, eax
mov al, byte [ebp - 0x2d]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fmul qword [ebp - 0x38]
call fcn.00456748
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], edx
cmp dword [ebp - 0x14c], 0
jne 0x57877d
cmp dword [ebp - 0x150], 0xff
jae 0x578799
jmp 0x57877f
jge 0x578799
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x154], eax
jmp 0x5787ad
mov dword [ebp - 0x158], 0xff
mov dword [ebp - 0x154], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx*4 + 3]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x158]
mov edx, dword [ebp - 0x154]
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0045a1f0
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 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 edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 2], al
xor eax, eax
mov al, byte [ebp - 0x2d]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fmul qword [ebp - 0x40]
call fcn.00456748
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], edx
cmp dword [ebp - 0x15c], 0
jne 0x578850
cmp dword [ebp - 0x160], 0xff
jae 0x57886c
jmp 0x578852
jge 0x57886c
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x164], eax
jmp 0x578880
mov dword [ebp - 0x168], 0xff
mov dword [ebp - 0x164], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx*4 + 3]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x168]
mov edx, dword [ebp - 0x164]
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0045a1f0
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 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 edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 1], al
xor eax, eax
mov al, byte [ebp - 0x2d]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fmul qword [ebp - 0x48]
call fcn.00456748
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], edx
cmp dword [ebp - 0x16c], 0
jne 0x578923
cmp dword [ebp - 0x170], 0xff
jae 0x57893f
jmp 0x578925
jge 0x57893f
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x174], eax
jmp 0x578953
mov dword [ebp - 0x178], 0xff
mov dword [ebp - 0x174], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx*4 + 3]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x178]
mov edx, dword [ebp - 0x174]
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0045a1f0
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4]
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 edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4], al
jmp 0x578a78
cmp byte [ebp + 0x14], 0
je 0x578a78
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 - 0x1e8]
add edx, dword [ebp - 0x14]
cmp eax, edx
jle 0x578a7e
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 - 0x20]
cmp eax, edx
jle 0x578a8a
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x1e8]
add eax, dword [ebp - 0x14]
test eax, eax
jl 0x578a8a
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x20]
test eax, eax
jl 0x578a7e
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.004abe84
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x1e8]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x1ec]
add edx, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x18]
mov dword [ebp - 0x28], eax
mov al, byte [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 2], al
mov al, byte [ebp - 0x27]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 1], al
mov al, byte [ebp - 0x26]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4], al
inc dword [ebp - 0x20]
inc dword [ebp - 0x24]
inc dword [ebp - 0x10]
dec dword [ebp - 0x50]
jne 0x578709
inc dword [ebp - 0x14]
dec dword [ebp - 0x4c]
jne 0x5786b9
cmp byte [ebp + 8], 0
je 0x579954
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
sar eax, 1
jns 0x578aaf
adc eax, 0
dec eax
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [ebp - 0x1e0]
dec eax
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x17c]
cmp eax, dword [ebp - 0x180]
jge 0x578ae7
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x184], eax
jmp 0x578af3
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
sar eax, 1
jns 0x578b0b
adc eax, 0
push eax
mov eax, 0xff
pop edx
mov ecx, edx
cdq
idiv ecx
mov byte [ebp - 0x25], al
mov byte [ebp - 0x28], 0xff
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x579954
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x1e0]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004ac008
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x1f0]
sub edx, dword [ebp - 0x14]
dec edx
mov eax, dword [ebp + 0x1c]
call fcn.004ac008
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jl 0x578efc
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xff00ff
je 0x578eea
cmp dword [ebp + 0xc], 0
jne 0x578bfe
xor eax, eax
mov al, byte [ebp - 0x29]
mov ecx, 3
xor edx, edx
div ecx
xor edx, edx
mov dl, byte [ebp - 0x28]
imul edx
mov ecx, 0xff
xor edx, edx
div ecx
test eax, eax
jle 0x578beb
xor eax, eax
mov al, byte [ebp - 0x29]
mov ecx, 3
xor edx, edx
div ecx
xor edx, edx
mov dl, byte [ebp - 0x28]
imul edx
mov ecx, 0xff
xor edx, edx
div ecx
mov dword [ebp - 0x188], eax
jmp 0x578bf3
xor eax, eax
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x188]
mov byte [ebp - 0x2e], al
jmp 0x578c67
xor eax, eax
mov al, byte [ebp - 0x29]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x12c
cdq
idiv ecx
xor edx, edx
mov dl, byte [ebp - 0x28]
imul edx
mov ecx, 0xff
cdq
idiv ecx
test eax, eax
jle 0x578c56
xor eax, eax
mov al, byte [ebp - 0x29]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x12c
cdq
idiv ecx
xor edx, edx
mov dl, byte [ebp - 0x28]
imul edx
mov ecx, 0xff
cdq
idiv ecx
mov dword [ebp - 0x18c], eax
jmp 0x578c5e
xor eax, eax
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x18c]
mov byte [ebp - 0x2e], al
xor eax, eax
mov al, byte [ebp - 0x2a]
xor edx, edx
mov dl, byte [ebp - 0x2b]
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x2c]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x2d], al
xor eax, eax
mov al, byte [ebp - 0x2d]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fmul qword [ebp - 0x38]
call fcn.00456748
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], edx
cmp dword [ebp - 0x194], 0
jne 0x578cc2
cmp dword [ebp - 0x198], 0xff
jae 0x578cde
jmp 0x578cc4
jge 0x578cde
mov eax, dword [ebp - 0x198]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x19c], eax
jmp 0x578cf2
mov dword [ebp - 0x1a0], 0xff
mov dword [ebp - 0x19c], 0
xor eax, eax
mov al, byte [ebp - 0x2e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1a0]
mov edx, dword [ebp - 0x19c]
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0045a1f0
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 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 edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 2], al
xor eax, eax
mov al, byte [ebp - 0x2d]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fmul qword [ebp - 0x40]
call fcn.00456748
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], edx
cmp dword [ebp - 0x1a4], 0
jne 0x578d8f
cmp dword [ebp - 0x1a8], 0xff
jae 0x578dab
jmp 0x578d91
jge 0x578dab
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x1ac], eax
jmp 0x578dbf
mov dword [ebp - 0x1b0], 0xff
mov dword [ebp - 0x1ac], 0
xor eax, eax
mov al, byte [ebp - 0x2e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1b0]
mov edx, dword [ebp - 0x1ac]
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0045a1f0
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 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 edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 1], al
xor eax, eax
mov al, byte [ebp - 0x2d]
mov dword [ebp - 0x200], eax
fild dword [ebp - 0x200]
fmul qword [ebp - 0x48]
call fcn.00456748
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1b4], edx
cmp dword [ebp - 0x1b4], 0
jne 0x578e5c
cmp dword [ebp - 0x1b8], 0xff
jae 0x578e78
jmp 0x578e5e
jge 0x578e78
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1bc], eax
jmp 0x578e8c
mov dword [ebp - 0x1c0], 0xff
mov dword [ebp - 0x1bc], 0
xor eax, eax
mov al, byte [ebp - 0x2e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1c0]
mov edx, dword [ebp - 0x1bc]
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0045a1f0
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4]
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 edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4], al
inc dword [ebp - 0x20]
inc dword [ebp - 0x24]
inc dword [ebp - 0x10]
dec dword [ebp - 0x50]
jne 0x578b84
mov al, byte [ebp - 0x25]
sub byte [ebp - 0x28], al
inc dword [ebp - 0x14]
dec dword [ebp - 0x4c]
jne 0x578b33
jmp 0x579954
cmp dword [ebp + 0xc], 0
je 0x57929a
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x10], 0
jne 0x57907e
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5796ba
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x1e8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004ac008
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x1f8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.004ac008
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jl 0x57906d
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1ec]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1fc]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov al, byte [ebp - 0x29]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x2e], al
xor eax, eax
mov al, byte [ebp - 0x2a]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 2]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x2e]
imul edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 2], al
xor eax, eax
mov al, byte [ebp - 0x2b]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 1]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x2e]
imul edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 1], al
xor eax, eax
mov al, byte [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x2e]
imul edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4], al
inc dword [ebp - 0x10]
dec dword [ebp - 0x50]
jne 0x578f7e
inc dword [ebp - 0x14]
dec dword [ebp - 0x4c]
jne 0x578f40
jmp 0x5796ba
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5796ba
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x1e8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004ac008
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x1f8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.004ac008
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jl 0x579289
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xff00ff
je 0x5791c1
xor eax, eax
mov al, byte [ebp - 0x29]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x2e], al
xor eax, eax
mov al, byte [ebp - 0x2a]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 2]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x2e]
imul edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 2], al
xor eax, eax
mov al, byte [ebp - 0x2b]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 1]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x2e]
imul edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 1], al
xor eax, eax
mov al, byte [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x2e]
imul edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4], al
jmp 0x579277
cmp byte [ebp + 0x14], 0
je 0x579277
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 - 0x1e8]
add edx, dword [ebp - 0x14]
cmp eax, edx
jle 0x57927d
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 - 0x20]
cmp eax, edx
jle 0x579289
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x1e8]
add eax, dword [ebp - 0x14]
test eax, eax
jl 0x579289
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x20]
test eax, eax
jl 0x57927d
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.004abe84
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x1e8]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x18]
mov dword [ebp - 0x28], eax
mov al, byte [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 2], al
mov al, byte [ebp - 0x27]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 1], al
mov al, byte [ebp - 0x26]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4], al
inc dword [ebp - 0x20]
inc dword [ebp - 0x24]
inc dword [ebp - 0x10]
dec dword [ebp - 0x50]
jne 0x5790e4
inc dword [ebp - 0x14]
dec dword [ebp - 0x4c]
jne 0x579094
jmp 0x5796ba
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x10], 0
jne 0x579446
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5796ba
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x1e8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004ac008
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x1f8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.004ac008
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jl 0x579435
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx*4 + 2]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 2]
sub eax, edx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
movzx edx, byte [edx + ecx*4 + 3]
imul edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 2], al
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx*4 + 1]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 1]
sub eax, edx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
movzx edx, byte [edx + ecx*4 + 3]
imul edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 1], al
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx*4]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4]
sub eax, edx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
movzx edx, byte [edx + ecx*4 + 3]
imul edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4], al
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx*4 + 3]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 3]
cmp eax, edx
jge 0x579402
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 3]
mov dword [ebp - 0x1c4], eax
jmp 0x579413
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx*4 + 3]
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp - 0x1c4]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 3], al
inc dword [ebp - 0x20]
inc dword [ebp - 0x24]
inc dword [ebp - 0x10]
dec dword [ebp - 0x50]
jne 0x57930d
inc dword [ebp - 0x14]
dec dword [ebp - 0x4c]
jne 0x5792bd
jmp 0x5796ba
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5796ba
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x1e8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004ac008
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x1f8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.004ac008
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jl 0x5796ae
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xff00ff
je 0x5795e0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx*4 + 2]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 2]
sub eax, edx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
movzx edx, byte [edx + ecx*4 + 3]
imul edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 2], al
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx*4 + 1]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 1]
sub eax, edx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
movzx edx, byte [edx + ecx*4 + 3]
imul edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 1], al
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx*4]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4]
sub eax, edx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
movzx edx, byte [edx + ecx*4 + 3]
imul edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4], al
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx*4 + 3]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 3]
cmp eax, edx
jge 0x5795ba
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 3]
mov dword [ebp - 0x1c8], eax
jmp 0x5795cb
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx*4 + 3]
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x1c8]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 3], al
jmp 0x57969c
cmp byte [ebp + 0x14], 0
je 0x57969c
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 - 0x1e8]
add edx, dword [ebp - 0x14]
cmp eax, edx
jle 0x5796a2
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 - 0x20]
cmp eax, edx
jle 0x5796ae
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x1e8]
add eax, dword [ebp - 0x14]
test eax, eax
jl 0x5796ae
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x20]
test eax, eax
jl 0x5796a2
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.004abe84
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x1e8]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x1ec]
add edx, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x18]
mov dword [ebp - 0x28], eax
mov al, byte [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 2], al
mov al, byte [ebp - 0x27]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 1], al
mov al, byte [ebp - 0x26]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4], al
inc dword [ebp - 0x20]
inc dword [ebp - 0x24]
inc dword [ebp - 0x10]
dec dword [ebp - 0x50]
jne 0x5794ac
inc dword [ebp - 0x14]
dec dword [ebp - 0x4c]
jne 0x57945c
cmp byte [ebp + 8], 0
je 0x579954
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
sar eax, 1
jns 0x5796d3
adc eax, 0
dec eax
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [ebp - 0x1e0]
dec eax
mov dword [ebp - 0x1d0], eax
mov eax, dword [ebp - 0x1cc]
cmp eax, dword [ebp - 0x1d0]
jge 0x57970b
mov eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1d4], eax
jmp 0x579717
mov eax, dword [ebp - 0x1d0]
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
sar eax, 1
jns 0x57972f
adc eax, 0
push eax
mov eax, 0xff
pop edx
mov ecx, edx
cdq
idiv ecx
mov byte [ebp - 0x25], al
mov byte [ebp - 0x28], 0xff
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x579954
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x1e0]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004ac008
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x1f0]
sub edx, dword [ebp - 0x14]
dec edx
mov eax, dword [ebp + 0x1c]
call fcn.004ac008
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jl 0x579942
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xff00ff
je 0x579930
cmp dword [ebp + 0xc], 0
jne 0x579822
xor eax, eax
mov al, byte [ebp - 0x29]
mov ecx, 3
xor edx, edx
div ecx
xor edx, edx
mov dl, byte [ebp - 0x28]
imul edx
mov ecx, 0xff
xor edx, edx
div ecx
test eax, eax
jle 0x57980f
xor eax, eax
mov al, byte [ebp - 0x29]
mov ecx, 3
xor edx, edx
div ecx
xor edx, edx
mov dl, byte [ebp - 0x28]
imul edx
mov ecx, 0xff
xor edx, edx
div ecx
mov dword [ebp - 0x1d8], eax
jmp 0x579817
xor eax, eax
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1d8]
mov byte [ebp - 0x2e], al
jmp 0x57988b
xor eax, eax
mov al, byte [ebp - 0x29]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x12c
cdq
idiv ecx
xor edx, edx
mov dl, byte [ebp - 0x28]
imul edx
mov ecx, 0xff
cdq
idiv ecx
test eax, eax
jle 0x57987a
xor eax, eax
mov al, byte [ebp - 0x29]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x12c
cdq
idiv ecx
xor edx, edx
mov dl, byte [ebp - 0x28]
imul edx
mov ecx, 0xff
cdq
idiv ecx
mov dword [ebp - 0x1dc], eax
jmp 0x579882
xor eax, eax
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x1dc]
mov byte [ebp - 0x2e], al
xor eax, eax
mov al, byte [ebp - 0x2a]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 2]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x2e]
imul edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 2], al
xor eax, eax
mov al, byte [ebp - 0x2b]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 1]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x2e]
imul edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4 + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4 + 1], al
xor eax, eax
mov al, byte [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x2e]
imul edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx*4], al
inc dword [ebp - 0x20]
inc dword [ebp - 0x24]
inc dword [ebp - 0x10]
dec dword [ebp - 0x50]
jne 0x5797a8
mov al, byte [ebp - 0x25]
sub byte [ebp - 0x28], al
inc dword [ebp - 0x14]
dec dword [ebp - 0x4c]
jne 0x579757
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18