Function at 0x4e67a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
xorps xmm0, xmm0
mov dword [esp + 0x50], edx
lea eax, [esp + 0x2c]
movlpd qword [esp + 0x58], xmm0
mov edi, ecx
movlpd qword [esp + 0x60], xmm0
push 0
push eax
mov edx, 0x1b
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], 0
call fcn.004de1e0
mov esi, eax
add esp, 8
mov dword [esp + 0x34], esi
test esi, esi
jne 0x4e6d4e
mov eax, dword [edi + 0x110]
mov ebx, dword [esp + 0x2c]
cdq
push edx
push eax
push 1
push ebx
call fcn.0047fd90
mov eax, dword [edi + 0xf8]
cdq
push edx
push eax
push 2
push ebx
call fcn.0047fd90
mov eax, dword [esp + 0x7c]
add esp, 0x20
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
push ebx
call fcn.0047ed80
add esp, 4
cmp eax, 0x64
jne 0x4e691e
test ebx, ebx
je 0x4e688e
cmp dword [ebx + 0x14], 0
je 0x4e6864
xor eax, eax
cmp ax, word [ebx + 0x54]
jae 0x4e6864
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4e685f
push eax
call dword [0x58c190]
add esp, 4
mov ecx, dword [ebx + 0x14]
jmp 0x4e6893
mov eax, dword [ebx]
test eax, eax
je 0x4e688e
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4e687b
push eax
call dword [0x58c190]
add esp, 4
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x34], 0x19
call fcn.0045c930
mov ecx, 0x5684d0
call fcn.00477f50
mov dword [esp + 0x4c], eax
test ebx, ebx
je 0x4e68d5
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x50]
cmp byte [ecx + 0x45], 0
jne 0x4e68ba
cmp edx, 0xc0a
je 0x4e68ba
mov eax, dword [ecx + 0x38]
and eax, edx
jmp 0x4e68bf
call fcn.0045a400
mov dword [ebx + 0x50], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4e68d5
push eax
call dword [0x58c198]
add esp, 4
mov eax, dword [esp + 0x14]
xor edi, edi
cmp dword [eax + 0xf8], edi
jle 0x4e6916
mov ebx, dword [esp + 0x4c]
lea ecx, [esp + 0x34]
mov edx, ebx
push ecx
push edi
mov ecx, eax
call fcn.004e65d0
xor dword [esp + 0x40], eax
inc edi
mov eax, dword [esp + 0x1c]
add esp, 8
xor dword [esp + 0x3c], edx
cmp edi, dword [eax + 0xf8]
jl 0x4e68e7
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
test esi, esi
je 0x4e6828
push ebx
call fcn.0047e100
add esp, 4
test esi, esi
jne 0x4e6d27
mov esi, eax
test eax, eax
jne 0x4e6d27
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x24]
push dword [esi + 0xd8]
push str.SELECT__s
mov eax, dword [eax]
mov dword [esp + 0x54], eax
mov dword [esp + 0x18], 0
call fcn.0045bcb0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4e698c
mov edi, dword [esp + 0x10]
lea esi, [eax + 7]
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
push edi
mov dword [esp + 0x1c], eax
call fcn.0047e020
mov eax, dword [esp + 0x1c]
add esp, 4
jmp 0x4e6d2f
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 1
push 0xffffffffffffffff
mov edx, edi
call fcn.004adf10
add esp, 0x14
mov esi, eax
push edi
call fcn.00459c50
mov eax, dword [esp + 0x64]
add esp, 4
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
test esi, esi
jne 0x4e6d18
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x14]
push edi
call fcn.0047ed80
mov edi, dword [esp + 0x14]
add esp, 4
cmp eax, 0x64
jne 0x4e6d14
test edi, edi
je 0x4e6a3b
cmp dword [edi + 0x14], 0
je 0x4e6a11
xor eax, eax
cmp ax, word [edi + 0x54]
jae 0x4e6a11
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4e6a0c
push eax
call dword [0x58c190]
add esp, 4
mov ecx, dword [edi + 0x14]
jmp 0x4e6a40
mov eax, dword [edi]
test eax, eax
je 0x4e6a3b
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4e6a28
push eax
call dword [0x58c190]
add esp, 4
mov ecx, dword [edi]
mov edx, 0x19
mov dword [ecx + 0x34], 0x19
call fcn.0045c930
mov ecx, 0x5684d0
call fcn.00477f50
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edx
test edi, edi
je 0x4e6a86
mov ecx, dword [edi]
mov edx, dword [edi + 0x50]
cmp byte [ecx + 0x45], 0
jne 0x4e6a6b
cmp edx, 0xc0a
je 0x4e6a6b
mov eax, dword [ecx + 0x38]
and eax, edx
jmp 0x4e6a70
call fcn.0045a400
mov dword [edi + 0x50], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4e6a86
push eax
call dword [0x58c198]
add esp, 4
cmp dword [ebx + 0x2c], 0
mov edi, dword [esp + 0x10]
mov dword [esp + 0x28], 0
je 0x4e6b4d
mov ebx, dword [ebx + 0x18]
inc ebx
test edi, edi
je 0x4e6afe
cmp dword [edi + 0x14], 0
je 0x4e6ad4
movzx eax, word [edi + 0x54]
cmp ebx, eax
jge 0x4e6ad4
test ebx, ebx
js 0x4e6ad4
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4e6ac9
push eax
call dword [0x58c190]
add esp, 4
mov eax, dword [edi + 0x14]
lea ecx, [ebx + ebx*4]
lea ecx, [eax + ecx*8]
jmp 0x4e6b03
mov eax, dword [edi]
test eax, eax
je 0x4e6afe
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4e6aeb
push eax
call dword [0x58c190]
add esp, 4
mov ecx, dword [edi]
mov edx, 0x19
mov dword [ecx + 0x34], 0x19
call fcn.0045c930
mov ecx, 0x5684d0
call fcn.00477f50
mov dword [esp + 0x28], eax
test edi, edi
je 0x4e6b45
mov ecx, dword [edi]
mov edx, dword [edi + 0x50]
cmp byte [ecx + 0x45], 0
jne 0x4e6b2a
cmp edx, 0xc0a
je 0x4e6b2a
mov eax, dword [ecx + 0x38]
and eax, edx
jmp 0x4e6b2f
call fcn.0045a400
mov dword [edi + 0x50], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4e6b45
push eax
call dword [0x58c198]
add esp, 4
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp ecx, dword [ebx + 0x18]
jge 0x4e69d1
mov eax, dword [ebx + 0x20]
cmp byte [ecx + eax], 0
jne 0x4e6d07
lea esi, [ecx + 1]
push esi
push edi
call fcn.0047f660
push esi
push dword [esp + 0x1c]
mov edi, eax
call fcn.0047f3c0
mov ecx, dword [ebx + 0x24]
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x34], 0
mov ebx, dword [ecx]
push edi
push ecx
mov dword [esp + 0x54], ecx
mov eax, dword [ebx + 0xc]
call eax
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4e6bdf
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
cmp dword [ebx], 1
jl 0x4e6bdf
push dword [esp + 0x28]
mov eax, dword [ebx + 0x18]
push dword [esp + 0x20]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x4e6bdf
push dword [esp + 0x1c]
mov eax, dword [ebx + 0x10]
call eax
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1c], ecx
jmp 0x4e6be3
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
test esi, esi
jne 0x4e6cde
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x4c]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x60], 0
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x44], 0
push eax
mov eax, dword [ebx + 0x14]
push ecx
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4e6ce2
push dword [esp + 0x34]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
push edi
push dword [esp + 0x48]
push dword [esp + 0x50]
push eax
push dword [esp + 0x3c]
call fcn.004e6510
xor dword [esp + 0x30], eax
mov esi, 1
mov eax, dword [esp + 0x2c]
add esp, 0x18
xor dword [esp + 0x20], edx
mov ecx, dword [esp + 0x2c]
mov ebx, dword [eax + 0xf8]
cmp ebx, esi
jle 0x4e6bf3
mov eax, dword [eax + 0xfc]
mov edi, 0x18
mov dword [esp + 0x60], eax
mov edx, dword [eax + edi]
cmp edx, dword [esp + 0x30]
jg 0x4e6ccd
push dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
push dword [esp + 0x28]
push dword [esp + 0x48]
push dword [esp + 0x50]
push esi
push dword [esp + 0x3c]
call fcn.004e6510
xor dword [esp + 0x30], eax
add esp, 0x18
xor dword [esp + 0x20], edx
mov eax, dword [esp + 0x60]
inc esi
add edi, 0x18
cmp esi, ebx
jl 0x4e6c97
mov ecx, dword [esp + 0x2c]
jmp 0x4e6bef
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4e6cf3
push eax
mov eax, dword [ebx + 0x10]
call eax
add esp, 4
mov edi, dword [esp + 0x10]
xor eax, eax
mov ecx, dword [esp + 0x24]
cmp esi, 0x65
mov ebx, dword [esp + 0x14]
cmove esi, eax
inc ecx
mov dword [esp + 0x24], ecx
test esi, esi
je 0x4e6b53
mov ebx, dword [esp + 0x20]
push edi
call fcn.0047e020
mov eax, dword [esp + 0x1c]
add esp, 4
jmp 0x4e6d2f
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x38], eax
jne 0x4e6d3b
cmp dword [esp + 0x3c], ebx
je 0x4e6d4e
mov eax, dword [esp + 0x50]
mov dword [eax], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x50]
pop edi
mov dword [eax], 1
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret