Function at 0xbcc851
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
cmp dword [0xf03074], 0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
jne 0xbcc5ee
xor eax, eax
jmp 0xbcc601
lea eax, [ebp - 0x10]
push eax
push 6
push str.CWebSocketConnection::DispatchCurrentFrame
call fcn.00c19280
add esp, 0xc
mov cl, byte [esi + 0x128]
mov dword [ebp - 0x10], eax
movzx eax, cl
shr eax, 4
cmp eax, 0xa
ja case.0xbcc620.3
movzx eax, byte [eax + 0xbccac0]
jmp dword [eax*4 + 0xbccaa8]
mov eax, dword [esi + 0x164]
test eax, eax
je 0xbcc744
mov edi, dword [esi + 0x138]
lea ecx, [esi + 0x150]
cdq
add eax, edi
adc edx, dword [esi + 0x13c]
mov dword [ebp - 0x1c], edx
jne 0xbcc725
cmp eax, 0x1400060
ja 0xbcc725
push edi
push dword [esi + 0x144]
call fcn.00b89f50
test byte [esi + 0x128], 1
je case.0xbcc620.10
call fcn.00b8c350
mov ebx, eax
call fcn.00c13ba0
push 1
push 0
push 0x238
mov ecx, dword [eax]
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommonwebsocket.cpp
push dword [esi + 0x164]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
push dword [esi + 0x164]
mov edi, eax
push dword [esi + 0x154]
push edi
call fcn.00c2c570
add esp, 0xc
mov ecx, ebx
push 1
push edi
push dword [esi + 0x164]
push edi
push dword [esi + 0xc]
call fcn.00bc2190
mov ecx, dword [esi + 0x68]
push ebx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, ebx
call fcn.00bc2410
lea ebx, [esi + 0x150]
mov byte [esi + 0x14c], 0xff
mov ecx, ebx
call fcn.00b4ffe0
mov ecx, ebx
cmp eax, 0x200
jle 0xbcc71b
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov byte [ebx + 0x1e], 0
call fcn.00b79910
jmp case.0xbcc620.10
call fcn.00b4c870
jmp case.0xbcc620.10
mov byte [esi + 0x14c], 0xff
call fcn.00b4c870
push 0
push 0x3f1
mov ecx, esi
call fcn.00bcbc00
jmp case.0xbcc620.10
push str.Out_of_sequence_continuation_frame
push 0x3ef
mov ecx, esi
call fcn.00bcbc00
jmp case.0xbcc620.10
test cl, 1
jne 0xbcc7ac
lea edi, [esi + 0x150]
mov ecx, edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [edi + 0x1e], 0
mov dword [edi + 0x18], 0xffffffff
call fcn.00b891d0
push dword [esi + 0x138]
mov al, byte [esi + 0x128]
mov ecx, edi
push dword [esi + 0x144]
shr al, 4
mov byte [esi + 0x14c], al
call fcn.00b89f50
jmp case.0xbcc620.10
call fcn.00b8c350
mov ecx, dword [esi + 0x144]
mov edi, eax
push 1
push ecx
push dword [esi + 0x138]
push ecx
push dword [esi + 0xc]
mov ecx, edi
call fcn.00bc2190
mov ecx, dword [esi + 0x68]
push edi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, edi
call fcn.00bc2410
mov dword [esi + 0x144], 0
jmp case.0xbcc620.10
lea ecx, [esi + 0x198]
mov byte [esi + 0x125], 1
call fcn.00b905d0
cmp byte [esi + 0x124], 0
jne 0xbcc81a
push 0
push 0x3e8
mov ecx, esi
call fcn.00bcbc00
jmp case.0xbcc620.10
cmp dword [esi + 0x10], 2
jne case.0xbcc620.10
mov ecx, esi
mov dword [esi + 0x10], 3
call fcn.00bc2a30
jmp case.0xbcc620.10
push dword [esi + 0x138]
mov ecx, esi
push dword [esi + 0x144]
push 0xa
call fcn.00bcba70
jmp case.0xbcc620.10
cmp dword [esi + 0x10], 2
jne case.0xbcc620.10
cmp byte [esi + 0x124], 0
jne case.0xbcc620.10
push 0x40
push 2
push 0
lea ecx, [ebp - 0x98]
call fcn.00b88f50
push 0x3eb
lea ecx, [ebp - 0x98]
call fcn.00b8ac70
cmp dword [0xf03074], 0
mov edi, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x84]
mov dword [ebp - 0x14], edi
jne 0xbcc8a5
xor eax, eax
jmp 0xbcc8b8
lea eax, [ebp - 0xc]
push eax
push 6
push str.CWebSocketConnection::BBuildAndAsyncSendFrame
call fcn.00c19280
add esp, 0xc
cmp dword [esi + 0x10], 2
mov dword [ebp - 0xc], eax
jne 0xbcc9ed
push 0x40
push 0xe
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00b88ff0
cmp byte [esi + 0x126], 0
mov dword [ebp - 8], 0
mov byte [ebp - 1], 0
je 0xbcc8fe
lea eax, [ebp - 8]
mov byte [ebp - 1], 0x80
push 4
push eax
call fcn.00bd8d60
add esp, 8
push 0x88
lea ecx, [ebp - 0x48]
call fcn.00b8a970
lea ecx, [ebp - 0x48]
cmp ebx, 0x7e
jl 0xbcc94e
mov al, byte [ebp - 1]
cmp ebx, 0xffff
jle 0xbcc938
or al, 0x7f
movzx eax, al
push eax
call fcn.00b8a970
mov eax, ebx
lea ecx, [ebp - 0x48]
cdq
push edx
push eax
call fcn.00b8aa60
jmp 0xbcc95e
or al, 0x7e
movzx eax, al
push eax
call fcn.00b8a970
push ebx
lea ecx, [ebp - 0x48]
call fcn.00b8ac70
jmp 0xbcc95e
mov al, bl
and al, 0x7f
or al, byte [ebp - 1]
movzx eax, al
push eax
call fcn.00b8a970
cmp byte [ebp - 1], 0
je 0xbcc96f
push dword [ebp - 8]
lea ecx, [ebp - 0x48]
call fcn.00b8ab70
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x70]
push 0
add eax, ebx
push eax
push 0
call fcn.00b88f50
push dword [ebp - 0x34]
lea ecx, [ebp - 0x70]
push dword [ebp - 0x44]
call fcn.00b89f50
cmp byte [ebp - 1], 0
je 0xbcc9c5
mov eax, dword [ebp - 8]
xor edi, edi
bswap eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jle 0xbcc9cf
mov esi, dword [ebp - 0x14]
mov eax, edi
lea ecx, [ebp - 0x70]
and eax, 3
mov al, byte [ebp + eax - 0x18]
xor al, byte [edi + esi]
push eax
call fcn.00b89fa0
inc edi
cmp edi, ebx
jl 0xbcc9a6
mov esi, dword [ebp - 0x1c]
jmp 0xbcc9cf
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.00b89f50
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.00bcbd60
lea ecx, [ebp - 0x70]
call fcn.00b79910
lea ecx, [ebp - 0x48]
call fcn.00b79910
mov eax, dword [ebp - 0xc]
test eax, eax
je 0xbcc9fa
push eax
call fcn.00c19240
add esp, 4
cmp byte [esi + 0x125], 0
lea ecx, [esi + 0x198]
mov byte [esi + 0x124], 1
je 0xbcca25
call fcn.00b905d0
mov ecx, esi
mov dword [esi + 0x10], 3
call fcn.00bc2a30
jmp 0xbcca31
push 0
push 0x4c4b40
call fcn.00b90b20
lea ecx, [ebp - 0x98]
call fcn.00b79910
cmp dword [esi + 0x144], 0
je 0xbcca59
call fcn.00c13ba0
push 0
push dword [esi + 0x144]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
xor eax, eax
mov dword [esi + 0x128], eax
mov dword [esi + 0x12c], eax
mov dword [esi + 0x130], eax
mov dword [esi + 0x134], eax
mov dword [esi + 0x138], eax
mov dword [esi + 0x13c], eax
mov dword [esi + 0x140], eax
mov dword [esi + 0x144], eax
mov dword [esi + 0x148], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0xbccaa1
push eax
call fcn.00c19240
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret