Function at 0x55b2c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push esi
push eax
push 0x1b
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 8], esi
call fcn.00554c70
add esp, 0x10
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x55b5d6
mov ecx, dword [edi + 0x118]
mov edx, dword [ebp - 8]
push ebx
push ecx
push 1
push edx
call fcn.004f8360
mov eax, dword [edi + 0xfc]
mov ecx, dword [ebp - 8]
push eax
push 2
push ecx
call fcn.004f8360
mov eax, dword [ebp - 4]
add esp, 0x18
cmp eax, esi
jne 0x55b38a
jmp 0x55b32d
xor esi, esi
mov edx, dword [ebp - 8]
push edx
call fcn.004f6bd0
add esp, 4
cmp eax, 0x64
jne 0x55b38a
mov eax, dword [ebp - 8]
push esi
push eax
call fcn.004f7dd0
mov ebx, eax
mov eax, dword [edi + 0xfc]
add esp, 8
test eax, eax
jle 0x55b381
lea ecx, [ebp - 4]
push ecx
push esi
push ebx
push edi
call fcn.0055b6b0
mov ecx, dword [ebp - 0x3c]
add esp, 0x10
xor ecx, eax
mov eax, dword [ebp - 0x38]
xor eax, edx
inc esi
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0xfc]
cmp esi, eax
mov dword [ebp - 0x3c], ecx
jl 0x55b357
mov eax, dword [ebp - 4]
test eax, eax
je 0x55b32b
xor esi, esi
mov edx, dword [ebp - 8]
push edx
call fcn.004f56c0
mov ecx, eax
mov eax, dword [ebp - 4]
add esp, 4
cmp eax, esi
jne 0x55b5c1
mov eax, ecx
cmp ecx, esi
mov dword [ebp - 4], eax
jne 0x55b5c1
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0xdc]
push edx
push str.SELECT__s
mov ecx, dword [eax]
mov dword [ebp + 8], esi
mov dword [ebp - 0x24], ecx
call fcn.004e3af0
mov esi, eax
add esp, 8
test esi, esi
jne 0x55b3e1
mov dword [ebp - 4], 7
jmp 0x55b5b0
mov ecx, dword [edi + 0xc]
lea eax, [ebp + 8]
push 0
push eax
push 0xffffffffffffffff
push esi
push ecx
call fcn.00517b90
push esi
mov dword [ebp - 4], eax
call fcn.004e1dc0
mov eax, dword [ebp - 4]
add esp, 0x18
test eax, eax
jne 0x55b5b0
mov edx, dword [ebp + 8]
push edx
call fcn.004f6bd0
add esp, 4
cmp eax, 0x64
jne 0x55b5b0
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.004f7e00
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], eax
push ecx
push edi
mov dword [ebp - 0x40], edx
call fcn.0055b0c0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
add esp, 0x10
xor ebx, ebx
test eax, eax
jne 0x55b5b0
cmp ebx, dword [edi + 0x18]
jge 0x55b40a
mov edx, dword [edi + 0x20]
cmp byte [edx + ebx], 0
jne 0x55b5a7
mov eax, dword [ebp + 8]
lea esi, [ebx + 1]
push esi
push eax
call fcn.004f7e30
mov ecx, dword [ebp + 8]
push esi
push ecx
mov dword [ebp - 0x18], eax
call fcn.004f7d40
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [edi + 0x24]
push eax
mov eax, dword [ebp - 0x18]
push eax
xor esi, esi
push ecx
push edx
mov dword [ebp - 0x1c], esi
call fcn.00552580
add esp, 0x24
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x55b589
jmp 0x55b4a6
xor esi, esi
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push ecx
push edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], esi
call dword [eax + 0x14]
add esp, 0x18
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x55b589
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x14]
push ebx
push edx
mov edx, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push esi
push ecx
push edx
push eax
call fcn.0055b600
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
xor esi, eax
mov eax, dword [edi + 0xfc]
mov dword [ebp - 0x34], esi
mov esi, 1
add esp, 0x20
xor ecx, edx
cmp eax, esi
mov dword [ebp - 0x30], ecx
jle 0x55b57c
mov dword [ebp - 0x18], 0x18
mov ecx, dword [edi + 0x100]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx]
mov ecx, dword [ebp - 0xc]
cmp eax, ecx
jg 0x55b568
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x44]
push ebx
push edx
mov edx, dword [ebp - 0x14]
push ecx
push esi
push edx
push eax
mov eax, dword [ebp - 0x20]
push eax
call fcn.0055b600
mov ecx, dword [ebp - 0x34]
add esp, 0x20
xor ecx, eax
mov eax, dword [ebp - 0x30]
xor eax, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi + 0xfc]
inc esi
add ecx, 0x18
cmp esi, eax
mov dword [ebp - 0x18], ecx
jl 0x55b526
mov eax, dword [ebp - 4]
test eax, eax
je 0x55b4a4
xor esi, esi
mov ecx, dword [ebp - 0x1c]
cmp ecx, esi
je 0x55b59d
push ecx
mov ecx, dword [ebp - 0x24]
call dword [ecx + 0x10]
mov eax, dword [ebp - 4]
add esp, 4
cmp eax, 0x65
jne 0x55b5a7
xor eax, eax
mov dword [ebp - 4], eax
inc ebx
test eax, eax
je 0x55b44d
mov edx, dword [ebp + 8]
push edx
call fcn.004f3620
mov eax, dword [ebp - 4]
add esp, 4
xor esi, esi
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x3c]
cmp edx, ecx
pop ebx
jne 0x55b5e6
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
cmp ecx, edx
jne 0x55b5e6
mov edx, dword [ebp + 0xc]
mov ecx, 1
pop edi
pop esi
mov dword [edx], ecx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
xor ecx, ecx
pop edi
pop esi
mov dword [edx], ecx
mov esp, ebp
pop ebp
ret