Function at 0x4e1020
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
mov dword [ebp - 0x28], esi
call dword [eax + 0x74]
mov ecx, dword [ebp + 8]
push 0
push 0x650954
push 0x650938
push 0
push ecx
call fcn.005e2de2
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4e23aa
mov eax, dword [edi + 0x28]
test eax, eax
push ebx
mov dword [ebp - 0x20], eax
jne 0x4e19f4
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x74]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x74]
mov ecx, edi
mov dword [ebp - 0x5c], eax
call fcn.00486c90
mov esi, dword [ebp + 0x10]
fld qword [esi]
sub esp, 8
fstp qword [esp]
mov dword [ebp - 0x10], eax
call fcn.005e1c70
call fcn.005e0b1c
fld qword [esi + 8]
mov edi, eax
fstp qword [esp]
mov dword [ebp - 0x18], edi
call fcn.005e1c70
call fcn.005e0b1c
fild dword [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 0x14], ebx
fsubr qword [esi]
fadd qword [esi + 0x10]
fstp qword [esp]
call fcn.005e1e70
call fcn.005e0b1c
fild dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
fsubr qword [esi + 8]
fadd qword [esi + 0x18]
fstp qword [esp]
call fcn.005e1e70
add esp, 8
call fcn.005e0b1c
test edi, edi
mov dword [ebp - 4], eax
jge 0x4e10ef
xor edi, edi
mov dword [ebp - 0x18], edi
test ebx, ebx
jge 0x4e10f8
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx + 4]
add edx, edi
cmp edx, ecx
jle 0x4e110c
sub ecx, edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
lea edx, [eax + ebx]
cmp edx, ecx
jle 0x4e1120
sub ecx, ebx
mov eax, ecx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x4e23a9
test eax, eax
jle 0x4e23a9
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
add ebx, 4
mov edi, ebx
imul edi, dword [ebp - 4]
add eax, 4
shl edi, 4
push edi
mov dword [ebp + 8], ebx
mov dword [ebp - 0x54], eax
call fcn.005d02a6
mov edx, eax
mov ecx, edi
mov edi, edx
mov dword [ebp - 8], edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1c], ecx
add esp, 4
fild dword [ebp - 0x1c]
fcom qword [esi + 0x10]
fnstsw ax
test ah, 0x41
jp 0x4e14e2
fdiv qword [esi + 0x10]
mov eax, dword [ebp - 0xc]
test eax, eax
mov dword [ebp - 0x20], 0
fild dword [ebp - 0x18]
fsub qword [esi]
fmul st(1)
fadd qword [0x611680]
jle 0x4e139d
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
lea edi, [ecx + eax*4]
mov dword [ebp - 0x18], edi
fild dword [ebp - 0x20]
fmul st(2)
fadd st(1)
fld st(0)
fadd st(3)
fld st(1)
call fcn.005e0b1c
fld st(0)
mov esi, eax
call fcn.005e0b1c
cmp esi, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], edi
jne 0x4e1281
mov edx, dword [ebp - 8]
fstp st(0)
fstp st(0)
shl esi, 4
fld st(1)
add esi, edx
fmul qword [0x612be8]
call fcn.005e0b1c
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x4e137c
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
shl edx, 4
add edx, 0xfffffff4
mov dword [ebp - 0x1c], edx
lea edx, [ecx*4]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 4]
jmp 0x4e1230
mov ecx, dword [edi]
mov ebx, ecx
and ebx, 0xff
imul ebx, eax
add dword [esi], ebx
movzx ebx, ch
imul ebx, eax
add dword [esi + 4], ebx
add esi, 4
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
imul ebx, eax
add dword [esi + 4], ebx
mov dword [ebp - 0x34], ecx
shr ecx, 0x18
imul ecx, eax
add esi, 4
mov ebx, dword [esi + 4]
add esi, 4
add ebx, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi], ebx
mov ebx, dword [ebp - 0x2c]
add esi, ecx
add edi, ebx
dec edx
jne 0x4e1230
jmp 0x4e137c
fild dword [ebp - 0x34]
fld st(0)
fsub st(3)
fmul qword [0x612be8]
call fcn.005e0b1c
fxch st(1)
fsub st(1)
mov ebx, eax
fmul qword [0x612be8]
call fcn.005e0b1c
fstp st(0)
mov ecx, dword [ebp - 8]
fstp st(0)
shl esi, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
add esi, ecx
test eax, eax
mov ecx, esi
jle 0x4e137c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
shl eax, 4
add eax, 0xffffffe4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], edx
mov esi, dword [edi]
mov edx, dword [ecx]
mov edi, esi
and edi, 0xff
mov eax, edi
imul eax, ebx
add edx, eax
mov dword [ecx], edx
mov edx, esi
shr edx, 8
and edx, 0xff
mov eax, edx
imul eax, ebx
add dword [ecx + 4], eax
add ecx, 4
mov dword [ebp - 0x34], esi
shr esi, 0x10
and esi, 0xff
mov eax, esi
imul eax, ebx
add dword [ecx + 4], eax
mov eax, dword [ebp - 0x34]
add ecx, 4
shr eax, 0x18
mov dword [ebp - 0x34], eax
imul eax, ebx
add dword [ecx + 4], eax
mov eax, dword [ebp - 0x2c]
imul edi, eax
imul edx, eax
imul esi, eax
add ecx, 4
add dword [ecx + 4], edi
add ecx, 4
mov edi, dword [ecx + 4]
add ecx, 4
add edi, edx
mov edx, dword [ebp - 0x34]
mov dword [ecx], edi
imul edx, eax
mov edi, dword [ecx + 4]
mov eax, dword [ebp - 0x10]
add ecx, 4
add edi, esi
mov esi, dword [ebp - 0x3c]
mov dword [ecx], edi
mov edi, dword [ecx + 4]
add ecx, 4
add edi, edx
mov dword [ecx], edi
mov edi, dword [ebp - 0x24]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x1c]
add ecx, esi
dec eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], eax
jne 0x4e12d2
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
inc eax
add edi, 4
cmp eax, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edi
jl 0x4e11c2
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
fstp st(0)
mov edi, dword [ebp - 0x54]
fstp st(0)
imul edi, ebx
shl edi, 4
push edi
call fcn.005d02a6
mov edx, eax
mov ecx, edi
mov edi, edx
mov dword [ebp - 0xc], edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x24], ecx
add esp, 4
fild dword [ebp - 0x24]
fcom qword [esi + 0x18]
fnstsw ax
test ah, 0x41
jp 0x4e1726
fdiv qword [esi + 0x18]
mov eax, dword [ebp - 4]
test eax, eax
mov dword [ebp + 0x10], 0
fstp qword [ebp - 0x50]
fild dword [ebp - 0x14]
fsub qword [esi + 8]
fmul qword [ebp - 0x50]
fadd qword [0x611680]
fstp qword [ebp - 0x40]
jle 0x4e1889
mov ecx, dword [ebp - 8]
shl ebx, 4
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x20], ecx
lea esp, [esp]
fild dword [ebp + 0x10]
sub esp, 8
fmul qword [ebp - 0x50]
fadd qword [ebp - 0x40]
fst qword [ebp - 0x38]
fld qword [ebp - 0x50]
fadd st(1)
fstp qword [ebp - 0x48]
fstp qword [esp]
call fcn.005e1c70
call fcn.005e0b1c
fld qword [ebp - 0x48]
fstp qword [esp]
mov edi, eax
call fcn.005e1c70
add esp, 8
call fcn.005e0b1c
cmp edi, eax
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
jne 0x4e1638
mov ebx, dword [ebp + 8]
fld qword [ebp - 0x50]
mov edx, dword [ebp - 0xc]
fmul qword [0x612be0]
imul edi, ebx
shl edi, 4
add edi, edx
call fcn.005e0b1c
test ebx, ebx
jle 0x4e1701
mov ecx, ebx
lea ecx, [ecx]
mov edx, dword [esi]
mov ebx, dword [edi]
imul edx, eax
add ebx, edx
mov dword [edi], ebx
mov edx, dword [esi + 4]
mov ebx, dword [edi + 4]
imul edx, eax
add esi, 4
add edi, 4
add ebx, edx
mov dword [edi], ebx
mov edx, dword [esi + 4]
mov ebx, dword [edi + 4]
imul edx, eax
add esi, 4
add edi, 4
add ebx, edx
mov dword [edi], ebx
mov edx, dword [esi + 4]
mov ebx, dword [edi + 4]
imul edx, eax
add esi, 4
add edi, 4
add ebx, edx
mov dword [edi], ebx
add esi, 4
add edi, 4
dec ecx
jne 0x4e1490
jmp 0x4e1701
fstp st(0)
dec ecx
fld qword [esi + 0x10]
mov dword [ebp - 0x3c], ecx
fsub qword [0x611680]
lea eax, [ebx - 1]
cmp eax, 1
fild dword [ebp - 0x3c]
mov dword [ebp - 0x18], 1
fdivp st(1)
jle 0x4e139f
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
add esi, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], esi
lea esp, [esp]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
dec ecx
mov dword [ebp - 0x3c], ecx
fild dword [ebp - 0x3c]
fmul st(1)
fadd qword [edx]
fld st(0)
call fcn.005e0b1c
mov ebx, eax
mov dword [ebp - 0x3c], ebx
fild dword [ebp - 0x3c]
fsubr st(1)
fsubr qword [0x611680]
fmul qword [0x612be8]
call fcn.005e0b1c
fstp st(0)
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
add ecx, ebx
mov edi, 0x101
lea ecx, [edx + ecx*4]
mov edx, dword [ebp - 4]
sub edi, eax
test edx, edx
mov dword [ebp - 0x20], edi
jle 0x4e1611
mov edx, dword [ebp + 8]
shl edx, 4
add edx, 0xfffffff4
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov edx, dword [ecx]
add ecx, 4
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ecx]
mov ebx, ecx
and ebx, 0xff
imul ebx, edi
mov edi, edx
and edi, 0xff
imul edi, eax
add ebx, edi
mov dword [esi], ebx
movzx edi, ch
imul edi, dword [ebp - 0x20]
movzx ebx, dh
imul ebx, eax
add edi, ebx
mov ebx, edx
mov dword [esi + 4], edi
mov dword [ebp - 0x3c], ecx
movzx edi, byte [ebp - 0x3a]
imul edi, dword [ebp - 0x20]
add esi, 4
shr ebx, 0x10
movzx ebx, bl
imul ebx, eax
mov dword [ebp - 0x44], edx
add esi, 4
add edi, ebx
shr ecx, 0x18
mov dword [esi], edi
mov edi, dword [ebp - 0x20]
shr edx, 0x18
imul ecx, edi
imul edx, eax
add ecx, edx
mov edx, dword [ebp - 0x10]
add esi, 4
mov dword [esi], ecx
add esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*4 - 4]
add ecx, edx
dec dword [ebp - 0xc]
jne 0x4e1587
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
inc ecx
add esi, 0x10
dec eax
cmp ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], esi
jl 0x4e1520
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
jmp 0x4e139f
fild dword [ebp - 0x2c]
fld qword [ebp - 0x38]
fsubr st(1)
fmul qword [0x612be0]
call fcn.005e0b1c
fld qword [ebp - 0x48]
fsub st(1)
mov ebx, eax
fmul qword [0x612be0]
call fcn.005e0b1c
fstp st(0)
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
imul edi, edx
shl edi, 4
add edi, ecx
mov ecx, edi
mov edi, dword [ebp - 0x2c]
imul edi, edx
mov edx, dword [ebp - 0xc]
shl edi, 4
add edi, edx
mov edx, edi
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4e1701
mov dword [ebp - 0x2c], edi
lea ecx, [ecx]
mov edi, dword [esi]
imul edi, ebx
add dword [ecx], edi
mov edi, dword [esi]
imul edi, eax
add dword [edx], edi
mov edi, dword [esi + 4]
imul edi, ebx
add dword [ecx + 4], edi
mov edi, dword [esi + 4]
add esi, 4
imul edi, eax
add dword [edx + 4], edi
mov edi, dword [esi + 4]
add ecx, 4
imul edi, ebx
add dword [ecx + 4], edi
mov edi, dword [esi + 4]
add edx, 4
imul edi, eax
add dword [edx + 4], edi
add esi, 4
mov edi, dword [esi + 4]
add ecx, 4
imul edi, ebx
add dword [ecx + 4], edi
mov edi, dword [esi + 4]
add edx, 4
imul edi, eax
add dword [edx + 4], edi
add esi, 4
mov edi, dword [ebp - 0x2c]
add ecx, 4
add edx, 4
add ecx, 4
add esi, 4
add edx, 4
dec edi
mov dword [ebp - 0x2c], edi
jne 0x4e1690
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x10]
add edx, ecx
mov ecx, dword [ebp - 4]
inc eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x20], edx
jl 0x4e1420
mov ebx, dword [ebp + 8]
jmp 0x4e1889
fstp st(0)
lea edx, [ecx - 1]
fld qword [esi + 0x18]
mov dword [ebp - 0x54], edx
fsub qword [0x611680]
inc ecx
cmp ecx, 1
fild dword [ebp - 0x54]
mov dword [ebp - 0x20], 1
fdivp st(1)
jle 0x4e1887
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
dec eax
shl ebx, 4
lea edi, [ebx + ecx + 0x10]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], edi
mov edx, dword [ebp + 0x10]
fld qword [edx + 8]
fld st(0)
call fcn.005e0b1c
mov dword [ebp - 0x54], eax
fild dword [ebp - 0x54]
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x54], eax
fsubp st(1)
fild dword [ebp - 0x54]
fmul st(2)
faddp st(1)
fld st(0)
call fcn.005e0b1c
mov ebx, eax
mov dword [ebp - 0x54], ebx
fild dword [ebp - 0x54]
fsubr st(1)
fsubr qword [0x611680]
fmul qword [0x612be0]
call fcn.005e0b1c
fstp st(0)
mov edx, dword [ebp - 8]
mov ecx, ebx
imul ecx, dword [ebp + 8]
mov esi, 0x100
sub esi, eax
inc ecx
shl ecx, 4
add ecx, edx
cmp ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
jne 0x4e17cd
mov edx, ecx
jmp 0x4e17dd
lea edx, [ebx + 1]
imul edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
inc edx
shl edx, 4
add edx, ebx
mov ebx, dword [ebp + 8]
dec ebx
cmp ebx, 1
jle 0x4e1863
dec ebx
mov dword [ebp - 0x2c], ebx
jmp 0x4e17f3
mov eax, dword [ebp - 0x18]
mov ebx, dword [ecx]
imul ebx, eax
mov eax, dword [edx]
imul eax, esi
add ebx, eax
mov dword [edi], ebx
mov eax, dword [ecx + 4]
imul eax, dword [ebp - 0x18]
mov ebx, dword [edx + 4]
add edx, 4
imul ebx, esi
add ecx, 4
add eax, ebx
mov dword [edi + 4], eax
mov eax, dword [ecx + 4]
mov ebx, dword [edx + 4]
imul eax, dword [ebp - 0x18]
add edi, 4
imul ebx, esi
add edx, 4
add ecx, 4
add eax, ebx
mov dword [edi + 4], eax
mov eax, dword [ecx + 4]
mov ebx, dword [edx + 4]
imul eax, dword [ebp - 0x18]
add edi, 4
imul ebx, esi
add edx, 4
add ecx, 4
add edi, 4
add eax, ebx
mov dword [edi], eax
mov eax, dword [ebp - 0x2c]
add edi, 4
add edx, 4
add ecx, 4
dec eax
mov dword [ebp - 0x2c], eax
jne 0x4e17f0
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
inc eax
add edi, ebx
inc edx
cmp eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edi
jl 0x4e1764
mov ebx, dword [ebp + 8]
fstp st(0)
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
xor edx, edx
test ecx, ecx
mov dword [ebp - 0x24], edx
jle 0x4e19ec
mov ecx, dword [ebp - 0xc]
shl ebx, 4
lea eax, [ebx + ecx + 0x18]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], eax
lea esp, [esp]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov esi, dword [ebp - 0x28]
mov edi, dword [ecx]
add eax, edx
imul eax, dword [esi + 4]
mov esi, dword [ebp - 0x5c]
add eax, edi
lea eax, [esi + eax*4]
mov esi, dword [ecx + 8]
test esi, esi
mov dword [ebp + 8], eax
mov dword [ebp - 0x2c], 0
jle 0x4e19d2
mov ecx, dword [ebp - 0x20]
mov dword [ebp + 0x10], ecx
movzx ebx, word [ecx + 6]
test ebx, ebx
movzx edx, word [ecx - 6]
mov dword [ebp - 0x54], edx
je 0x4e19ab
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x18
mov esi, 0xff
sub esi, edi
imul esi, ebx
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov esi, edx
mov eax, ebx
imul eax, eax, 0xff
shr esi, 0x1f
add esi, edx
add esi, edi
add edi, ebx
cdq
idiv edi
mov edx, dword [ebp + 0x10]
movzx ebx, word [edx + 2]
mov edx, ecx
and edx, 0xff0000
mov edi, 0x100
shl esi, 0x18
sub edi, eax
imul ebx, eax
imul edx, edi
shr edx, 8
and edx, 0xff0000
and ebx, 0xffffff00
shl ebx, 8
add ebx, edx
mov edx, ecx
and edx, 0xff
imul edx, edi
mov dword [ebp - 0x4c], edi
mov edi, eax
imul edi, dword [ebp - 0x54]
movzx edx, dh
sar edi, 8
add edx, edi
or ebx, edx
mov edx, dword [ebp + 0x10]
movzx edx, word [edx - 2]
and ecx, 0xff00
imul eax, edx
imul ecx, dword [ebp - 0x4c]
shr ecx, 8
and ecx, 0xff00
and eax, 0xffffff00
add ecx, eax
mov eax, dword [ebp + 8]
or ebx, ecx
mov ecx, dword [ebp + 0x10]
or ebx, esi
mov dword [eax], ebx
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 8]
add eax, 4
inc edx
add ecx, 0x10
cmp edx, edi
mov dword [ebp + 8], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp + 0x10], ecx
jl 0x4e18e4
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
inc edx
add esi, ebx
cmp edx, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], esi
jl 0x4e18b0
mov ecx, dword [ebp - 0xc]
jmp 0x4e238f
mov eax, dword [edi + 0x2c]
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 0x2c], eax
call dword [edx + 0x74]
mov ecx, edi
mov dword [ebp - 0x3c], eax
call fcn.00486c90
mov esi, dword [ebp + 0x10]
fld qword [esi]
sub esp, 8
fstp qword [esp]
mov dword [ebp - 0xc], eax
call fcn.005e1c70
call fcn.005e0b1c
fld qword [esi + 8]
mov edi, eax
fstp qword [esp]
mov dword [ebp - 0x14], edi
call fcn.005e1c70
call fcn.005e0b1c
fild dword [ebp - 0x14]
mov ebx, eax
mov dword [ebp - 0x18], ebx
fsubr qword [esi]
fadd qword [esi + 0x10]
fstp qword [esp]
call fcn.005e1e70
call fcn.005e0b1c
fild dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
fsubr qword [esi + 8]
fadd qword [esi + 0x18]
fstp qword [esp]
call fcn.005e1e70
add esp, 8
call fcn.005e0b1c
test edi, edi
mov dword [ebp - 4], eax
jge 0x4e1a7a
xor edi, edi
mov dword [ebp - 0x14], edi
test ebx, ebx
jge 0x4e1a83
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
mov ecx, dword [edx + 4]
add esi, edi
cmp esi, ecx
jle 0x4e1a97
sub ecx, edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [edx + 8]
lea edx, [eax + ebx]
cmp edx, ecx
jle 0x4e1aa8
sub ecx, ebx
mov eax, ecx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jle 0x4e23a9
test eax, eax
jle 0x4e23a9
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 8]
mov esi, dword [eax + 0xc]
add ebx, 4
mov edi, ebx
imul edi, dword [ebp - 4]
shl edi, 4
add esi, 4
push edi
mov dword [ebp + 8], ebx
mov dword [ebp - 0x34], esi
call fcn.005d02a6
mov edx, eax
mov ecx, edi
mov edi, edx
mov dword [ebp - 8], edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [ebp + 0x10]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1c], ecx
add esp, 4
fild dword [ebp - 0x1c]
fcom qword [edx + 0x10]
fnstsw ax
test ah, 0x41
mov eax, edx
jp 0x4e1e82
fdiv qword [eax + 0x10]
mov dword [ebp - 0x1c], 0
fild dword [ebp - 0x14]
fsub qword [eax]
mov eax, dword [ebp - 0x10]
test eax, eax
fmul st(1)
fadd qword [0x611680]
jle 0x4e1d3a
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
add eax, ecx
mov dword [ebp - 0x5c], eax
mov edi, edi
fild dword [ebp - 0x1c]
fmul st(2)
fadd st(1)
fld st(0)
fadd st(3)
fld st(1)
call fcn.005e0b1c
fld st(0)
mov esi, eax
call fcn.005e0b1c
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x5c]
add edx, ecx
cmp esi, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x14], edx
jne 0x4e1c11
mov edx, dword [ebp - 8]
fstp st(0)
fstp st(0)
shl esi, 4
fld st(1)
add esi, edx
fmul qword [0x612be8]
call fcn.005e0b1c
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x4e1d22
mov edx, dword [ebp + 8]
shl edx, 4
add edx, 0xfffffff4
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x14]
mov edi, ecx
movzx ecx, byte [edx]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebx + ecx*4]
mov ebx, ecx
and ebx, 0xff
imul ebx, eax
add dword [esi], ebx
movzx ebx, ch
imul ebx, eax
add dword [esi + 4], ebx
add esi, 4
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
imul ebx, eax
add dword [esi + 4], ebx
mov dword [ebp - 0x54], ecx
shr ecx, 0x18
imul ecx, eax
add esi, 4
mov ebx, dword [esi + 4]
add esi, 4
add ebx, ecx
mov ecx, dword [ebp - 0x24]
mov dword [esi], ebx
mov ebx, dword [ebp - 0xc]
add esi, ecx
add edx, ebx
dec edi
jne 0x4e1bb6
mov dword [ebp - 0x14], edx
jmp 0x4e1d22
fild dword [ebp - 0x54]
fld st(0)
fsub st(3)
fmul qword [0x612be8]
call fcn.005e0b1c
fxch st(1)
fsub st(1)
mov ebx, eax
fmul qword [0x612be8]
call fcn.005e0b1c
fstp st(0)
mov ecx, dword [ebp - 8]
fstp st(0)
shl esi, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
add esi, ecx
test eax, eax
mov ecx, esi
jle 0x4e1d22
mov edx, dword [ebp + 8]
shl edx, 4
add edx, 0xffffffe4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], edx
movzx edx, byte [eax]
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + edx*4]
mov esi, dword [ecx]
mov eax, edi
and eax, 0xff
mov edx, ebx
imul edx, eax
add esi, edx
mov dword [ecx], esi
mov esi, dword [ecx + 4]
mov edx, edi
mov dword [ebp - 0x54], eax
shr edx, 8
and edx, 0xff
add ecx, 4
mov eax, ebx
imul eax, edx
add esi, eax
mov dword [ecx], esi
mov esi, edi
shr esi, 0x10
and esi, 0xff
mov eax, ebx
imul eax, esi
add dword [ecx + 4], eax
shr edi, 0x18
add ecx, 4
mov eax, ebx
imul eax, edi
mov dword [ebp - 0x4c], edi
mov edi, dword [ecx + 4]
add edi, eax
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x54]
add ecx, 4
mov dword [ecx], edi
mov edi, dword [ecx + 4]
add ecx, 4
add edi, eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx], edi
mov edi, eax
imul edi, edx
mov edx, dword [ecx + 4]
add ecx, 4
add edx, edi
mov dword [ecx], edx
mov edi, dword [ecx + 4]
mov edx, eax
imul eax, dword [ebp - 0x4c]
imul edx, esi
mov esi, dword [ebp - 0xc]
add ecx, 4
add edi, edx
mov dword [ecx], edi
mov edx, dword [ecx + 4]
mov edi, dword [ebp - 0x44]
add ecx, 4
add edx, eax
mov eax, dword [ebp - 0x14]
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
add eax, esi
add ecx, edi
dec edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], edx
jne 0x4e1c62
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
inc eax
cmp eax, ecx
mov dword [ebp - 0x1c], eax
jl 0x4e1b50
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x34]
fstp st(0)
imul esi, ebx
fstp st(0)
shl esi, 4
push esi
call fcn.005d02a6
mov edx, eax
xor eax, eax
mov ecx, esi
shr ecx, 2
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
add esp, 4
mov dword [ebp - 0x14], edx
fild dword [ebp - 0x24]
fcom qword [eax + 0x18]
fnstsw ax
test ah, 0x41
mov eax, dword [ebp + 0x10]
jp 0x4e20c6
fdiv qword [eax + 0x18]
mov dword [ebp + 0x10], 0
fstp qword [ebp - 0x58]
fild dword [ebp - 0x18]
fsub qword [eax + 8]
mov eax, dword [ebp - 4]
test eax, eax
fmul qword [ebp - 0x58]
fadd qword [0x611680]
fstp qword [ebp - 0x48]
jle 0x4e2227
mov ecx, dword [ebp - 8]
shl ebx, 4
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x24], ecx
lea ebx, [ebx]
fild dword [ebp + 0x10]
sub esp, 8
fmul qword [ebp - 0x58]
fadd qword [ebp - 0x48]
fst qword [ebp - 0x30]
fld qword [ebp - 0x58]
fadd st(1)
fstp qword [ebp - 0x50]
fstp qword [esp]
call fcn.005e1c70
call fcn.005e0b1c
fld qword [ebp - 0x50]
fstp qword [esp]
mov edi, eax
call fcn.005e1c70
add esp, 8
call fcn.005e0b1c
cmp edi, eax
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
jne 0x4e1fd6
mov ebx, dword [ebp + 8]
fld qword [ebp - 0x58]
mov edx, dword [ebp - 0x14]
fmul qword [0x612be0]
imul edi, ebx
shl edi, 4
add edi, edx
call fcn.005e0b1c
test ebx, ebx
jle 0x4e20a1
mov ecx, ebx
lea ecx, [ecx]
mov edx, dword [esi]
mov ebx, dword [edi]
imul edx, eax
add ebx, edx
mov dword [edi], ebx
mov edx, dword [esi + 4]
mov ebx, dword [edi + 4]
imul edx, eax
add esi, 4
add edi, 4
add ebx, edx
mov dword [edi], ebx
mov edx, dword [esi + 4]
mov ebx, dword [edi + 4]
imul edx, eax
add esi, 4
add edi, 4
add ebx, edx
mov dword [edi], ebx
mov edx, dword [esi + 4]
mov ebx, dword [edi + 4]
imul edx, eax
add esi, 4
add edi, 4
add ebx, edx
mov dword [edi], ebx
add esi, 4
add edi, 4
dec ecx
jne 0x4e1e30
jmp 0x4e20a1
fstp st(0)
dec ecx
fld qword [eax + 0x10]
mov dword [ebp - 0x5c], ecx
fsub qword [0x611680]
lea eax, [ebx - 1]
cmp eax, 1
fild dword [ebp - 0x5c]
mov dword [ebp - 0x14], 1
fdivp st(1)
jle 0x4e1d3c
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 8]
add eax, ecx
add esi, 0x10
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x10], esi
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
dec edx
mov dword [ebp - 0x5c], edx
fild dword [ebp - 0x5c]
fmul st(1)
fadd qword [eax]
fld st(0)
call fcn.005e0b1c
mov ebx, eax
mov dword [ebp - 0x5c], ebx
fild dword [ebp - 0x5c]
fsubr st(1)
fsubr qword [0x611680]
fmul qword [0x612be8]
call fcn.005e0b1c
fstp st(0)
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 4]
mov edi, 0x101
sub edi, eax
add ecx, ebx
test edx, edx
mov dword [ebp - 0x1c], edi
jle 0x4e1faf
mov edx, dword [ebp + 8]
shl edx, 4
add edx, 0xfffffff4
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
movzx edx, byte [ecx]
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebx + edx*4]
inc ecx
mov dword [ebp - 0x44], ecx
movzx ecx, byte [ecx]
mov ecx, dword [ebx + ecx*4]
mov ebx, ecx
and ebx, 0xff
imul ebx, edi
mov edi, edx
and edi, 0xff
imul edi, eax
add ebx, edi
mov dword [esi], ebx
movzx edi, ch
imul edi, dword [ebp - 0x1c]
movzx ebx, dh
imul ebx, eax
add edi, ebx
mov ebx, edx
mov dword [esi + 4], edi
mov dword [ebp - 0x5c], ecx
movzx edi, byte [ebp - 0x5a]
imul edi, dword [ebp - 0x1c]
add esi, 4
shr ebx, 0x10
movzx ebx, bl
imul ebx, eax
add esi, 4
mov dword [ebp - 0x4c], edx
add edi, ebx
shr ecx, 0x18
mov dword [esi], edi
mov edi, dword [ebp - 0x1c]
shr edx, 0x18
imul ecx, edi
imul edx, eax
add ecx, edx
mov edx, dword [ebp - 0xc]
add esi, 4
mov dword [esi], ecx
add esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x44]
dec edx
add ecx, edx
dec dword [ebp - 0x2c]
jne 0x4e1f22
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
inc ecx
add esi, 0x10
dec eax
cmp ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esi
jl 0x4e1ec1
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x34]
jmp 0x4e1d3c
fild dword [ebp - 0x34]
fld qword [ebp - 0x30]
fsubr st(1)
fmul qword [0x612be0]
call fcn.005e0b1c
fld qword [ebp - 0x50]
fsub st(1)
mov ebx, eax
fmul qword [0x612be0]
call fcn.005e0b1c
fstp st(0)
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
imul edi, edx
shl edi, 4
add edi, ecx
mov ecx, edi
mov edi, dword [ebp - 0x34]
imul edi, edx
mov edx, dword [ebp - 0x14]
shl edi, 4
add edi, edx
mov edx, edi
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4e20a1
mov dword [ebp - 0x34], edi
jmp 0x4e2030
mov edi, dword [esi]
imul edi, ebx
add dword [ecx], edi
mov edi, dword [esi]
imul edi, eax
add dword [edx], edi
mov edi, dword [esi + 4]
imul edi, ebx
add dword [ecx + 4], edi
mov edi, dword [esi + 4]
add esi, 4
imul edi, eax
add dword [edx + 4], edi
mov edi, dword [esi + 4]
add ecx, 4
imul edi, ebx
add dword [ecx + 4], edi
mov edi, dword [esi + 4]
add edx, 4
imul edi, eax
add dword [edx + 4], edi
add esi, 4
mov edi, dword [esi + 4]
add ecx, 4
imul edi, ebx
add dword [ecx + 4], edi
mov edi, dword [esi + 4]
add edx, 4
imul edi, eax
add dword [edx + 4], edi
add esi, 4
mov edi, dword [ebp - 0x34]
add ecx, 4
add edx, 4
add ecx, 4
add esi, 4
add edx, 4
dec edi
mov dword [ebp - 0x34], edi
jne 0x4e2030
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x10]
add edx, ecx
mov ecx, dword [ebp - 4]
inc eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x24], edx
jl 0x4e1dc0
mov ebx, dword [ebp + 8]
jmp 0x4e2227
fstp st(0)
mov dword [ebp - 0x1c], 1
fld qword [eax + 0x18]
lea eax, [ecx - 1]
fsub qword [0x611680]
mov dword [ebp - 0x5c], eax
fild dword [ebp - 0x5c]
inc ecx
cmp ecx, 1
fdivp st(1)
jle 0x4e2225
mov ecx, dword [ebp - 4]
dec ecx
mov eax, ebx
shl eax, 4
mov dword [ebp - 0x18], eax
lea eax, [edx + eax + 0x10]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 0x10]
fld qword [edx + 8]
mov esi, eax
fld st(0)
call fcn.005e0b1c
mov dword [ebp - 0x5c], eax
fild dword [ebp - 0x5c]
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x5c], eax
fsubp st(1)
fild dword [ebp - 0x5c]
fmul st(2)
faddp st(1)
fld st(0)
call fcn.005e0b1c
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fsubr st(1)
fsubr qword [0x611680]
fmul qword [0x612be0]
call fcn.005e0b1c
fstp st(0)
mov edx, dword [ebp - 8]
mov edi, 0x100
sub edi, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov ecx, eax
imul ecx, ebx
inc ecx
shl ecx, 4
add ecx, edx
cmp eax, dword [ebp - 0x54]
jne 0x4e216e
mov edx, ecx
jmp 0x4e217e
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
inc edx
imul edx, ebx
inc edx
shl edx, 4
add edx, eax
lea eax, [ebx - 1]
cmp eax, 1
jle 0x4e2204
dec eax
mov dword [ebp - 0x34], eax
mov edi, edi
mov eax, dword [ecx]
imul eax, dword [ebp - 0x20]
mov ebx, dword [edx]
imul ebx, edi
add eax, ebx
mov dword [esi], eax
mov eax, dword [ecx + 4]
imul eax, dword [ebp - 0x20]
mov ebx, dword [edx + 4]
add edx, 4
imul ebx, edi
add ecx, 4
add eax, ebx
mov dword [esi + 4], eax
mov eax, dword [ecx + 4]
mov ebx, dword [edx + 4]
imul eax, dword [ebp - 0x20]
add esi, 4
imul ebx, edi
add edx, 4
add ecx, 4
add eax, ebx
mov dword [esi + 4], eax
mov eax, dword [ecx + 4]
mov ebx, dword [edx + 4]
imul eax, dword [ebp - 0x20]
add esi, 4
imul ebx, edi
add edx, 4
add ecx, 4
add esi, 4
add eax, ebx
mov dword [esi], eax
mov eax, dword [ebp - 0x34]
add esi, 4
add edx, 4
add ecx, 4
dec eax
mov dword [ebp - 0x34], eax
jne 0x4e2190
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
add eax, edx
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0xc]
inc ecx
inc edx
cmp ecx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x2c], eax
jl 0x4e2103
fstp st(0)
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
xor edx, edx
test ecx, ecx
mov dword [ebp - 0x2c], edx
jle 0x4e238c
mov ecx, dword [ebp - 0x14]
shl ebx, 4
lea eax, [ecx + ebx + 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], eax
lea ebx, [ebx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov esi, dword [ebp - 0x28]
mov edi, dword [ecx]
add eax, edx
imul eax, dword [esi + 4]
mov esi, dword [ebp - 0x3c]
add eax, edi
lea eax, [esi + eax*4]
mov esi, dword [ecx + 8]
test esi, esi
mov dword [ebp + 8], eax
mov dword [ebp - 0x34], 0
jle 0x4e2372
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 0x10], ecx
movzx ebx, word [ecx + 6]
test ebx, ebx
movzx edx, word [ecx - 6]
mov dword [ebp - 0x5c], edx
je 0x4e234b
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x18
mov esi, 0xff
sub esi, edi
imul esi, ebx
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov esi, edx
mov eax, ebx
imul eax, eax, 0xff
shr esi, 0x1f
add esi, edx
add esi, edi
add edi, ebx
cdq
idiv edi
mov edx, dword [ebp + 0x10]
movzx ebx, word [edx + 2]
mov edx, ecx
and edx, 0xff0000
mov edi, 0x100
shl esi, 0x18
sub edi, eax
imul ebx, eax
imul edx, edi
shr edx, 8
and edx, 0xff0000
and ebx, 0xffffff00
shl ebx, 8
add ebx, edx
mov edx, ecx
and edx, 0xff
imul edx, edi
mov dword [ebp - 0x54], edi
mov edi, eax
imul edi, dword [ebp - 0x5c]
movzx edx, dh
sar edi, 8
add edx, edi
or ebx, edx
mov edx, dword [ebp + 0x10]
movzx edx, word [edx - 2]
and ecx, 0xff00
imul eax, edx
imul ecx, dword [ebp - 0x54]
shr ecx, 8
and ecx, 0xff00
and eax, 0xffffff00
add ecx, eax
mov eax, dword [ebp + 8]
or ebx, ecx
mov ecx, dword [ebp + 0x10]
or ebx, esi
mov dword [eax], ebx
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 8]
add eax, 4
inc edx
add ecx, 0x10
cmp edx, edi
mov dword [ebp + 8], eax
mov dword [ebp - 0x34], edx
mov dword [ebp + 0x10], ecx
jl 0x4e2284
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
inc edx
add esi, ebx
cmp edx, ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], esi
jl 0x4e2250
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.005e05ca
mov edx, dword [ebp - 8]
push edx
call fcn.005e05ca
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
add esp, 8
call dword [eax + 0x5c]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14