Function at 0x44cb95
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x7a0]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x44cbaa
xor ebp, ebp
jmp 0x44cbb2
mov ebp, dword [esi + 0x144]
add ebp, ecx
mov edi, dword [esp + 0x28]
xor ecx, ecx
mov cx, word [eax + 2]
xor edx, edx
mov eax, dword [edi + 0x20]
xor ebx, ebx
div ecx
xor edx, edx
mov ecx, eax
mov eax, dword [edi + 0x24]
div ecx
mov dword [edi + 0x20], ecx
mov bl, byte [ebp + 1]
cmp eax, ebx
jge 0x44cedf
mov edx, dword [esi + 0x7a0]
xor eax, eax
lea ecx, [ebx + ebx]
mov ax, word [edx + 2]
mov edx, dword [esi + 0x7b8]
cmp ecx, eax
setg al
mov byte [esi + 0xbc6], al
and eax, 0xff
add edx, eax
xor ecx, ecx
mov dword [esi + 0x7b8], edx
mov cl, byte [ebp + 1]
mov eax, dword [edi + 0x20]
imul eax, ecx
cmp eax, 0x1000000
mov dword [edi + 0x20], eax
jae 0x44cc64
mov eax, dword [edi]
mov ecx, dword [edi + 4]
cmp eax, ecx
jb 0x44cc34
mov ecx, edi
call fcn.00409e91
mov byte [esp + 0x28], al
jmp 0x44cc3d
mov dl, byte [eax]
inc eax
mov byte [esp + 0x28], dl
mov dword [edi], eax
mov eax, dword [edi + 0x24]
mov ecx, dword [esp + 0x28]
shl eax, 8
and ecx, 0xff
or eax, ecx
mov ecx, dword [edi + 0x20]
shl ecx, 8
mov dword [edi + 0x24], eax
mov eax, ecx
cmp eax, 0x1000000
mov dword [edi + 0x20], ecx
jb 0x44cc1e
mov edx, 4
mov dword [esi + 0x7a8], ebp
add ebx, edx
mov byte [ebp + 1], bl
mov eax, dword [esi + 0x7a0]
add word [eax + 2], dx
cmp ebx, 0x7c
jle 0x44cf3e
mov ecx, dword [esi + 0x7a0]
xor eax, eax
mov ax, word [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x14], eax
dec eax
test ecx, ecx
mov dword [esp + 0x28], eax
jne 0x44cca6
xor ebp, ebp
jmp 0x44ccae
mov ebp, dword [esi + 0x144]
add ebp, ecx
mov eax, dword [esi + 0x7a8]
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x44cd00
lea ecx, [eax - 6]
mov edx, eax
mov edi, dword [edx]
mov dword [esp + 0x1c], edi
mov edi, eax
mov dx, word [edx + 4]
sub eax, 6
mov word [esp + 0x20], dx
mov edx, ecx
mov ebx, dword [edx]
mov dword [edi], ebx
mov dx, word [edx + 4]
mov word [edi + 4], dx
mov edi, dword [esp + 0x1c]
mov edx, ecx
sub ecx, 6
cmp eax, ebp
mov dword [edx], edi
mov di, word [esp + 0x20]
mov word [edx + 4], di
jne 0x44ccbf
mov edx, 4
mov bl, byte [ebp + 1]
xor edi, edi
add bl, dl
mov byte [ebp + 1], bl
mov ecx, dword [esi + 0x7a0]
xor ebx, ebx
add word [ecx + 2], dx
mov ecx, dword [esi + 0x7a0]
xor edx, edx
mov di, word [ecx + 2]
mov dl, byte [eax + 1]
mov ecx, dword [esi + 0x7b4]
sub edi, edx
test ecx, ecx
setne bl
xor ecx, ecx
mov dword [esp + 0x18], ebx
mov cl, dl
add ecx, ebx
sar ecx, 1
mov byte [eax + 1], cl
mov edx, dword [esi + 0x7a0]
movzx cx, cl
mov word [edx + 2], cx
add eax, 6
xor ecx, ecx
mov cl, byte [eax + 1]
sub edi, ecx
add ecx, ebx
sar ecx, 1
mov byte [eax + 1], cl
mov edx, dword [esi + 0x7a0]
movzx cx, cl
add word [edx + 2], cx
mov dl, byte [eax + 1]
cmp dl, byte [eax - 5]
jbe 0x44cdc3
mov edx, eax
mov ecx, eax
mov ebx, dword [edx]
mov dword [esp + 0x1c], ebx
mov dx, word [edx + 4]
mov word [esp + 0x20], dx
lea edx, [ecx - 6]
mov ebx, ecx
sub ecx, 6
mov ebp, dword [edx]
mov dword [ebx], ebp
mov ebp, dword [esp + 0x10]
mov dx, word [edx + 4]
cmp ecx, ebp
mov word [ebx + 4], dx
je 0x44cdb0
mov dl, byte [esp + 0x1d]
mov bl, byte [ecx - 5]
cmp dl, bl
ja 0x44cd89
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [ecx], edx
mov dx, word [esp + 0x20]
mov word [ecx + 4], dx
mov ecx, dword [esp + 0x28]
dec ecx
mov dword [esp + 0x28], ecx
jne 0x44cd4f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x44ce60
mov ebx, dword [esp + 0x28]
mov cl, byte [eax - 6]
sub eax, 6
inc ebx
test cl, cl
mov dword [esp + 0x28], ebx
je 0x44cdda
mov eax, dword [esi + 0x7a0]
mov ecx, ebx
add edi, ecx
sub word [eax], cx
mov eax, dword [esi + 0x7a0]
cmp word [eax], 1
jne 0x44ce60
mov ecx, ebp
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov al, byte [esp + 0x1d]
mov bx, word [ecx + 4]
mov cl, al
shr cl, 1
sar edi, 1
sub al, cl
cmp edi, 1
jg 0x44ce16
mov edx, dword [esp + 0x14]
mov byte [esp + 0x1d], al
inc edx
xor eax, eax
sar edx, 1
mov ecx, esi
mov al, byte [edx + esi + 0x29]
push eax
push ebp
call fcn.0044b980
mov eax, dword [esi + 0x7a0]
mov ecx, dword [esp + 0x1c]
add eax, 2
pop edi
mov dword [esi + 0x7a8], eax
pop esi
mov dword [eax], ecx
mov word [eax + 4], bx
pop ebp
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esi + 0x7a0]
mov edx, edi
sar edx, 1
sub edi, edx
add word [eax + 2], di
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x7a0]
lea ecx, [eax + 1]
xor eax, eax
mov ax, word [edx]
sar ecx, 1
inc eax
sar eax, 1
cmp ecx, eax
je 0x44cea8
push eax
push ecx
push ebp
mov ecx, esi
call fcn.0044d070
test eax, eax
je 0x44ce9f
sub eax, dword [esi + 0x144]
mov ecx, dword [esi + 0x7a0]
mov dword [ecx + 4], eax
mov edx, dword [esi + 0x7a0]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x44cec7
xor eax, eax
pop edi
mov dword [esi + 0x7a8], eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esi + 0x144]
pop edi
add eax, ecx
mov dword [esi + 0x7a8], eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ecx, dword [esi + 0x7a0]
xor edx, edx
mov byte [esi + 0xbc6], 0
add ebp, 6
mov dx, word [ecx]
mov ecx, edx
xor edx, edx
mov dl, byte [ebp + 1]
dec ecx
add ebx, edx
cmp ebx, eax
jg 0x44cf13
dec ecx
je 0x44cf48
add ebp, 6
xor edx, edx
mov dl, byte [ebp + 1]
add ebx, edx
cmp ebx, eax
jle 0x44cf02
xor eax, eax
mov edx, dword [edi + 0x20]
mov al, byte [ebp + 1]
mov ecx, dword [edi + 0x24]
sub ebx, eax
imul edx, eax
imul ebx, dword [edi + 0x20]
sub ecx, ebx
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], ecx
mov ecx, edi
call fcn.0044d010
push ebp
mov ecx, esi
call fcn.0044d180
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esi + 0x7a8]
xor ecx, ecx
mov cl, byte [eax]
mov eax, dword [esi + 0x7a0]
mov dl, byte [ecx + esi + 0xac4]
xor ecx, ecx
mov byte [esi + 0xbc7], dl
mov cx, word [eax + 2]
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
imul eax, ebx
sub edx, eax
mov eax, dword [edi + 0x20]
sub ecx, ebx
mov ebx, 0x1000000
imul eax, ecx
cmp eax, ebx
mov dword [edi + 0x24], edx
mov dword [edi + 0x20], eax
jae 0x44cfb3
mov ecx, edi
call fcn.00439aa0
mov ecx, dword [edi + 0x24]
and eax, 0xff
shl ecx, 8
or eax, ecx
mov ecx, dword [edi + 0x20]
shl ecx, 8
mov dword [edi + 0x24], eax
mov eax, ecx
cmp eax, ebx
mov dword [edi + 0x20], ecx
jb 0x44cf8d
mov al, byte [esi + 0xbc4]
xor edx, edx
mov dl, byte [ebp]
mov byte [edx + esi + 0x7c4], al
mov ecx, dword [esi + 0x7a0]
xor eax, eax
mov ax, word [ecx]
mov dword [esi + 0x7a8], 0
mov dword [esi + 0x7ac], eax
dec eax
mov cl, byte [esi + 0xbc4]
sub ebp, 6
xor edx, edx
dec eax
mov dl, byte [ebp]
mov byte [edx + esi + 0x7c4], cl
jne 0x44cfe1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4