Function at 0x5f2550
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.005ebf00
add esp, 0x10
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x5f2866
mov ecx, dword [edi + 0x118]
mov edx, dword [ebp - 8]
push ebx
push ecx
push 1
push edx
call fcn.0058f5b0
mov eax, dword [edi + 0xfc]
mov ecx, dword [ebp - 8]
push eax
push 2
push ecx
call fcn.0058f5b0
mov eax, dword [ebp - 4]
add esp, 0x18
cmp eax, esi
jne 0x5f261a
jmp 0x5f25bd
xor esi, esi
mov edx, dword [ebp - 8]
push edx
call fcn.0058de20
add esp, 4
cmp eax, 0x64
jne 0x5f261a
mov eax, dword [ebp - 8]
push esi
push eax
call fcn.0058f020
mov ebx, eax
mov eax, dword [edi + 0xfc]
add esp, 8
test eax, eax
jle 0x5f2611
lea ecx, [ebp - 4]
push ecx
push esi
push ebx
push edi
call fcn.005f2940
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 0x5f25e7
mov eax, dword [ebp - 4]
test eax, eax
je 0x5f25bb
xor esi, esi
mov edx, dword [ebp - 8]
push edx
call fcn.0058c920
mov ecx, eax
mov eax, dword [ebp - 4]
add esp, 4
cmp eax, esi
jne 0x5f2851
mov eax, ecx
cmp ecx, esi
mov dword [ebp - 4], eax
jne 0x5f2851
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.0057ad30
mov esi, eax
add esp, 8
test esi, esi
jne 0x5f2671
mov dword [ebp - 4], 7
jmp 0x5f2840
mov ecx, dword [edi + 0xc]
lea eax, [ebp + 8]
push 0
push eax
push 0xffffffffffffffff
push esi
push ecx
call fcn.005aee00
push esi
mov dword [ebp - 4], eax
call fcn.00579000
mov eax, dword [ebp - 4]
add esp, 0x18
test eax, eax
jne 0x5f2840
mov edx, dword [ebp + 8]
push edx
call fcn.0058de20
add esp, 4
cmp eax, 0x64
jne 0x5f2840
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.0058f050
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], eax
push ecx
push edi
mov dword [ebp - 0x40], edx
call fcn.005f2350
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
add esp, 0x10
xor ebx, ebx
test eax, eax
jne 0x5f2840
cmp ebx, dword [edi + 0x18]
jge 0x5f269a
mov edx, dword [edi + 0x20]
cmp byte [edx + ebx], 0
jne 0x5f2837
mov eax, dword [ebp + 8]
lea esi, [ebx + 1]
push esi
push eax
call fcn.0058f080
mov ecx, dword [ebp + 8]
push esi
push ecx
mov dword [ebp - 0x18], eax
call fcn.0058ef90
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.005e9870
add esp, 0x24
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x5f2819
jmp 0x5f2736
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 0x5f2819
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.005f2890
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 0x5f280c
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 0x5f27f8
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.005f2890
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 0x5f27b6
mov eax, dword [ebp - 4]
test eax, eax
je 0x5f2734
xor esi, esi
mov ecx, dword [ebp - 0x1c]
cmp ecx, esi
je 0x5f282d
push ecx
mov ecx, dword [ebp - 0x24]
call dword [ecx + 0x10]
mov eax, dword [ebp - 4]
add esp, 4
cmp eax, 0x65
jne 0x5f2837
xor eax, eax
mov dword [ebp - 4], eax
inc ebx
test eax, eax
je 0x5f26dd
mov edx, dword [ebp + 8]
push edx
call fcn.0058a880
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 0x5f2876
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
cmp ecx, edx
jne 0x5f2876
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