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

Disassembly:
sub esp, 0x9c
mov eax, dword [0x543fcc]
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 0x498ec9
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 0x498ec9
mov cl, byte [ebp + 0x89]
xor al, al
test cl, cl
mov byte [esp + 0x13], al
jbe 0x498ec9
jmp 0x498d70
cmp di, 0x10
jae 0x498ec9
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 0x498daa
mov eax, 4
jmp 0x498dfe
test al, 0x20
je 0x498db5
mov eax, 5
jmp 0x498dfe
test al, 0x40
je 0x498dc0
mov eax, 6
jmp 0x498dfe
test al, al
jns 0x498dcb
mov eax, 7
jmp 0x498dfe
test ah, 1
je 0x498dd7
mov eax, 8
jmp 0x498dfe
test ah, 2
je 0x498de3
mov eax, 9
jmp 0x498dfe
test ah, 4
je 0x498def
mov eax, 0xa
jmp 0x498dfe
and eax, 0x800
neg eax
sbb eax, eax
and eax, 0xfffffffb
add eax, 0x10
sub eax, 5
cmp eax, 6
ja case.default.0x498e06
jmp dword [eax*4 + 0x498ee0]
movzx eax, cl
movsx ebx, si
lea eax, [eax + eax*4]
add eax, ebx
mov ax, word [esp + eax*2 + 0x48]
jmp 0x498e7a
movzx eax, cl
movsx ebx, si
lea eax, [eax + eax*4]
add eax, ebx
mov ax, word [esp + eax*2 + 0x18]
jmp 0x498e7a
movzx eax, cl
movsx ebx, si
lea eax, [eax + eax*4]
add eax, ebx
mov ax, word [esp + eax*2 + 0x78]
jmp 0x498e7a
movzx eax, cl
movsx ebx, si
lea eax, [eax + eax*4]
add eax, ebx
mov ax, word [esp + eax*2 + 0x30]
jmp 0x498e7a
movzx eax, cl
movsx ebx, si
lea eax, [eax + eax*4]
add eax, ebx
mov ax, word [esp + eax*2 + 0x60]
jmp 0x498e7a
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 0x498eb1
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 0x498d92
mov al, byte [esp + 0x13]
mov cl, byte [ebp + 0x89]
inc al
cmp al, cl
mov byte [esp + 0x13], al
jb 0x498d70
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
call fcn.004eee51
add esp, 0x9c
ret