Function at 0x6371c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x54]
push ebx
push ebp
mov ebp, dword [esp + 0x60]
mov ebx, ecx
movdqu xmm0, xmmword [eax]
push esi
lea esi, [ebp + 4]
mov dword [esp + 0xc], ebx
push dword [ebp + 0xc]
lea ecx, [esp + 0x48]
mov dword [esp + 0x24], esi
push dword [ebp + 8]
movdqu xmmword [esp + 0x4c], xmm0
push dword [esi]
push dword [ebp]
call fcn.0057dca0
test al, al
je 0x63542c
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x50]
jge 0x63542c
mov edx, dword [esp + 0x44]
push edi
mov edi, dword [esp + 0x50]
lea esp, [esp]
mov ecx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x60]
sub ecx, dword [esi]
imul ecx, dword [eax + 0x2c]
mov eax, edx
sub eax, dword [ebp]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x60]
add eax, dword [ecx + 8]
mov dword [esp + 0x34], eax
cmp edx, edi
jge 0x635418
jmp 0x6350e0
xor edi, edi
xorps xmm3, xmm3
xorps xmm4, xmm4
xorps xmm5, xmm5
xorps xmm2, xmm2
movss dword [esp + 0x2c], xmm3
movss dword [esp + 0x28], xmm4
movss dword [esp + 0x20], xmm5
mov dword [esp + 0x30], edi
cmp dword [ebx + 0x30], edi
jle 0x6352ab
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x40], eax
test eax, eax
jle 0x63529d
mov ecx, dword [ebp + 8]
mov eax, edi
sub eax, dword [ebx + 0x44]
add eax, dword [esp + 0x18]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebx + 0x34]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
lea eax, [ecx - 1]
mov dword [esp + 0x64], eax
lea eax, [edx - 1]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x2c]
sub ebx, dword [eax + 0x40]
mov eax, ecx
imul eax, edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
lea eax, [esi + eax*4]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x28], eax
jmp 0x635170
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x38]
mov edx, dword [ebp]
cmp ebx, esi
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x64]
cmovge ecx, eax
mov dword [esp + 0x38], ebx
mov eax, ebp
cmp edx, dword [ecx]
cmovl eax, ecx
cmp dword [esp + 0x20], edi
lea ecx, [esp + 0x1c]
mov edx, dword [eax]
lea eax, [esp + 0x3c]
cmovge eax, ecx
mov ecx, dword [esp + 0x24]
mov esi, ecx
mov ebp, dword [esi]
cmp ebp, dword [eax]
mov ebp, dword [esp + 0x5c]
cmovl ecx, eax
mov esi, dword [esp + 0x64]
inc ebx
mov eax, dword [ebp + 0x2c]
imul eax, dword [ecx]
add eax, dword [ebp + 8]
mov ebp, dword [esp + 0x68]
mov ecx, dword [eax + edx*4]
mov eax, ecx
mov edx, dword [esp + 0x28]
shr eax, 0x18
movss xmm1, dword [edx]
add edx, 4
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [esp + 0x28], edx
addsd xmm0, qword [eax*8 + 0x6f8830]
mov eax, ecx
shr eax, 0x10
and eax, 0xff
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6f8830]
mov eax, ecx
shr eax, 8
and eax, 0xff
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6f8830]
movzx eax, cl
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm4, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
dec dword [esp + 0x2c]
addsd xmm0, qword [eax*8 + 0x6f8830]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm5, xmm0
jne 0x635170
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
movss dword [esp + 0x20], xmm5
movss dword [esp + 0x28], xmm4
movss dword [esp + 0x2c], xmm3
inc edi
mov dword [esp + 0x30], edi
cmp edi, dword [ebx + 0x30]
jl 0x635114
movss xmm0, dword [ebx + 0x38]
sub esp, 8
movss dword [esp + 0x6c], xmm0
mulss xmm0, xmm2
addss xmm0, dword [ebx + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x48], xmm0
fld qword [esp + 0x48]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x48]
movsd xmm0, qword [esp + 0x48]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si ebx, xmm0
test ebx, ebx
jns 0x6352f4
xor ebx, ebx
jmp 0x635302
cmp ebx, 0xff
mov eax, 0xff
cmovg ebx, eax
movss xmm0, dword [esp + 0x64]
sub esp, 8
mulss xmm0, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
addss xmm0, dword [esi + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x48], xmm0
fld qword [esp + 0x48]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x48]
movsd xmm0, qword [esp + 0x48]
xor eax, eax
cvtpd2ps xmm0, xmm0
cvttss2si edi, xmm0
movss xmm0, dword [esp + 0x6c]
mulss xmm0, dword [esp + 0x30]
test edi, edi
cmovs edi, eax
cmp edi, ebx
addss xmm0, dword [esi + 0x3c]
cmovg edi, ebx
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x48], xmm0
fld qword [esp + 0x48]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x48]
movsd xmm0, qword [esp + 0x48]
xor eax, eax
cvtpd2ps xmm0, xmm0
cvttss2si esi, xmm0
movss xmm0, dword [esp + 0x6c]
mulss xmm0, dword [esp + 0x28]
test esi, esi
cmovs esi, eax
mov eax, dword [esp + 0x18]
cmp esi, ebx
cmovg esi, ebx
addss xmm0, dword [eax + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x48], xmm0
fld qword [esp + 0x48]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x48]
movsd xmm0, qword [esp + 0x48]
xor ecx, ecx
cvtpd2ps xmm0, xmm0
add esp, 8
cvttss2si eax, xmm0
test eax, eax
cmovs eax, ecx
mov ecx, dword [esp + 0x34]
cmp eax, ebx
cmovg eax, ebx
shl ebx, 8
or ebx, edi
mov edi, dword [esp + 0x50]
shl ebx, 8
or ebx, esi
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0x14]
mov dword [ecx], ebx
inc eax
mov ebx, dword [esp + 0x10]
add ecx, 4
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
cmp eax, edi
jl 0x6350e0
mov edx, dword [esp + 0x48]
lea esi, [ebp + 4]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x54]
jl 0x6350b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x10
sub esp, 0x48
mov eax, dword [esp + 0x54]
push ebx
push ebp
mov ebp, dword [esp + 0x60]
mov ebx, ecx
movdqu xmm0, xmmword [eax]
push esi
lea esi, [ebp + 4]
mov dword [esp + 0x28], ebx
push dword [ebp + 0xc]
lea ecx, [esp + 0x48]
mov dword [esp + 0x20], esi
push dword [ebp + 8]
movdqu xmmword [esp + 0x4c], xmm0
push dword [esi]
push dword [ebp]
call fcn.0057dca0
test al, al
je 0x635831
mov eax, dword [esp + 0x48]
mov dword [esp + 0x60], eax
cmp eax, dword [esp + 0x50]
jge 0x635831
mov edx, dword [esp + 0x4c]
push edi
mov edi, dword [esp + 0x48]
lea esp, [esp]
mov ecx, eax
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x60]
sub ecx, dword [esi]
imul ecx, dword [eax + 0x2c]
mov eax, edi
sub eax, dword [ebp]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x60]
add eax, dword [ecx + 8]
mov dword [esp + 0x34], eax
cmp edi, edx
jge 0x63581d
jmp 0x6354d0
xor edi, edi
xorps xmm3, xmm3
xorps xmm4, xmm4
xorps xmm2, xmm2
movss dword [esp + 0x28], xmm3
movss dword [esp + 0x24], xmm4
mov dword [esp + 0x30], edi
cmp dword [ebx + 0x30], edi
jle 0x635662
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x40], eax
jmp 0x635500
test eax, eax
jle 0x635654
mov ecx, dword [ebp + 8]
mov eax, edi
sub eax, dword [ebx + 0x44]
add eax, dword [esp + 0x64]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebx + 0x34]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
lea eax, [ecx - 1]
mov dword [esp + 0x14], eax
lea eax, [edx - 1]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x2c]
sub ebx, dword [eax + 0x40]
mov eax, ecx
imul eax, edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
lea eax, [esi + eax*4]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
mov edx, dword [ebp]
cmp ebx, esi
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x14]
cmovge ecx, eax
mov dword [esp + 0x38], ebx
mov eax, ebp
cmp edx, dword [ecx]
cmovl eax, ecx
cmp dword [esp + 0x1c], edi
lea ecx, [esp + 0x18]
mov edx, dword [eax]
lea eax, [esp + 0x3c]
cmovge eax, ecx
mov ecx, dword [esp + 0x20]
mov esi, ecx
mov ebp, dword [esi]
cmp ebp, dword [eax]
mov ebp, dword [esp + 0x5c]
cmovl ecx, eax
mov esi, dword [esp + 0x14]
inc ebx
mov eax, dword [ebp + 0x2c]
imul eax, dword [ecx]
add eax, dword [ebp + 8]
mov ebp, dword [esp + 0x68]
mov ecx, dword [eax + edx*4]
mov eax, ecx
mov edx, dword [esp + 0x24]
shr eax, 0x10
and eax, 0xff
movss xmm1, dword [edx]
add edx, 4
mov dword [esp + 0x24], edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6f8830]
mov eax, ecx
shr eax, 8
and eax, 0xff
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6f8830]
movzx eax, cl
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
dec dword [esp + 0x28]
addsd xmm0, qword [eax*8 + 0x6f8830]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm4, xmm0
jne 0x635552
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
movss dword [esp + 0x24], xmm4
movss dword [esp + 0x28], xmm3
inc edi
mov dword [esp + 0x30], edi
cmp edi, dword [ebx + 0x30]
jl 0x635500
movss xmm0, dword [ebx + 0x38]
sub esp, 8
movss dword [esp + 0x38], xmm0
mulss xmm0, xmm2
addss xmm0, dword [ebx + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x48], xmm0
fld qword [esp + 0x48]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x48]
movsd xmm0, qword [esp + 0x48]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si edi, xmm0
test edi, edi
jns 0x6356b1
mov dword [esp + 0x1c], 0
jmp 0x6356c3
cmp edi, 0xff
mov eax, 0xff
cmovg edi, eax
mov dword [esp + 0x1c], edi
movss xmm0, dword [esp + 0x30]
sub esp, 8
mulss xmm0, dword [esp + 0x30]
addss xmm0, dword [ebx + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x48], xmm0
fld qword [esp + 0x48]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x48]
movsd xmm0, qword [esp + 0x48]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si esi, xmm0
test esi, esi
jns 0x63570f
mov dword [esp + 0x28], 0
jmp 0x635721
cmp esi, 0xff
mov eax, 0xff
cmovg esi, eax
mov dword [esp + 0x28], esi
movss xmm0, dword [esp + 0x30]
sub esp, 8
mulss xmm0, dword [esp + 0x2c]
addss xmm0, dword [ebx + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x48], xmm0
fld qword [esp + 0x48]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x48]
movsd xmm0, qword [esp + 0x48]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si edi, xmm0
test edi, edi
jns 0x635767
xor edi, edi
jmp 0x635775
cmp edi, 0xff
mov eax, 0xff
cmovg edi, eax
mov eax, dword [esp + 0x64]
lea esi, [esp + 0x3c]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x40]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
dec eax
mov dword [esp + 0x40], ecx
cmp ecx, eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebp]
mov ecx, ebp
cmovge edx, esi
push edi
push dword [esp + 0x2c]
cmp eax, dword [edx]
mov eax, dword [ebp + 0xc]
cmovl ecx, edx
dec eax
cmp dword [esp + 0x6c], eax
lea edx, [esp + 0x40]
push dword [esp + 0x24]
mov esi, dword [ecx]
lea ecx, [esp + 0x4c]
cmovge edx, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
cmp eax, dword [edx]
mov eax, dword [esp + 0x68]
cmovl ecx, edx
mov eax, dword [eax + 0x2c]
imul eax, dword [ecx]
lea ecx, [eax + esi*4]
mov esi, dword [esp + 0x68]
mov eax, dword [esi + 8]
mov eax, dword [ecx + eax]
shr eax, 0x18
push eax
call fcn.005c69e0
mov ecx, dword [esp + 0x44]
add esp, 0x10
mov edx, dword [esp + 0x50]
mov dword [ecx], eax
add ecx, 4
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], eax
cmp eax, edx
jl 0x6354d0
mov edi, dword [esp + 0x48]
lea esi, [ebp + 4]
mov eax, dword [esp + 0x64]
inc eax
mov dword [esp + 0x64], eax
cmp eax, dword [esp + 0x54]
jl 0x6354a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x10
sub esp, 0x3c
mov eax, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x30]
movdqu xmm0, xmmword [eax]
push dword [ebx + 0xc]
movdqu xmmword [esp + 0x34], xmm0
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
call fcn.0057dca0
test al, al
je 0x635bc0
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
cmp eax, dword [esp + 0x3c]
jge 0x635bc0
mov edx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
push edi
mov edi, dword [esp + 0x44]
jmp 0x6358a0
mov ecx, eax
mov dword [esp + 0x50], edx
sub ecx, dword [ebx + 4]
mov eax, edx
imul ecx, dword [esi + 0x2c]
sub eax, dword [ebx]
lea eax, [ecx + eax*4]
add eax, dword [esi + 8]
mov dword [esp + 0x38], eax
cmp edx, edi
jge 0x635baa
mov edx, dword [esp + 0x10]
xor edi, edi
xorps xmm3, xmm3
mov dword [esp + 0x18], edi
xorps xmm4, xmm4
movss dword [esp + 0x20], xmm3
xorps xmm5, xmm5
movss dword [esp + 0x28], xmm4
xorps xmm2, xmm2
movss dword [esp + 0x30], xmm5
cmp dword [edx + 0x30], edi
jle 0x635a30
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x5c], eax
jmp 0x635900
test eax, eax
jle 0x635a22
mov eax, dword [esp + 0x10]
mov esi, edi
sub esi, dword [edx + 0x44]
mov ecx, dword [edx + 0x34]
mov edx, dword [esp + 0x50]
sub edx, dword [eax + 0x40]
mov eax, dword [eax + 0x2c]
add esi, dword [esp + 0x14]
imul eax, edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], eax
cmp edx, dword [ebx]
jl 0x635954
cmp edx, dword [ebx + 8]
jge 0x635954
cmp esi, dword [ebx + 4]
jl 0x635954
cmp esi, dword [ebx + 0xc]
jge 0x635954
mov eax, dword [ebp + 0x2c]
imul eax, esi
lea ecx, [eax + edx*4]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + eax]
jmp 0x635956
xor ecx, ecx
movss xmm1, dword [edi]
mov eax, ecx
shr eax, 0x18
add edi, 4
inc edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6f8830]
mov eax, ecx
shr eax, 0x10
and eax, 0xff
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6f8830]
mov eax, ecx
shr eax, 8
and eax, 0xff
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6f8830]
movzx eax, cl
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm4, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
dec dword [esp + 0x58]
addsd xmm0, qword [eax*8 + 0x6f8830]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm5, xmm0
jne 0x635930
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x5c]
movss dword [esp + 0x30], xmm5
movss dword [esp + 0x28], xmm4
movss dword [esp + 0x20], xmm3
inc edi
mov dword [esp + 0x18], edi
cmp edi, dword [edx + 0x30]
jl 0x635900
movss xmm0, dword [edx + 0x38]
sub esp, 8
movss dword [esp + 0x60], xmm0
mulss xmm0, xmm2
addss xmm0, dword [edx + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si esi, xmm0
test esi, esi
jns 0x635a79
xor esi, esi
jmp 0x635a87
cmp esi, 0xff
mov eax, 0xff
cmovg esi, eax
movss xmm0, dword [esp + 0x58]
sub esp, 8
mulss xmm0, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x64], esi
addss xmm0, dword [eax + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm0
fld qword [esp + 0x28]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
xor eax, eax
cvtpd2ps xmm0, xmm0
cvttss2si edi, xmm0
movss xmm0, dword [esp + 0x60]
mulss xmm0, dword [esp + 0x30]
test edi, edi
cmovs edi, eax
mov eax, dword [esp + 0x18]
cmp edi, esi
cmovg edi, esi
addss xmm0, dword [eax + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x30], xmm0
fld qword [esp + 0x30]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x30]
movsd xmm0, qword [esp + 0x30]
xor eax, eax
cvtpd2ps xmm0, xmm0
cvttss2si esi, xmm0
movss xmm0, dword [esp + 0x60]
mulss xmm0, dword [esp + 0x38]
test esi, esi
cmovs esi, eax
mov eax, dword [esp + 0x18]
cmp esi, dword [esp + 0x64]
cmovg esi, dword [esp + 0x64]
addss xmm0, dword [eax + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
xor ecx, ecx
cvtpd2ps xmm0, xmm0
add esp, 8
cvttss2si eax, xmm0
test eax, eax
cmovs eax, ecx
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
cmovg eax, ecx
shl ecx, 8
or ecx, edi
mov edi, dword [esp + 0x44]
shl ecx, 8
or ecx, esi
mov esi, dword [esp + 0x38]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x50]
inc eax
mov dword [esi], ecx
add esi, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x50], eax
cmp eax, edi
jl 0x6358c3
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x48]
jl 0x6358a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x10
sub esp, 0x30
mov eax, dword [esp + 0x3c]
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x24]
movdqu xmm0, xmmword [eax]
push dword [edi + 0xc]
movdqu xmmword [esp + 0x28], xmm0
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call fcn.0057dca0
test al, al
je 0x635f27
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x30]
jge 0x635f27
mov edx, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x48]
jmp 0x635c30
mov ecx, eax
mov dword [esp + 0x50], ebp
sub ecx, dword [edi + 4]
mov eax, ebp
imul ecx, dword [esi + 0x2c]
sub eax, dword [edi]
lea eax, [ecx + eax*4]
add eax, dword [esi + 8]
mov dword [esp + 0x2c], eax
cmp ebp, edx
jge 0x635f11
mov edx, dword [esp + 0x10]
xor eax, eax
xorps xmm3, xmm3
mov dword [esp + 0x18], eax
xorps xmm4, xmm4
movss dword [esp + 0x44], xmm3
xorps xmm2, xmm2
movss dword [esp + 0x24], xmm4
cmp dword [edx + 0x30], eax
jle 0x635da1
mov ecx, dword [edx + 0x2c]
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x635d93
mov ecx, dword [edx + 0x34]
mov esi, eax
sub esi, dword [edx + 0x44]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x50]
add esi, dword [esp + 0x4c]
mov ebp, dword [edi]
sub edx, dword [eax + 0x40]
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], ecx
jmp 0x635cc0
cmp edx, ebp
jl 0x635ce8
cmp edx, dword [edi + 8]
jge 0x635ce8
cmp esi, dword [edi + 4]
jl 0x635ce8
cmp esi, dword [edi + 0xc]
jge 0x635ce8
mov eax, dword [ebx + 0x2c]
imul eax, esi
lea ecx, [eax + edx*4]
mov eax, dword [ebx + 8]
mov ecx, dword [ecx + eax]
mov eax, dword [esp + 0x44]
jmp 0x635cea
xor ecx, ecx
movss xmm1, dword [eax]
inc edx
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6f8830]
mov eax, ecx
shr eax, 8
and eax, 0xff
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6f8830]
movzx eax, cl
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6f8830]
mov eax, dword [esp + 0x44]
add eax, 4
dec dword [esp + 0x20]
mov dword [esp + 0x44], eax
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm4, xmm0
jne 0x635cc0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
movss dword [esp + 0x24], xmm4
movss dword [esp + 0x44], xmm3
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [edx + 0x30]
jl 0x635c82
movss xmm0, dword [edx + 0x38]
sub esp, 8
movss dword [esp + 0x28], xmm0
mulss xmm0, xmm2
addss xmm0, dword [edx + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si ebp, xmm0
test ebp, ebp
jns 0x635dea
xor ebp, ebp
jmp 0x635df8
cmp ebp, 0xff
mov eax, 0xff
cmovg ebp, eax
movss xmm0, dword [esp + 0x20]
sub esp, 8
mulss xmm0, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
addss xmm0, dword [eax + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si esi, xmm0
test esi, esi
jns 0x635e42
xor esi, esi
jmp 0x635e50
cmp esi, 0xff
mov eax, 0xff
cmovg esi, eax
movss xmm0, dword [esp + 0x20]
sub esp, 8
mulss xmm0, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
addss xmm0, dword [eax + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x2c], xmm0
fld qword [esp + 0x2c]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x2c]
movsd xmm0, qword [esp + 0x2c]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si edx, xmm0
test edx, edx
jns 0x635e9a
xor edx, edx
jmp 0x635ea8
cmp edx, 0xff
mov eax, 0xff
cmovg edx, eax
mov ecx, dword [esp + 0x50]
cmp ecx, dword [edi]
jl 0x635ed6
cmp ecx, dword [edi + 8]
jge 0x635ed6
mov eax, dword [esp + 0x4c]
cmp eax, dword [edi + 4]
jl 0x635ed6
cmp eax, dword [edi + 0xc]
jge 0x635ed6
mov eax, dword [ebx + 0x2c]
imul eax, dword [esp + 0x4c]
lea ecx, [eax + ecx*4]
mov eax, dword [ebx + 8]
mov eax, dword [ecx + eax]
jmp 0x635ed8
xor eax, eax
push edx
push esi
shr eax, 0x18
push ebp
push eax
call fcn.005c69e0
mov esi, dword [esp + 0x3c]
add esp, 0x10
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
inc ecx
mov dword [esp + 0x50], ecx
mov dword [esi], eax
add esi, 4
mov dword [esp + 0x2c], esi
cmp ecx, edx
jl 0x635c53
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x3c]
jl 0x635c30
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x30
ret 0x10
sub esp, 0x38
mov eax, dword [esp + 0x44]
push ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x2c]
movdqu xmm0, xmmword [eax]
push dword [ebx + 0xc]
movdqu xmmword [esp + 0x30], xmm0
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
call fcn.0057dca0
test al, al
je 0x636300
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x38]
jge 0x636300
mov edx, dword [esp + 0x2c]
push ebp
push esi
mov esi, dword [esp + 0x3c]
push edi
mov edi, 0xff
jmp 0x635f90
mov ebp, dword [esp + 0x50]
mov ecx, eax
sub ecx, dword [ebx + 4]
mov eax, edx
sub eax, dword [ebx]
imul ecx, dword [ebp + 0x2c]
lea eax, [ecx + eax*4]
add eax, dword [ebp + 8]
mov ebp, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ebp
cmp edx, esi
jge 0x6362ea
lea esp, [esp]
mov edx, dword [esp + 0x10]
xor ecx, ecx
xorps xmm3, xmm3
mov dword [esp + 0x54], ecx
xorps xmm4, xmm4
movss dword [esp + 0x20], xmm3
xorps xmm5, xmm5
movss dword [esp + 0x1c], xmm4
xorps xmm2, xmm2
movss dword [esp + 0x28], xmm5
cmp dword [edx + 0x30], ecx
jle 0x636184
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x24], eax
test eax, eax
jle 0x63616d
mov eax, dword [esp + 0x58]
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
mov esi, dword [edx + 0x34]
mov eax, dword [eax + 8]
mov ebp, dword [edx + 0x40]
sub eax, edi
mov dword [esp + 0x28], eax
neg ebp
mov eax, ecx
mov ecx, dword [esp + 0x58]
sub eax, dword [edx + 0x44]
sub eax, ebx
add eax, dword [esp + 0x18]
mov ecx, dword [ecx + 0xc]
cdq
sub ecx, ebx
idiv ecx
lea ecx, [edx + ebx]
mov edx, dword [esp + 0x24]
mov eax, edx
mov dword [esp + 0x30], ecx
imul eax, dword [esp + 0x54]
mov dword [esp + 0x20], edx
lea eax, [esi + eax*4]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, ebp
sub eax, edi
add eax, dword [esp + 0x14]
cdq
idiv esi
add edx, edi
cmp edx, edi
jge 0x63606e
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 8]
sub eax, edi
add edx, eax
cmp ecx, ebx
jge 0x63607d
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0xc]
sub eax, ebx
add ecx, eax
mov eax, dword [esp + 0x4c]
inc ebp
mov eax, dword [eax + 0x2c]
imul eax, ecx
mov ecx, dword [esp + 0x4c]
add eax, dword [ecx + 8]
mov ecx, dword [eax + edx*4]
mov eax, ecx
mov edx, dword [esp + 0x1c]
shr eax, 0x18
movss xmm1, dword [edx]
add edx, 4
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [esp + 0x1c], edx
addsd xmm0, qword [eax*8 + 0x6f8830]
mov eax, ecx
shr eax, 0x10
and eax, 0xff
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6f8830]
mov eax, ecx
shr eax, 8
and eax, 0xff
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6f8830]
movzx eax, cl
mov ecx, dword [esp + 0x30]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm4, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
dec dword [esp + 0x20]
addsd xmm0, qword [eax*8 + 0x6f8830]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm5, xmm0
jne 0x636052
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x58]
movss dword [esp + 0x28], xmm5
movss dword [esp + 0x1c], xmm4
movss dword [esp + 0x20], xmm3
inc ecx
mov dword [esp + 0x54], ecx
cmp ecx, dword [edx + 0x30]
jl 0x635ff8
mov ebp, dword [esp + 0x14]
mov edi, 0xff
movss xmm0, dword [edx + 0x38]
sub esp, 8
movss dword [esp + 0x5c], xmm0
mulss xmm0, xmm2
addss xmm0, dword [edx + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si ebx, xmm0
test ebx, ebx
jns 0x6361cd
xor ebx, ebx
jmp 0x6361d6
cmp ebx, 0xff
cmovg ebx, edi
movss xmm0, dword [esp + 0x54]
sub esp, 8
mulss xmm0, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
addss xmm0, dword [esi + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
xor eax, eax
cvtpd2ps xmm0, xmm0
cvttss2si edi, xmm0
movss xmm0, dword [esp + 0x5c]
mulss xmm0, dword [esp + 0x24]
test edi, edi
cmovs edi, eax
cmp edi, ebx
addss xmm0, dword [esi + 0x3c]
cmovg edi, ebx
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fstp qword [esp]
call fcn.005515c0
mov ecx, dword [esp + 0x18]
xor eax, eax
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
cvtpd2ps xmm0, xmm0
cvttss2si esi, xmm0
movss xmm0, dword [esp + 0x5c]
mulss xmm0, dword [esp + 0x30]
test esi, esi
cmovs esi, eax
cmp esi, ebx
addss xmm0, dword [ecx + 0x3c]
cmovg esi, ebx
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
xor ecx, ecx
cvtpd2ps xmm0, xmm0
add esp, 8
cvttss2si eax, xmm0
test eax, eax
cmovs eax, ecx
cmp eax, ebx
cmovg eax, ebx
shl ebx, 8
or ebx, edi
inc ebp
shl ebx, 8
mov edi, 0xff
or ebx, esi
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x40]
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0x2c]
mov dword [eax], ebx
add eax, 4
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
cmp ebp, esi
jl 0x635fc0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x44]
jl 0x635f90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x10
sub esp, 0x38
mov eax, dword [esp + 0x44]
push esi
mov esi, ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 8], esi
movdqu xmm0, xmmword [eax]
mov eax, dword [esp + 0x4c]
movdqu xmmword [esp + 0x2c], xmm0
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call fcn.0057dca0
test al, al
je 0x6366ce
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x38]
jge 0x6366ce
mov edx, dword [esp + 0x4c]
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x50]
lea ecx, [ecx]
mov ecx, eax
mov dword [esp + 0x10], ebp
sub ecx, dword [edx + 4]
mov eax, ebp
imul ecx, dword [edi + 0x2c]
sub eax, dword [edx]
lea eax, [ecx + eax*4]
add eax, dword [edi + 8]
mov dword [esp + 0x28], eax
cmp ebp, ebx
jge 0x6366b8
xor ecx, ecx
xorps xmm3, xmm3
xorps xmm4, xmm4
xorps xmm2, xmm2
movss dword [esp + 0x20], xmm3
movss dword [esp + 0x1c], xmm4
mov dword [esp + 0x54], ecx
cmp dword [esi + 0x30], ecx
jle 0x636516
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x24], eax
mov edi, edi
test eax, eax
jle 0x636508
mov eax, dword [edx + 8]
mov edi, dword [edx]
sub eax, edi
mov ecx, dword [esp + 0x14]
mov ebx, dword [edx + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x54]
sub eax, dword [ecx + 0x44]
mov ecx, dword [edx + 0xc]
sub eax, ebx
add eax, dword [esp + 0x18]
sub ecx, ebx
cdq
idiv ecx
mov ebp, dword [esi + 0x40]
mov esi, dword [esi + 0x34]
neg ebp
lea ecx, [edx + ebx]
mov edx, dword [esp + 0x24]
mov eax, edx
mov dword [esp + 0x30], ecx
imul eax, dword [esp + 0x54]
mov dword [esp + 0x20], edx
lea eax, [esi + eax*4]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, ebp
sub eax, edi
add eax, dword [esp + 0x10]
cdq
idiv esi
add edx, edi
cmp edx, edi
jge 0x636434
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 8]
sub eax, edi
add edx, eax
cmp ecx, ebx
jge 0x636443
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0xc]
sub eax, ebx
add ecx, eax
mov eax, dword [esp + 0x4c]
inc ebp
mov eax, dword [eax + 0x2c]
imul eax, ecx
mov ecx, dword [esp + 0x4c]
add eax, dword [ecx + 8]
mov ecx, dword [eax + edx*4]
mov eax, ecx
mov edx, dword [esp + 0x1c]
shr eax, 0x10
and eax, 0xff
movss xmm1, dword [edx]
add edx, 4
mov dword [esp + 0x1c], edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6f8830]
mov eax, ecx
shr eax, 8
and eax, 0xff
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6f8830]
movzx eax, cl
mov ecx, dword [esp + 0x30]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
dec dword [esp + 0x20]
addsd xmm0, qword [eax*8 + 0x6f8830]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm4, xmm0
jne 0x636418
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
movss dword [esp + 0x1c], xmm4
movss dword [esp + 0x20], xmm3
inc ecx
mov dword [esp + 0x54], ecx
cmp ecx, dword [esi + 0x30]
jl 0x6363c0
movss xmm0, dword [esi + 0x38]
sub esp, 8
movss dword [esp + 0x5c], xmm0
mulss xmm0, xmm2
addss xmm0, dword [esi + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
add esp, 8
cvtpd2ps xmm0, xmm0
mov ebx, 0xff
cvttss2si ebp, xmm0
test ebp, ebp
jns 0x636564
xor ebp, ebp
jmp 0x63656d
cmp ebp, 0xff
cmovg ebp, ebx
movss xmm0, dword [esp + 0x54]
sub esp, 8
mulss xmm0, dword [esp + 0x28]
addss xmm0, dword [esi + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si edi, xmm0
test edi, edi
jns 0x6365b3
xor edi, edi
jmp 0x6365bc
cmp edi, 0xff
cmovg edi, ebx
movss xmm0, dword [esp + 0x54]
sub esp, 8
mulss xmm0, dword [esp + 0x24]
addss xmm0, dword [esi + 0x3c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fstp qword [esp]
call fcn.005515c0
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si esi, xmm0
test esi, esi
jns 0x636602
xor esi, esi
jmp 0x63660b
cmp esi, 0xff
cmovg esi, ebx
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [esp + 0x10]
sub ebx, ecx
sub eax, ecx
mov dword [esp + 0x2c], ebx
cdq
idiv ebx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], ecx
lea ebx, [ecx + edx]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
sub eax, edx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x18]
sub eax, edx
cdq
idiv dword [esp + 0x54]
mov eax, dword [ecx + 4]
add edx, eax
cmp ebx, dword [esp + 0x30]
jge 0x636658
add ebx, dword [esp + 0x2c]
cmp edx, eax
jge 0x636660
add edx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
push esi
push edi
push ebp
mov eax, dword [eax + 0x2c]
imul eax, edx
lea ecx, [eax + ebx*4]
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 8]
mov eax, dword [ecx + eax]
shr eax, 0x18
push eax
call fcn.005c69e0
mov ebx, dword [esp + 0x38]
add esp, 0x10
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x14]
mov dword [ebx], eax
add ebx, 4
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x636393
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x44]
jl 0x636370
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x38
ret 0x10
mov eax, dword [ecx + 0x48]
sub eax, 0
je 0x6371eb
dec eax
je 0x6371dc
dec eax
jne 0x6371fa
cmp byte [ecx + 0x4c], al
jne 0x635840
jmp 0x635bd0
cmp byte [ecx + 0x4c], 0
jne 0x635f30
jmp 0x636310
cmp byte [ecx + 0x4c], 0
jne 0x635050
jmp 0x635440
ret 0x10