Function at 0x4640aa
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
xor ebx, ebx
mov eax, dword [ebp]
push edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x4641ba
mov cl, byte [esi + 0xd]
cmp cl, 0xff
jne 0x4640da
mov byte [esp + 0x18], 2
jmp 0x4640fb
cmp cl, 0x78
jae 0x4640f7
mov edi, dword [eax + 0xc]
cmp edi, ebx
je 0x4640f7
test byte [eax], 8
jne 0x4640f7
mov cl, byte [edi + 0xfa]
mov byte [esp + 0x18], cl
jmp 0x4640fb
mov byte [esp + 0x18], bl
mov ecx, dword [esp + 0x18]
and ecx, 0xff
sub ecx, ebx
je 0x4641ae
sub ecx, 2
je 0x464121
dec ecx
jne 0x4641ba
or dword [eax], 5
jmp 0x4641ba
mov edx, dword [eax]
or edx, 3
mov dword [eax], edx
mov eax, dword [esi + 0x50]
mov edi, dword [eax + 8]
mov dl, byte [edi]
and dl, 0x30
cmp dl, 0x30
jne 0x464185
cmp dword [eax + 0x78], ebx
jge 0x464171
mov ecx, dword [edi + 0x18]
mov edx, dword [eax + 0x68]
add ecx, ecx
sub ecx, edx
dec ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0xa0], ecx
mov ecx, dword [eax + 0x6c]
xor ecx, 0xffff
mov dword [eax + 0x6c], ecx
mov dword [eax + 0xa4], ecx
mov ecx, 1
mov dword [eax + 0x78], ecx
mov dword [eax + 0xb0], ecx
mov edx, dword [eax + 0xd4]
mov ecx, dword [eax + 0x68]
add ecx, edx
mov dword [eax + 0x68], ecx
mov dword [eax + 0xa0], ecx
mov eax, dword [esi + 0x50]
push eax
call fcn.004637da
mov ecx, dword [esi + 0x50]
add esp, 4
mov eax, dword [ecx + 0xc]
cmp eax, ebx
je 0x4641ba
mov dl, byte [eax + 4]
and dl, 3
cmp dl, 1
je 0x4641ba
mov eax, dword [ecx]
or al, 4
mov dword [ecx], eax
jmp 0x4641ba
push eax
call fcn.0044fd3e
add esp, 4
mov dword [esi + 0x50], ebx
cmp word [esi + 0x32], bx
je 0x464398
cmp byte [esi + 0xd], 0x78
jae 0x464398
mov edx, dword [esi + 0x50]
mov byte [esi + 0x30], 0xff
cmp edx, ebx
je 0x4641fc
xor eax, eax
lea ecx, [ebp + 0x150c]
cmp dword [ecx], ebx
je 0x4641f2
inc eax
add ecx, 4
cmp eax, 0xc0
jl 0x4641e1
jmp 0x4641fc
mov dword [ebp + eax*4 + 0x150c], edx
mov dword [esi + 0x50], ebx
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x46420c
push eax
call fcn.0044fd3e
add esp, 4
push 0xd8
call fcn.0044debf
add esp, 4
cmp eax, ebx
mov dword [esi + 0x50], eax
je 0x464398
mov dword [eax], ebx
mov eax, dword [esi + 0x50]
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], esi
xor eax, eax
mov ax, word [esi + 0x32]
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0xb4]
lea edx, [eax + edx*8 - 0x28]
mov eax, dword [esi + 0x50]
mov dword [eax + 8], edx
mov al, byte [ecx + 0x10]
test al, 4
je 0x464275
xor eax, eax
mov al, byte [esi + 0xc]
lea edx, [eax + eax*4]
shl edx, 3
sub edx, eax
mov eax, dword [ecx + 0xb0]
shl edx, 4
lea ecx, [edx + eax - 0x270]
mov edx, dword [esi + 0x50]
mov dword [edx + 0xc], ecx
jmp 0x46427b
mov eax, dword [esi + 0x50]
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 0x50]
push ebx
push ebx
push ebx
mov ecx, dword [eax + 0xc]
mov dword [eax + 0x10], ecx
mov edx, dword [esi + 0x50]
mov ax, word [esi + 0x32]
mov word [edx + 0x14], ax
mov ecx, dword [esi + 0x50]
mov dl, byte [esi + 0xc]
mov byte [ecx + 0x16], dl
mov eax, dword [esi + 0x50]
mov cl, byte [esi + 0xa]
mov byte [eax + 0x17], cl
mov edx, dword [esi + 0x50]
mov al, byte [esi + 0x34]
mov byte [edx + 0x1c], al
mov ecx, dword [esi + 0x50]
mov byte [ecx + 0x1d], 0x7f
mov edx, dword [esi + 0x50]
mov byte [edx + 0x1e], bl
mov eax, dword [esi + 0x50]
mov word [eax + 0x20], 0x7f00
mov ecx, dword [esi + 0x50]
mov byte [ecx + 0x22], bl
mov edx, dword [esi + 0x50]
mov byte [edx + 0x23], bl
mov eax, dword [esi + 0x50]
mov byte [eax + 0x24], bl
mov ecx, dword [esi + 0x50]
mov byte [ecx + 0x25], bl
mov edx, dword [esi + 0x50]
mov byte [edx + 0x26], bl
mov eax, dword [esi + 0x50]
mov byte [eax + 0x27], bl
mov ecx, dword [esi + 0x50]
mov byte [ecx + 0x28], bl
mov edx, dword [esi + 0x50]
mov byte [edx + 0x29], bl
mov eax, dword [esi + 0x50]
mov byte [eax + 0x2a], bl
mov ecx, dword [esi + 0x50]
mov dword [ecx + 0x2c], ebx
mov edx, dword [esi + 0x50]
mov dword [edx + 0x30], ebx
mov eax, dword [esi + 0x50]
mov dword [eax + 0x38], ebx
mov ecx, dword [esi + 0x50]
or eax, 0xffffffff
mov dword [ecx + 0x3c], eax
mov edx, dword [esi + 0x50]
mov dword [edx + 0x40], ebx
mov ecx, dword [esi + 0x50]
mov dword [ecx + 0x44], eax
mov edx, dword [esi + 0x50]
mov dword [edx + 0x48], ebx
mov ecx, dword [esi + 0x50]
mov dword [ecx + 0x4c], eax
mov edx, dword [esi + 0x50]
mov dword [edx + 0x50], 0x400
mov eax, dword [esi + 0x50]
add eax, 0x54
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x50]
mov dword [eax + 0x5c], ebx
add eax, 0x5c
mov dword [eax + 4], ebx
mov esi, dword [esi + 0x50]
mov eax, dword [esi + 8]
lea edx, [esi + 0x64]
mov ecx, dword [eax + 0x20]
push ecx
push edx
call fcn.004675aa
mov eax, dword [esi + 8]
push ebx
push ebx
push ebx
mov ecx, dword [eax + 0x24]
lea edx, [esi + 0x9c]
push ecx
push edx
call fcn.004675aa
mov edx, dword [esi]
push esi
and edx, 0xfffffff7
mov dword [esi + 0x80], esi
mov dword [esi + 0xb8], esi
mov dword [esi + 0xd4], ebx
mov dword [esi], edx
call fcn.004637da
add esp, 0x2c
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret