Function at 0x4380d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [0x4461ac]
mov edi, 0xffffffff
test eax, eax
je 0x4384b2
mov edx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x50]
mov ecx, dword [0x4461b0]
add ecx, 8
nop
nop
nop
nop
nop
nop
cmp dword [ecx - 8], 0x542c2d52
je 0x438114
add ecx, 0xc
dec eax
jne 0x438100
jmp 0x4384b2
mov dword [esp + 0x20], edx
mov byte [esp + 0x1c], 0
mov dword [esp + 0x18], 0x900000c2
mov dword [esp + 0x14], 0xd2ff0000
mov dword [esp + 0x10], 0xba00
mov dword [esp + 0xc], 0xb8
lea esi, [esp + 0x1c]
mov eax, dword [ecx]
mov dword [esp + 0xd], eax
mov eax, dword [0x4461b4]
mov dword [esp + 0x12], eax
mov word [esp + 0x19], 0x18
mov dword [esp + 4], 0
mov dword [esp + 0x2c], 0x10
lea eax, [esp + 0x2c]
lea ebx, [esp + 4]
push 0x40
push 0x3000
push eax
push 0
push ebx
push 0xffffffffffffffff
call dword [0x4461b8]
mov eax, dword [esp + 4]
lea edx, [esp + 0xc]
mov edi, eax
mov ecx, 4
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
add eax, 0x10
xor ecx, ecx
mov edi, eax
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 1
push dword [esp + 0x5c]
push dword [esp + 0x5c]
call dword [esp + 0x1c]
mov edi, eax
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push 0x8000
push eax
push ebx
push 0xffffffffffffffff
call dword [0x4461bc]
cmp edi, 0xc0000023
jne 0x4384b2
lea eax, [esp + 0xc]
mov dword [esp], eax
lea esi, [esp + 0x1c]
push dword [esp + 0x24]
call fcn.00432f20
add esp, 4
mov ecx, dword [0x4461ac]
mov edi, 0xffffffff
test ecx, ecx
je 0x4384a9
mov edx, dword [esp + 0x24]
mov dword [esp + 8], edx
mov edx, dword [0x4461b0]
add edx, 8
cmp dword [edx - 8], 0x542c2d52
je 0x438234
add edx, 0xc
dec ecx
jne 0x438220
jmp 0x4384a9
mov byte [esp + 0x1c], 0
mov dword [esp + 0x18], 0x900000c2
mov dword [esp + 0x14], 0xd2ff0000
mov dword [esp + 0x10], 0xba00
mov dword [esp + 0xc], 0xb8
mov ecx, dword [edx]
mov dword [esp + 0xd], ecx
mov ecx, dword [0x4461b4]
mov dword [esp + 0x12], ecx
mov word [esp + 0x19], 0x18
mov dword [esp + 4], 0
mov dword [esp + 0x2c], 0x10
push 0x40
push 0x3000
lea ecx, [esp + 0x34]
push ecx
push 0
push ebx
push 0xffffffffffffffff
mov ebx, eax
call dword [0x4461b8]
mov eax, dword [esp + 4]
mov edi, eax
mov ecx, 4
mov edx, dword [esp]
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
add eax, 0x10
xor ecx, ecx
mov edi, eax
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
lea eax, [esp + 0x24]
push eax
push dword [esp + 0xc]
mov dword [esp + 8], ebx
push ebx
push 1
push dword [esp + 0x5c]
push dword [esp + 0x5c]
call dword [esp + 0x1c]
mov edi, eax
mov dword [esp + 0x28], 0
push 0x8000
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0xc]
push eax
push 0xffffffffffffffff
call dword [0x4461bc]
test edi, edi
js 0x4384a6
mov dword [esp + 8], edi
mov edi, dword [esp + 0x54]
test edi, edi
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x60]
je 0x4383ff
test ebp, ebp
je 0x4383f5
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
shr eax, 1
mov ebx, dword [edi]
cmp ebx, eax
jb 0x438334
mov ebx, eax
test ebx, ebx
je 0x43837b
mov eax, dword [esp]
add eax, 0x14
mov ecx, ebx
and ecx, 3
je 0x438381
mov dword [esp + 0x30], ebx
xor esi, esi
movzx edi, word [eax]
xor edx, edx
test di, di
setne dl
lea eax, [eax + edx*2]
mov word [ebp], di
add ebp, 2
inc esi
cmp ecx, esi
jne 0x43834b
mov ebx, dword [esp + 0x30]
mov ecx, ebx
sub ecx, esi
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
jmp 0x438383
mov ebx, dword [esp + 0x60]
jmp 0x4383ef
mov ecx, ebx
cmp ebx, 4
mov ebx, dword [esp + 0x60]
jb 0x4383ef
movzx edx, word [eax]
xor ebx, ebx
test dx, dx
setne bl
lea esi, [eax + ebx*2]
mov word [ebp], dx
movzx eax, word [eax + ebx*2]
xor edx, edx
test ax, ax
setne dl
lea edi, [esi + edx*2]
mov word [ebp + 2], ax
movzx eax, word [esi + edx*2]
xor edx, edx
test ax, ax
setne dl
lea esi, [edi + edx*2]
mov word [ebp + 4], ax
movzx edx, word [edi + edx*2]
xor eax, eax
test dx, dx
setne al
mov word [ebp + 6], dx
add ebp, 8
lea eax, [esi + eax*2]
add ecx, 0xfffffffc
jne 0x43838c
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
mov word [ebp], 0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
shr eax, 1
mov dword [edi], eax
test esi, esi
je 0x43840b
mov eax, dword [esp]
mov eax, dword [eax + 4]
mov dword [esi], eax
test ebx, ebx
je 0x4384a2
test edx, edx
je 0x438494
mov ebp, ebx
mov eax, dword [ebx]
mov edx, dword [esp]
mov ecx, dword [edx + 0xc]
cmp eax, ecx
jb 0x438427
mov eax, ecx
mov esi, dword [edx + 8]
add esi, edx
mov ecx, eax
shr ecx, 2
mov edx, eax
and edx, 0xfffffffc
mov edi, dword [esp + 0x5c]
add dword [esp + 0x20], edx
add edx, esi
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov esi, eax
and esi, 3
mov ecx, esi
shr ecx, 1
mov ebx, edx
mov edi, dword [esp + 0x20]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov edi, dword [esp + 0x20]
mov ecx, esi
xor ecx, 0xfffffffe
or esi, 1
and esi, ecx
mov ebx, ebp
je 0x438494
and eax, 2
movzx ecx, byte [edx + eax]
mov byte [edi + eax], cl
cmp esi, 1
je 0x438494
movzx ecx, byte [edx + eax + 1]
mov byte [edi + eax + 1], cl
cmp esi, 2
je 0x438494
movzx ecx, byte [edx + eax + 2]
mov byte [edi + eax + 2], cl
mov eax, dword [esp]
mov ecx, dword [eax + 0xc]
mov dword [ebx], ecx
mov edi, dword [esp + 8]
jmp 0x4384a9
mov edi, dword [esp + 8]
mov eax, dword [esp]
push eax
call fcn.00432fd0
add esp, 4
mov eax, edi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret