Function at 0x4b4760
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 0x4b4870
mov cl, byte [esi + 0xd]
cmp cl, 0xff
jne 0x4b4790
mov byte [esp + 0x18], 2
jmp 0x4b47b1
cmp cl, 0x78
jae 0x4b47ad
mov edi, dword [eax + 0xc]
cmp edi, ebx
je 0x4b47ad
test byte [eax], 8
jne 0x4b47ad
mov cl, byte [edi + 0xfa]
mov byte [esp + 0x18], cl
jmp 0x4b47b1
mov byte [esp + 0x18], bl
mov ecx, dword [esp + 0x18]
and ecx, 0xff
sub ecx, ebx
je 0x4b4864
sub ecx, 2
je 0x4b47d7
dec ecx
jne 0x4b4870
or dword [eax], 5
jmp 0x4b4870
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 0x4b483b
cmp dword [eax + 0x78], ebx
jge 0x4b4827
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.004b3e90
mov ecx, dword [esi + 0x50]
add esp, 4
mov eax, dword [ecx + 0xc]
cmp eax, ebx
je 0x4b4870
mov dl, byte [eax + 4]
and dl, 3
cmp dl, 1
je 0x4b4870
mov eax, dword [ecx]
or al, 4
mov dword [ecx], eax
jmp 0x4b4870
push eax
call fcn.004bc8dd
add esp, 4
mov dword [esi + 0x50], ebx
cmp word [esi + 0x32], bx
je 0x4b4a4e
cmp byte [esi + 0xd], 0x78
jae 0x4b4a4e
mov edx, dword [esi + 0x50]
mov byte [esi + 0x30], 0xff
cmp edx, ebx
je 0x4b48b2
xor eax, eax
lea ecx, [ebp + 0x150c]
cmp dword [ecx], ebx
je 0x4b48a8
inc eax
add ecx, 4
cmp eax, 0xc0
jl 0x4b4897
jmp 0x4b48b2
mov dword [ebp + eax*4 + 0x150c], edx
mov dword [esi + 0x50], ebx
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x4b48c2
push eax
call fcn.004bc8dd
add esp, 4
push 0xd8
call fcn.004bc474
add esp, 4
cmp eax, ebx
mov dword [esi + 0x50], eax
je 0x4b4a4e
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 0x4b492b
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 0x4b4931
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.004b7c40
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.004b7c40
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.004b3e90
add esp, 0x2c
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret