Function at 0x43ca80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov dword [esp + 0x10], 0x68696e6f
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x43cafc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0x52]
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add eax, 0x4286352
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xc2
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x43cac0
mov eax, dword [esp + 0x10]
mov edi, dword [0x4489d0]
test edi, edi
je 0x43cb61
xor ecx, ecx
mov edx, dword [0x4489d4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xc58dd7f7
je 0x43cb3a
mov esi, ecx
and esi, 1
xor ecx, 1
lea ecx, [ecx + esi*2]
cmp ecx, edi
jb 0x43cb20
jmp 0x43cb61
mov edx, dword [edx + ecx*8 + 4]
cmp edx, eax
je 0x43cb61
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 2
push dword [ebp + 8]
push 5
push dword [0x4489d8]
push edx
call fcn.004398f0
add esp, 0x20
cmp eax, 0xc0000023
jne 0x43cd90
push dword [esp + 8]
call fcn.00437c50
add esp, 4
mov edi, eax
mov ebx, dword [esp + 8]
mov dword [esp + 0x10], 0x68696e6f
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 8
ja 0x43cbee
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x10]
lea esi, [ecx + 0x52]
and esi, edx
add ecx, edx
add esi, esi
sub ecx, esi
add ecx, 0x4286352
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0xc2
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 9
jb 0x43cbb0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4489d0]
test ecx, ecx
je 0x43cc45
xor edx, edx
mov esi, dword [0x4489d4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xc58dd7f7
je 0x43cc20
inc edx
cmp ecx, edx
jne 0x43cc10
jmp 0x43cc45
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43cc45
lea edx, [esp + 8]
push edx
push ebx
push edi
push 2
push dword [ebp + 8]
push 5
push dword [0x4489d8]
push ecx
call fcn.004398f0
add esp, 0x20
mov dword [esp + 0x28], eax
test eax, eax
js 0x43cd83
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43cd38
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x43cd31
mov eax, dword [edi + 0x10]
shr eax, 1
mov esi, dword [ecx]
cmp esi, eax
jb 0x43cc77
mov esi, eax
test esi, esi
mov dword [esp + 0x24], edi
je 0x43cd28
mov ecx, esi
mov esi, edi
add esi, 0x2c
mov eax, ecx
and eax, 3
mov dword [esp + 0x20], ecx
mov edi, ecx
je 0x43ccb8
nop
nop
nop
nop
nop
nop
nop
nop
nop
dec edi
movzx ecx, word [esi]
xor ebx, ebx
test cx, cx
setne bl
lea esi, [esi + ebx*2]
mov word [edx], cx
add edx, 2
dec eax
jne 0x43cca0
cmp dword [esp + 0x20], 4
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
jb 0x43cd28
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, word [esi]
xor ecx, ecx
test ax, ax
setne cl
mov word [edx], ax
lea eax, [esi + ecx*2]
movzx ecx, word [esi + ecx*2]
xor ebx, ebx
test cx, cx
setne bl
mov word [edx + 2], cx
lea ecx, [eax + ebx*2]
movzx eax, word [eax + ebx*2]
xor ebx, ebx
test ax, ax
setne bl
mov word [edx + 4], ax
lea eax, [ecx + ebx*2]
movzx ecx, word [ecx + ebx*2]
xor ebx, ebx
test cx, cx
setne bl
lea esi, [eax + ebx*2]
mov word [edx + 6], cx
add edx, 8
add edi, 0xfffffffc
jne 0x43ccd0
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov word [edx], 0
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x10]
shr eax, 1
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
test ebx, ebx
je 0x43cd44
mov eax, dword [edi + 0x14]
mov dword [ebx], eax
mov eax, dword [ebp + 0x1c]
test ecx, ecx
je 0x43cd52
mov edx, dword [edi + 0x18]
shr edx, 1
mov dword [ecx], edx
mov ecx, dword [ebp + 0x20]
test eax, eax
je 0x43cd60
mov edx, dword [edi + 0x1c]
shr edx, 1
mov dword [eax], edx
mov eax, dword [ebp + 0x24]
test ecx, ecx
je 0x43cd6c
mov edx, dword [edi + 0x20]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x28]
test eax, eax
je 0x43cd7a
mov edx, dword [edi + 0x24]
shr edx, 1
mov dword [eax], edx
test ecx, ecx
je 0x43cd83
mov eax, dword [edi + 0x28]
mov dword [ecx], eax
push edi
call fcn.00437d10
add esp, 4
mov eax, dword [esp + 0x28]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret