Function at 0x40bca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebx, dword [ecx]
test ebx, ebx
je 0x40bcfe
mov esi, dword [ecx + 4]
mov edx, dword [ecx + 8]
cmp edx, esi
jae 0x40bcfe
movzx eax, byte [ebx + edx]
mov dword [ebp - 0x14], ecx
cmp eax, 0x49
je 0x40bd13
cmp eax, 0x42
jne 0x40bcfe
lea edi, [edx + 1]
cmp edi, esi
mov dword [ecx + 8], edi
jae 0x40bdb5
cmp byte [ebx + edi], 0x5f
jne 0x40bdb5
lea eax, [edx + 2]
xor esi, esi
mov dword [ecx + 8], eax
mov eax, edx
xor edx, edx
cmp esi, eax
sbb edx, 0
jb 0x40be68
jmp 0x40be7e
xor edx, edx
call sym.rustc_demangle::v0::Printer::print_path::h06e6f1cd62025e73
mov ebx, eax
add bl, bl
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
inc edx
mov dword [ecx + 8], edx
xor edx, edx
call sym.rustc_demangle::v0::Printer::print_path::h06e6f1cd62025e73
test al, al
jne 0x40bec0
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x40bd4a
mov edx, 0x4a127c
push 1
call sym.core::fmt::Formatter::pad::hd8cd7f8ca62f4ccb
mov edx, dword [ebp - 0x14]
add esp, 4
test al, al
jne 0x40bec0
mov eax, dword [edx]
mov bl, 1
test eax, eax
je 0x40bd09
xor esi, esi
nop word cs:[eax + eax]
nop
mov ecx, dword [edx + 8]
cmp ecx, dword [edx + 4]
jae 0x40bd72
cmp byte [eax + ecx], 0x45
je 0x40bf15
sub esi, 1
jb 0x40bd98
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x40bd98
mov edx, 0x4a151d
push 2
call sym.core::fmt::Formatter::pad::hd8cd7f8ca62f4ccb
mov edx, dword [ebp - 0x14]
add esp, 4
test al, al
jne 0x40bec0
mov ecx, edx
call sym.rustc_demangle::v0::Printer::print_generic_arg::h4fa6700d8107cfbd
test al, al
jne 0x40bec0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x40bd60
jmp 0x40bd09
cmp edi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ebx
cmova esi, edi
xor edx, edx
mov dword [ebp - 0x24], esi
xor esi, esi
nop word [eax + eax]
cmp edi, dword [ebp - 0x28]
jae 0x40bddb
cmp byte [ebx + edi], 0x5f
je 0x40be4b
cmp dword [ebp - 0x24], edi
mov al, 1
mov dword [ebp - 0x18], eax
je 0x40be47
movzx eax, byte [ebx + edi]
mov ebx, eax
add bl, 0xd0
cmp bl, 0xa
jb 0x40be0f
mov ah, al
add ah, 0x9f
cmp ah, 0x1a
jae 0x40be01
add al, 0xa9
jmp 0x40be0d
mov ah, al
add ah, 0xbf
cmp ah, 0x1a
jae 0x40be47
add al, 0xe3
mov ebx, eax
mov eax, edx
mov edx, 0x3e
inc edi
mul edx
mov edx, 0x3e
mov ecx, eax
mov eax, esi
seto byte [ebp - 0xd]
mul edx
add edx, ecx
mov ecx, dword [ebp - 0x14]
setb bh
or bh, byte [ebp - 0xd]
mov dword [ecx + 8], edi
jne 0x40be47
mov esi, eax
movzx ebx, bl
add esi, ebx
mov ebx, dword [ebp - 0x20]
adc edx, 0
jae 0x40bdd0
xor edx, edx
jmp 0x40be85
mov eax, esi
inc edi
and eax, edx
mov dword [ecx + 8], edi
cmp eax, 0xffffffff
je 0x40be7e
mov eax, dword [ebp - 0x1c]
add esi, 1
adc edx, 0
cmp esi, eax
sbb edx, 0
jae 0x40be7e
mov eax, dword [ecx + 0xc]
inc eax
cmp eax, 0x1f4
jbe 0x40bed7
mov dl, 1
mov dword [ebp - 0x18], 0
jmp 0x40be85
mov al, 1
xor edx, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x40bec7
mov ebx, dword [ebp - 0x18]
mov edi, edx
mov edx, 0x4a14fc
mov ecx, ebx
xor cl, 1
test bl, bl
movzx ecx, cl
lea esi, [ecx + ecx*8 + 0x10]
mov ecx, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
cmovne edx, ecx
mov ecx, eax
push esi
call sym.core::fmt::Formatter::pad::hd8cd7f8ca62f4ccb
mov ecx, dword [ebp - 0x14]
mov edx, edi
add esp, 4
test al, al
je 0x40bec7
mov bl, 2
jmp 0x40bd09
mov dword [ecx], 0
mov byte [ecx + 4], dl
xor ebx, ebx
jmp 0x40bd09
cmp dword [ecx + 0x10], 0
je 0x40bed0
movsd xmm0, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], eax
mov esi, ecx
movsd qword [ebp - 0x30], xmm1
movsd qword [ebp - 0x38], xmm0
call sym.rustc_demangle::v0::Printer::print_path_maybe_open_generics::hce6b3b69a9f21441
movsd xmm0, qword [ebp - 0x38]
movsd xmm1, qword [ebp - 0x30]
movsd qword [esi], xmm0
movsd qword [esi + 8], xmm1
jmp 0x40bd0b
inc ecx
mov dword [edx + 8], ecx
jmp 0x40bd09