Function at 0x59743c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x64]
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 - 0x54]
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 0x5989b2
mov dl, 7
mov eax, dword [ebp + 0x1c]
call fcn.00432818
lea eax, [ebp - 0x64]
mov dl, 1
call fcn.005903e4
push eax
lea eax, [ebp - 0x54]
mov dl, 1
call fcn.005903e4
pop edx
call fcn.00433a24
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
sub edx, dword [ebp - 0x50]
mov eax, ebx
call fcn.00433a24
mov ebx, eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
sub edx, dword [ebp - 0x60]
mov eax, ebx
call fcn.00433a24
dec eax
mov ebx, eax
test ebx, ebx
jl 0x5989b2
lea eax, [ebp - 0x64]
mov dl, 1
call fcn.005903d0
push eax
lea eax, [ebp - 0x54]
mov dl, 1
call fcn.005903d0
pop edx
call fcn.00433a24
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
sub edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x18]
call fcn.00433a24
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
sub edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x18]
call fcn.00433a24
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x5989b2
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x54]
jle 0x597556
cmp dword [ebp - 0x54], 0
jge 0x59758a
mov eax, dword [ebp - 0x54]
neg eax
add dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x54]
neg eax
sub dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
sub edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x18]
call fcn.00433a24
dec eax
mov dword [ebp - 0x18], eax
jmp 0x59758a
cmp dword [ebp - 0x64], 0
jge 0x59758a
mov eax, dword [ebp - 0x64]
neg eax
add dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x64]
neg eax
sub dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
sub edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x18]
call fcn.00433a24
dec eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x50]
jle 0x5975c5
cmp dword [ebp - 0x50], 0
jge 0x5975f6
mov eax, dword [ebp - 0x50]
neg eax
add dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x50]
neg eax
sub ebx, eax
xor eax, eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
sub edx, dword [ebp - 0x60]
mov eax, ebx
call fcn.00433a24
dec eax
mov ebx, eax
jmp 0x5975f6
cmp dword [ebp - 0x60], 0
jge 0x5975f6
mov eax, dword [ebp - 0x60]
neg eax
add dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x60]
neg eax
sub ebx, eax
xor eax, eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
sub edx, dword [ebp - 0x50]
mov eax, ebx
call fcn.00433a24
dec eax
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
sub edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x18]
call fcn.00433a24
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
sub edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x18]
call fcn.00433a24
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], 0x1fffffff
je 0x59822c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov al, byte [ebp - 0x1c]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fld dword [0x5989bc]
call fcn.004032e0
fstp qword [ebp - 0x30]
wait
xor eax, eax
mov al, byte [ebp - 0x1b]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fld dword [0x5989bc]
call fcn.004032e0
fstp qword [ebp - 0x38]
wait
xor eax, eax
mov al, byte [ebp - 0x1a]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fld dword [0x5989bc]
call fcn.004032e0
fstp qword [ebp - 0x40]
wait
cmp dword [ebp + 0xc], 0
je 0x597b26
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x10], 0
jne 0x597894
test ebx, ebx
jl 0x597f9b
inc ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00431978
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.00431978
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 0x18]
test edi, edi
jl 0x597883
inc edi
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x54]
add ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x64]
add esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x20], eax
xor eax, eax
mov al, byte [ebp - 0x1d]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x22], al
xor eax, eax
mov al, byte [ebp - 0x1e]
xor edx, edx
mov dl, byte [ebp - 0x1f]
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x20]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x21], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x30]
call fcn.00402d20
push edx
push eax
push 0
push 0xff
call fcn.00433a2c
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405e70
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*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 - 8]
mov byte [edx + ebx*4 + 2], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x38]
call fcn.00402d20
push edx
push eax
push 0
push 0xff
call fcn.00433a2c
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405e70
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*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 - 8]
mov byte [edx + ebx*4 + 1], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x40]
call fcn.00402d20
push edx
push eax
push 0
push 0xff
call fcn.00433a2c
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405e70
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*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 - 8]
mov byte [edx + ebx*4], al
inc dword [ebp - 0x10]
dec edi
jne 0x5976e7
inc dword [ebp - 0x14]
dec dword [ebp - 0x44]
jne 0x5976b2
jmp 0x597f9b
test ebx, ebx
jl 0x597f9b
inc ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00431978
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.00431978
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x18]
test edi, edi
jl 0x597b15
inc edi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xff00ff
je 0x597a73
xor eax, eax
mov al, byte [ebp - 0x1d]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x22], al
xor eax, eax
mov al, byte [ebp - 0x1e]
xor edx, edx
mov dl, byte [ebp - 0x1f]
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x20]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x21], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x30]
call fcn.00402d20
push edx
push eax
push 0
push 0xff
call fcn.00433a2c
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405e70
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*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 - 8]
mov byte [edx + ebx*4 + 2], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x30]
call fcn.00402d20
push edx
push eax
push 0
push 0xff
call fcn.00433a2c
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405e70
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*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 - 8]
mov byte [edx + ebx*4 + 1], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x30]
call fcn.00402d20
push edx
push eax
push 0
push 0xff
call fcn.00433a2c
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405e70
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*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 - 8]
mov byte [edx + ebx*4], al
jmp 0x597b0c
cmp byte [ebp + 0x14], 0
je 0x597b0c
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 8]
add edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x14]
cmp eax, edx
jle 0x597b0e
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
cmp eax, edx
jle 0x597b15
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x14]
test eax, eax
jl 0x597b15
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, ebx
test eax, eax
jl 0x597b0e
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.00431808
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x50]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
call fcn.0042cca0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0x1c]
mov byte [eax + ebx*4 + 2], dl
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0x1b]
mov byte [eax + ebx*4 + 1], dl
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0x1a]
mov byte [eax + ebx*4], dl
inc ebx
inc esi
dec edi
jne 0x5978db
inc dword [ebp - 0x14]
dec dword [ebp - 0x44]
jne 0x5978a7
jmp 0x597f9b
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x10], 0
jne 0x597d11
test ebx, ebx
jl 0x597f9b
inc ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00431978
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x64]
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.00431978
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x18]
test edi, edi
jl 0x597d00
inc edi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x20], eax
xor eax, eax
mov al, byte [ebp - 0x1e]
xor edx, edx
mov dl, byte [ebp - 0x1f]
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x20]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + esi*4 + 3]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x30]
call fcn.00402d20
push edx
push eax
push 0
push 0xff
call fcn.00433a2c
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405e70
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*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 - 8]
mov byte [edx + ebx*4 + 2], al
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + esi*4 + 3]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x38]
call fcn.00402d20
push edx
push eax
push 0
push 0xff
call fcn.00433a2c
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405e70
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*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 - 8]
mov byte [edx + ebx*4 + 1], al
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + esi*4 + 3]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x40]
call fcn.00402d20
push edx
push eax
push 0
push 0xff
call fcn.00433a2c
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405e70
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*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 - 8]
mov byte [edx + ebx*4], al
inc ebx
inc esi
dec edi
jne 0x597b82
inc dword [ebp - 0x14]
dec dword [ebp - 0x44]
jne 0x597b46
jmp 0x597f9b
test ebx, ebx
jl 0x597f9b
inc ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00431978
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.00431978
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x18]
test edi, edi
jl 0x597f8f
inc edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x20], eax
xor eax, eax
mov al, byte [ebp - 0x1e]
xor edx, edx
mov dl, byte [ebp - 0x1f]
add eax, edx
xor edx, edx
mov dl, 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 0x597ee6
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + esi*4 + 3]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x30]
call fcn.00402d20
push edx
push eax
push 0
push 0xff
call fcn.00433a2c
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405e70
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*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 - 8]
mov byte [edx + ebx*4 + 2], al
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + esi*4 + 3]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x38]
call fcn.00402d20
push edx
push eax
push 0
push 0xff
call fcn.00433a2c
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405e70
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*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 - 8]
mov byte [edx + ebx*4 + 1], al
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + esi*4 + 3]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x40]
call fcn.00402d20
push edx
push eax
push 0
push 0xff
call fcn.00433a2c
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405e70
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*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 - 8]
mov byte [edx + ebx*4], al
jmp 0x597f83
cmp byte [ebp + 0x14], 0
je 0x597f83
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 8]
add edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x14]
cmp eax, edx
jle 0x597f85
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
cmp eax, edx
jle 0x597f8f
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x14]
test eax, eax
jl 0x597f8f
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, ebx
test eax, eax
jl 0x597f85
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.00431808
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x50]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
call fcn.0042cca0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0x1c]
mov byte [eax + ebx*4 + 2], dl
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0x1b]
mov byte [eax + ebx*4 + 1], dl
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0x1a]
mov byte [eax + ebx*4], dl
inc ebx
inc esi
inc dword [ebp - 0x10]
dec edi
jne 0x597d5f
inc dword [ebp - 0x14]
dec dword [ebp - 0x44]
jne 0x597d24
cmp byte [ebp + 8], 0
je 0x5989b2
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 0x48]
dec eax
push eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
sar eax, 1
jns 0x597fc1
adc eax, 0
dec eax
pop edx
call fcn.00433a24
mov ebx, eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
sar eax, 1
jns 0x597fd9
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 0x5989b2
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00431978
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x58]
sub edx, dword [ebp - 0x14]
dec edx
mov eax, dword [ebp + 0x1c]
call fcn.00431978
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x18]
test edi, edi
jl 0x598215
inc edi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xff00ff
je 0x59820c
cmp dword [ebp + 0xc], 0
jne 0x598079
xor eax, eax
mov al, byte [ebp - 0x1d]
mov ecx, 3
xor edx, edx
div ecx
xor edx, edx
mov dl, byte [ebp - 0x1c]
imul edx
mov ecx, 0xff
xor edx, edx
div ecx
xor edx, edx
call fcn.00433ae8
mov byte [ebp - 0x22], al
jmp 0x5980a9
xor eax, eax
mov al, byte [ebp - 0x1d]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x12c
cdq
idiv ecx
xor edx, edx
mov dl, byte [ebp - 0x1c]
imul edx
mov ecx, 0xff
cdq
idiv ecx
xor edx, edx
call fcn.00433ae8
mov byte [ebp - 0x22], al
xor eax, eax
mov al, byte [ebp - 0x1e]
xor edx, edx
mov dl, byte [ebp - 0x1f]
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x20]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x21], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x30]
call fcn.00402d20
push edx
push eax
push 0
push 0xff
call fcn.00433a2c
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405e70
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*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 - 8]
mov byte [edx + ebx*4 + 2], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x38]
call fcn.00402d20
push edx
push eax
push 0
push 0xff
call fcn.00433a2c
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405e70
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*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 - 8]
mov byte [edx + ebx*4 + 1], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x40]
call fcn.00402d20
push edx
push eax
push 0
push 0xff
call fcn.00433a2c
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405e70
push edx
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*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 - 8]
mov byte [edx + ebx*4], al
inc ebx
inc esi
dec edi
jne 0x598033
mov al, byte [ebp - 0x19]
sub byte [ebp - 0x1c], al
inc dword [ebp - 0x14]
dec dword [ebp - 0x44]
jne 0x597ffe
jmp 0x5989b2
cmp dword [ebp + 0xc], 0
je 0x59851c
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x10], 0
jne 0x598363
test ebx, ebx
jl 0x598803
inc ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00431978
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.00431978
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 0x18]
test edi, edi
jl 0x598352
inc edi
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x54]
add ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x64]
add esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x20], eax
xor eax, eax
mov al, byte [ebp - 0x1d]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x22], al
xor edx, edx
mov dl, byte [ebp - 0x1e]
mov eax, dword [ebp - 8]
mov al, byte [eax + ebx*4 + 2]
xor ecx, ecx
mov cl, al
sub edx, ecx
xor ecx, ecx
mov cl, byte [ebp - 0x22]
imul edx, ecx
and eax, 0xff
shl eax, 8
add edx, eax
shr edx, 8
and dl, 0xff
mov eax, dword [ebp - 8]
mov byte [eax + ebx*4 + 2], dl
xor edx, edx
mov dl, byte [ebp - 0x1f]
mov eax, dword [ebp - 8]
mov al, byte [eax + ebx*4 + 1]
xor ecx, ecx
mov cl, al
sub edx, ecx
xor ecx, ecx
mov cl, byte [ebp - 0x22]
imul edx, ecx
and eax, 0xff
shl eax, 8
add edx, eax
shr edx, 8
and dl, 0xff
mov eax, dword [ebp - 8]
mov byte [eax + ebx*4 + 1], dl
xor eax, eax
mov al, byte [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x22]
imul edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx + ebx*4], al
inc dword [ebp - 0x10]
dec edi
jne 0x59828b
inc dword [ebp - 0x14]
dec dword [ebp - 0x44]
jne 0x598256
jmp 0x598803
test ebx, ebx
jl 0x598803
inc ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00431978
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.00431978
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x18]
test edi, edi
jl 0x59850b
inc edi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xff00ff
je 0x598469
xor eax, eax
mov al, byte [ebp - 0x1d]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x22], al
xor eax, eax
mov al, byte [ebp - 0x1e]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4 + 2]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x22]
imul edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4 + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx + ebx*4 + 2], al
xor eax, eax
mov al, byte [ebp - 0x1f]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4 + 1]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x22]
imul edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4 + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx + ebx*4 + 1], al
xor eax, eax
mov al, byte [ebp - 0x20]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x22]
imul edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx + ebx*4], al
jmp 0x598502
cmp byte [ebp + 0x14], 0
je 0x598502
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 8]
add edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x14]
cmp eax, edx
jle 0x598504
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
cmp eax, edx
jle 0x59850b
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x14]
test eax, eax
jl 0x59850b
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, ebx
test eax, eax
jl 0x598504
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.00431808
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x50]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
call fcn.0042cca0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0x1c]
mov byte [eax + ebx*4 + 2], dl
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0x1b]
mov byte [eax + ebx*4 + 1], dl
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0x1a]
mov byte [eax + ebx*4], dl
inc ebx
inc esi
dec edi
jne 0x5983aa
inc dword [ebp - 0x14]
dec dword [ebp - 0x44]
jne 0x598376
jmp 0x598803
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x10], 0
jne 0x59862d
test ebx, ebx
jl 0x598803
inc ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00431978
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x64]
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.00431978
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x18]
test edi, edi
jl 0x59861c
inc edi
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + esi*4 + 2]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4 + 2]
sub eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + esi*4 + 3]
imul edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4 + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx + ebx*4 + 2], al
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + esi*4 + 1]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4 + 1]
sub eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + esi*4 + 3]
imul edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4 + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx + ebx*4 + 1], al
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + esi*4]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4]
sub eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + esi*4 + 3]
imul edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx + ebx*4], al
inc ebx
inc esi
dec edi
jne 0x598578
inc dword [ebp - 0x14]
dec dword [ebp - 0x44]
jne 0x59853c
jmp 0x598803
test ebx, ebx
jl 0x598803
inc ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00431978
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.00431978
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x18]
test edi, edi
jl 0x5987f7
inc edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xff00ff
je 0x59874e
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + esi*4 + 2]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4 + 2]
sub eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + esi*4 + 3]
imul edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4 + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx + ebx*4 + 2], al
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + esi*4 + 1]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4 + 1]
sub eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + esi*4 + 3]
imul edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4 + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx + ebx*4 + 1], al
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + esi*4]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4]
sub eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + esi*4 + 3]
imul edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx + ebx*4], al
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [eax + ebx*4 + 3]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4 + 3]
call fcn.00433ae8
mov edx, dword [ebp - 8]
mov byte [edx + ebx*4 + 3], al
jmp 0x5987eb
cmp byte [ebp + 0x14], 0
je 0x5987eb
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 8]
add edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x14]
cmp eax, edx
jle 0x5987ed
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
cmp eax, edx
jle 0x5987f7
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x14]
test eax, eax
jl 0x5987f7
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, ebx
test eax, eax
jl 0x5987ed
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.00431808
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x50]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
call fcn.0042cca0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0x1c]
mov byte [eax + ebx*4 + 2], dl
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0x1b]
mov byte [eax + ebx*4 + 1], dl
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0x1a]
mov byte [eax + ebx*4], dl
inc ebx
inc esi
inc dword [ebp - 0x10]
dec edi
jne 0x59867b
inc dword [ebp - 0x14]
dec dword [ebp - 0x44]
jne 0x598640
cmp byte [ebp + 8], 0
je 0x5989b2
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 0x48]
dec eax
push eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
sar eax, 1
jns 0x598829
adc eax, 0
dec eax
pop edx
call fcn.00433a24
mov ebx, eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
sar eax, 1
jns 0x598841
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 0x5989b2
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00431978
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x58]
sub edx, dword [ebp - 0x14]
dec edx
mov eax, dword [ebp + 0x1c]
call fcn.00431978
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x18]
test edi, edi
jl 0x5989a0
inc edi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xff00ff
je 0x598997
cmp dword [ebp + 0xc], 0
jne 0x5988e1
xor eax, eax
mov al, byte [ebp - 0x1d]
mov ecx, 3
xor edx, edx
div ecx
xor edx, edx
mov dl, byte [ebp - 0x1c]
imul edx
mov ecx, 0xff
xor edx, edx
div ecx
xor edx, edx
call fcn.00433ae8
mov byte [ebp - 0x22], al
jmp 0x598911
xor eax, eax
mov al, byte [ebp - 0x1d]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x12c
cdq
idiv ecx
xor edx, edx
mov dl, byte [ebp - 0x1c]
imul edx
mov ecx, 0xff
cdq
idiv ecx
xor edx, edx
call fcn.00433ae8
mov byte [ebp - 0x22], al
xor edx, edx
mov dl, byte [ebp - 0x1e]
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx + ebx*4 + 2]
sub edx, ecx
xor eax, eax
mov al, byte [ebp - 0x22]
imul edx, eax
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx + ebx*4 + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov ecx, dword [ebp - 8]
mov byte [ecx + ebx*4 + 2], dl
xor edx, edx
mov dl, byte [ebp - 0x1f]
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx + ebx*4 + 1]
sub edx, ecx
imul edx, eax
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx + ebx*4 + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov ecx, dword [ebp - 8]
mov byte [ecx + ebx*4 + 1], dl
xor edx, edx
mov dl, byte [ebp - 0x20]
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx + ebx*4]
sub edx, ecx
imul edx, eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx*4]
shl eax, 8
add edx, eax
shr edx, 8
and dl, 0xff
mov eax, dword [ebp - 8]
mov byte [eax + ebx*4], dl
inc ebx
inc esi
dec edi
jne 0x59889b
mov al, byte [ebp - 0x19]
sub byte [ebp - 0x1c], al
inc dword [ebp - 0x14]
dec dword [ebp - 0x44]
jne 0x598866
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18