Function at 0x43f670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, 0xfffffffe
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x43f690
sar ecx, 1
mov edx, ecx
and edx, 2
mov ebx, ecx
or ecx, 2
imul ecx, edx
xor edx, 2
and ebx, 0xfffd
imul ebx, edx
lea edx, [ebx + ecx]
mov word [esp + 0xc], dx
add ecx, ebx
add ecx, 2
mov word [esp + 0xe], cx
mov dword [esp + 0x10], eax
mov dword [esp], 0xf756c297
mov eax, dword [esp]
add eax, 0x68
movzx ecx, al
mov dword [esp], 0xf756c297
mov eax, dword [esp]
shl eax, 8
add eax, 0x6800
movzx eax, ax
or eax, ecx
mov dword [esp], 0xf756c297
mov ecx, dword [esp]
shl ecx, 0x10
add ecx, 0x680000
mov dword [esp], 0xf756c297
mov edx, dword [esp]
shl edx, 0x18
and ecx, 0xff0000
or ecx, eax
lea ebx, [edx + ecx]
add ebx, 0x68000000
mov dword [esp], 0xf756c2ac
mov eax, dword [esp]
mov dword [esp], 0xf756c2ad
mov eax, dword [esp]
mov dword [esp], 0xf756c2ae
mov eax, dword [esp]
mov dword [esp], 0xf756c2af
mov eax, dword [esp]
mov dword [esp], 0xf756c2b0
mov eax, dword [esp]
mov dword [esp], 0xf756c2b1
mov eax, dword [esp]
mov eax, dword [0x44ac54]
test eax, eax
je 0x43f7bf
xor ecx, ecx
mov edx, dword [0x44ac58]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xd07a397f
je 0x43f790
inc ecx
cmp eax, ecx
jne 0x43f780
jmp 0x43f7bf
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43f7bf
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x44]
push 6
push dword [0x44ac5c]
push eax
call fcn.0043b040
add esp, 0x24
mov ebx, eax
mov dword [esp], 0x16f4d15a
mov eax, dword [esp]
add eax, 0xc9
movzx ecx, al
mov dword [esp], 0x16f4d137
mov eax, dword [esp]
shl eax, 8
add eax, 0xc900
movzx eax, ax
or eax, ecx
mov dword [esp], 0x16f4d137
mov ecx, dword [esp]
shl ecx, 0x10
add ecx, 0xc90000
mov dword [esp], 0x16f4d1f7
mov edx, dword [esp]
shl edx, 0x18
and ecx, 0xff0000
or ecx, eax
lea eax, [edx + ecx]
add eax, 0xc9000000
mov dword [esp], 0x16f4d155
mov ecx, dword [esp]
mov dword [esp], 0x16f4d156
mov ecx, dword [esp]
mov dword [esp], 0x16f4d157
mov ecx, dword [esp]
mov dword [esp], 0x16f4d158
mov ecx, dword [esp]
mov dword [esp], 0x16f4d159
mov ecx, dword [esp]
mov dword [esp], 0x16f4d15a
mov ecx, dword [esp]
mov dword [esp], 0x16f4d15b
mov ecx, dword [esp]
cmp ebx, eax
jne 0x43fa2d
push dword [esp + 8]
call fcn.004390b0
add esp, 4
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov dword [esp], 0xf756c297
mov ecx, dword [esp]
add ecx, 0x68
movzx edx, cl
mov dword [esp], 0xf756c297
mov ecx, dword [esp]
shl ecx, 8
add ecx, 0x6800
movzx ecx, cx
or ecx, edx
mov dword [esp], 0xf756c297
mov edx, dword [esp]
shl edx, 0x10
add edx, 0x680000
mov dword [esp], 0xf756c297
mov ebx, dword [esp]
shl ebx, 0x18
and edx, 0xff0000
or edx, ecx
add ebx, edx
add ebx, 0x68000000
mov dword [esp], 0xf756c2ac
mov ecx, dword [esp]
mov dword [esp], 0xf756c2ad
mov ecx, dword [esp]
mov dword [esp], 0xf756c2ae
mov ecx, dword [esp]
mov dword [esp], 0xf756c2af
mov ecx, dword [esp]
mov dword [esp], 0xf756c2b0
mov ecx, dword [esp]
mov dword [esp], 0xf756c2b1
mov ecx, dword [esp]
mov ecx, dword [0x44ac54]
test ecx, ecx
je 0x43f981
mov edi, esi
mov esi, ebp
xor edx, edx
mov ebp, dword [0x44ac58]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + edx*8], 0xd07a397f
je 0x43f949
inc edx
cmp ecx, edx
jne 0x43f930
mov ebp, esi
mov esi, edi
mov edi, dword [esp + 0x38]
jmp 0x43f981
mov ecx, dword [ebp + edx*8 + 4]
cmp ecx, ebx
mov ebp, esi
mov esi, edi
mov edi, dword [esp + 0x38]
je 0x43f981
lea edx, [esp + 8]
lea ebx, [esp + 0xc]
push edx
push eax
push dword [esp + 0xc]
push 2
push ebx
push dword [esp + 0x44]
push 6
push dword [0x44ac5c]
push ecx
call fcn.0043b040
add esp, 0x24
mov ebx, eax
test ebx, ebx
mov ecx, dword [esp + 4]
js 0x43fa24
test edi, edi
je 0x43f996
mov eax, dword [ecx + 4]
mov dword [edi], eax
test ebp, ebp
je 0x43fa24
test esi, esi
je 0x43fa17
mov eax, dword [esp + 0x40]
mov edx, dword [eax]
mov eax, dword [ecx + 8]
cmp edx, eax
jb 0x43f9b1
mov edx, eax
lea eax, [ecx + 0xc]
mov ecx, edx
shr ecx, 2
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
and eax, 0xfffffffc
add eax, esi
mov ecx, edx
not ecx
mov dword [esp + 0x18], ecx
or ecx, 0xfffffffc
add ecx, edx
mov esi, dword [esp + 4]
add esi, ecx
add esi, 0xd
mov ebp, edx
and ebp, 3
mov ecx, ebp
shr ecx, 1
mov dword [esp + 0x14], esi
mov edi, eax
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov ecx, dword [esp + 4]
test dl, 1
je 0x43fa17
and edx, 2
mov ecx, dword [esp + 0x18]
or ecx, 0xfffffffe
add ebp, ecx
mov ecx, dword [esp + 0x14]
movzx ecx, byte [ecx + edx]
mov byte [eax + ebp + 1], cl
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov ecx, dword [esp + 4]
push ecx
call fcn.004393d0
add esp, 4
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret