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

Disassembly:
sub esp, 0x9c
mov eax, dword [0x721bb0]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0xa8], eax
mov eax, 0x44
mov word [esp + 0x52], di
mov word [esp + 0x54], di
mov word [esp + 0x56], di
mov word [esp + 0x58], di
mov word [esp + 0x5a], di
mov word [esp + 0x24], di
mov word [esp + 0x26], di
mov word [esp + 0x28], di
mov word [esp + 0x2a], di
mov word [esp + 0x84], di
mov word [esp + 0x86], di
mov word [esp + 0x88], di
mov word [esp + 0x8a], di
mov edi, 0x32
mov esi, 0x18
mov edx, 0x19
mov ecx, 0x1a
mov word [esp + 0x20], ax
mov word [esp + 0x80], ax
mov word [esp + 0x38], ax
mov word [esp + 0x3a], di
mov word [esp + 0x68], ax
mov eax, dword [esp + 0xb0]
mov word [esp + 0x6a], di
xor edi, edi
cmp eax, edi
mov ebx, 0x16
mov ebp, 0x17
mov word [esp + 0x48], 0x23
mov word [esp + 0x4a], bx
mov word [esp + 0x4c], bp
mov word [esp + 0x4e], 0x1e
mov word [esp + 0x50], 0x15
mov word [esp + 0x18], 0x11
mov word [esp + 0x1a], si
mov word [esp + 0x1c], dx
mov word [esp + 0x1e], cx
mov word [esp + 0x22], 0x12
mov word [esp + 0x78], 0x21
mov word [esp + 0x7a], si
mov word [esp + 0x7c], dx
mov word [esp + 0x7e], cx
mov word [esp + 0x82], 0x22
mov word [esp + 0x30], 0x31
mov word [esp + 0x32], si
mov word [esp + 0x34], dx
mov word [esp + 0x36], cx
mov word [esp + 0x3c], 0
mov word [esp + 0x3e], 0
mov word [esp + 0x40], 0
mov word [esp + 0x42], 0
mov word [esp + 0x60], 0x5d
mov word [esp + 0x62], 0x28
mov word [esp + 0x64], 0x29
mov word [esp + 0x66], cx
mov word [esp + 0x6c], di
mov word [esp + 0x6e], di
mov word [esp + 0x70], di
mov word [esp + 0x72], di
mov word [esp + 0x90], bx
mov word [esp + 0x92], si
mov word [esp + 0x94], dx
mov word [esp + 0x96], 0x1b
mov word [esp + 0x98], bp
mov word [esp + 0x9a], di
mov word [esp + 0x9c], di
mov word [esp + 0x9e], di
mov word [esp + 0xa0], di
mov word [esp + 0xa2], di
je 0x578759
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x28]
and edx, 1
dec dl
neg dl
sbb edx, edx
not edx
and edx, eax
mov ebp, edx
je 0x578759
mov cl, byte [ebp + 0x89]
xor al, al
test cl, cl
mov byte [esp + 0x13], al
jbe 0x578759
jmp 0x578600
cmp di, 0x10
jae 0x578759
movzx eax, al
movzx eax, byte [eax + ebp + 0x24]
dec eax
cdq
mov ecx, 5
idiv ecx
xor cl, cl
mov esi, edx
lea edx, [eax + 1]
mov eax, dword [ebp + 4]
mov eax, dword [eax + 0x28]
test al, 0x10
mov word [esp + 0x14], 0
je 0x57863a
mov eax, 4
jmp 0x57868e
test al, 0x20
je 0x578645
mov eax, 5
jmp 0x57868e
test al, 0x40
je 0x578650
mov eax, 6
jmp 0x57868e
test al, al
jns 0x57865b
mov eax, 7
jmp 0x57868e
test ah, 1
je 0x578667
mov eax, 8
jmp 0x57868e
test ah, 2
je 0x578673
mov eax, 9
jmp 0x57868e
test ah, 4
je 0x57867f
mov eax, 0xa
jmp 0x57868e
and eax, 0x800
neg eax
sbb eax, eax
and eax, 0xfffffffb
add eax, 0x10
sub eax, 5
cmp eax, 6
ja case.default.0x578696
jmp dword [eax*4 + 0x578770]
movzx eax, cl
movsx ebx, si
lea eax, [eax + eax*4]
add eax, ebx
mov ax, word [esp + eax*2 + 0x48]
jmp 0x57870a
movzx eax, cl
movsx ebx, si
lea eax, [eax + eax*4]
add eax, ebx
mov ax, word [esp + eax*2 + 0x18]
jmp 0x57870a
movzx eax, cl
movsx ebx, si
lea eax, [eax + eax*4]
add eax, ebx
mov ax, word [esp + eax*2 + 0x78]
jmp 0x57870a
movzx eax, cl
movsx ebx, si
lea eax, [eax + eax*4]
add eax, ebx
mov ax, word [esp + eax*2 + 0x30]
jmp 0x57870a
movzx eax, cl
movsx ebx, si
lea eax, [eax + eax*4]
add eax, ebx
mov ax, word [esp + eax*2 + 0x60]
jmp 0x57870a
movzx eax, cl
movsx ebx, si
lea eax, [eax + eax*4]
add eax, ebx
mov ax, word [esp + eax*2 + 0x90]
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x14]
test eax, 0xfff0
je 0x578741
and eax, 0xfff0
xor ebx, ebx
imul eax, edx
mov bl, byte [esp + 0x14]
and ebx, 0xf
xor eax, ebx
movzx ebx, di
inc edi
inc cl
cmp cl, 2
mov word [ebp + ebx*2 + 0x2c], ax
jb 0x578622
mov al, byte [esp + 0x13]
mov cl, byte [ebp + 0x89]
inc al
cmp al, cl
mov byte [esp + 0x13], al
jb 0x578600
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00692fc7
add esp, 0x9c
ret