Function at 0x4e7fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
push edi
xorps xmm0, xmm0
mov dword [esp + 0x4c], edx
lea eax, [esp + 0x24]
movlpd qword [esp + 0x50], xmm0
mov edi, ecx
movlpd qword [esp + 0x58], xmm0
push 0
push eax
mov edx, 0x1b
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], 0
call fcn.004df110
mov esi, eax
add esp, 8
mov dword [esp + 0x30], esi
test esi, esi
jne 0x4e8342
mov eax, dword [edi + 0x118]
mov ebx, dword [esp + 0x24]
cdq
push edx
push eax
push 1
push ebx
call fcn.004682a0
mov eax, dword [edi + 0x100]
cdq
push edx
push eax
push 2
push ebx
call fcn.004682a0
mov eax, dword [esp + 0x74]
add esp, 0x20
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x34], eax
push ebx
call fcn.00466ed0
add esp, 4
cmp eax, 0x64
jne 0x4e8094
push 0
push ebx
call fcn.004678f0
mov ebx, eax
xor edi, edi
mov eax, dword [esp + 0x18]
add esp, 8
cmp dword [eax + 0x100], edi
jle 0x4e808c
lea ecx, [esp + 0x30]
mov edx, ebx
push ecx
push edi
mov ecx, eax
call fcn.004e7de0
xor dword [esp + 0x3c], eax
inc edi
mov eax, dword [esp + 0x18]
add esp, 8
xor dword [esp + 0x38], edx
cmp edi, dword [eax + 0x100]
jl 0x4e8061
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
test esi, esi
je 0x4e8038
push ebx
call fcn.00465d10
add esp, 4
test esi, esi
jne 0x4e831b
mov esi, eax
test eax, eax
jne 0x4e831b
mov esi, dword [esp + 0x10]
mov dword [esp + 0x24], 0
mov eax, dword [esi + 0x24]
push dword [esi + 0xe0]
push str.SELECT__s
mov eax, dword [eax]
mov dword [esp + 0x50], eax
call fcn.0043d5d0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4e80f9
push dword [esp + 0x24]
mov edi, dword [esp + 0x60]
lea esi, [eax + 7]
mov ebx, dword [esp + 0x5c]
call fcn.00465c30
add esp, 4
jmp 0x4e8323
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x24]
push 0
push eax
push 0
push 0x80
push 0xffffffffffffffff
mov edx, edi
call fcn.004a0770
add esp, 0x14
mov esi, eax
push edi
call fcn.0043abf0
mov edi, dword [esp + 0x60]
add esp, 4
mov ebx, dword [esp + 0x58]
test esi, esi
jne 0x4e830d
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x24]
push ebx
call fcn.00466ed0
add esp, 4
cmp eax, 0x64
jne 0x4e8309
push 0
push ebx
call fcn.004679d0
mov dword [esp + 0x48], eax
add esp, 8
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x1c], 0
cmp dword [eax + 0x2c], 0
je 0x4e8186
mov ecx, dword [eax + 0x18]
inc ecx
push ecx
push ebx
call fcn.004678f0
mov dword [esp + 0x24], eax
add esp, 8
mov eax, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x20], ebx
nop dword [eax]
cmp ebx, dword [eax + 0x18]
jge 0x4e8135
mov eax, dword [eax + 0x20]
cmp byte [ebx + eax], 0
jne 0x4e82f7
lea eax, [ebx + 1]
push eax
push dword [esp + 0x28]
call fcn.00467ac0
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
mov edx, dword [esp + 0x24]
push ecx
push 0xffffffffffffffff
mov ecx, dword [esi + 0x24]
push eax
mov dword [esp + 0x2c], 0
call fcn.004daea0
mov ecx, dword [esp + 0x2c]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4e82de
jmp 0x4e81f4
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x5c], 0
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0x58], 0
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x38], 0
push eax
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov eax, dword [eax + 0x14]
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4e82da
push dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
push ebx
push dword [esp + 0x44]
push dword [esp + 0x4c]
push eax
push dword [esp + 0x30]
call fcn.004e7d20
xor dword [esp + 0x2c], eax
xor edi, edx
mov eax, dword [esp + 0x28]
mov esi, 1
mov ecx, dword [esp + 0x30]
add esp, 0x18
mov dword [esp + 0x30], edi
mov ebx, dword [eax + 0x100]
cmp ebx, esi
jle 0x4e81f0
mov edi, dword [eax + 0x104]
add edi, 0x18
mov edx, dword [edi]
cmp edx, dword [esp + 0x28]
jg 0x4e82c5
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
push dword [esp + 0x24]
push dword [esp + 0x44]
push dword [esp + 0x4c]
push esi
push dword [esp + 0x30]
call fcn.004e7d20
xor dword [esp + 0x2c], eax
add esp, 0x18
xor dword [esp + 0x30], edx
inc esi
add edi, 0x18
cmp esi, ebx
jl 0x4e8294
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
jmp 0x4e81f0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4e82ef
mov eax, dword [esp + 0x48]
push ecx
mov eax, dword [eax + 0x10]
call eax
add esp, 4
xor eax, eax
cmp esi, 0x65
cmove esi, eax
inc ebx
mov dword [esp + 0x20], ebx
test esi, esi
jne 0x4e8309
mov eax, dword [esp + 0x10]
jmp 0x4e8190
mov ebx, dword [esp + 0x14]
push dword [esp + 0x24]
call fcn.00465c30
add esp, 4
jmp 0x4e8323
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
cmp dword [esp + 0x34], ebx
jne 0x4e832f
cmp dword [esp + 0x38], edi
je 0x4e8342
mov eax, dword [esp + 0x4c]
mov dword [eax], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x4c]
pop edi
mov dword [eax], 1
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret