Function at 0x47ed10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x4e70ac]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0x14], ecx
test ebx, ebx
jne 0x47ed52
pop edi
mov eax, 0xffffff9a
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043640c
add esp, 0x24
ret
cmp dword [ebx + 0x38], 0
je 0x47ed3c
cmp dword [ebx + 0x9c], 0
je 0x47ed6a
push ebx
call fcn.0047ea30
add esp, 4
push esi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
mov esi, ebx
call fcn.0047e5e0
add esp, 0xc
test eax, eax
je 0x47ed9f
pop esi
pop edi
mov eax, 0xffffff99
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043640c
add esp, 0x24
ret
push ebp
push 0x90
call fcn.004367ec
mov ebp, eax
xor esi, esi
add esp, 4
cmp ebp, esi
je 0x47eded
push 0x4000
call fcn.004367ec
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x44], edx
mov edx, dword [esp + 0x48]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x48], ecx
mov dword [ebp + 0x4c], esi
mov dword [ebp + 0x8c], edx
cmp eax, esi
jne 0x47ee05
push ebp
call fcn.004368b6
add esp, 4
pop ebp
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043640c
add esp, 0x24
ret
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x40], esi
cmp eax, esi
je 0x47ee15
mov ecx, dword [ebx + 0x54]
mov dword [eax], ecx
cmp edi, esi
je 0x47ee4a
mov dword [edi], 6
mov eax, dword [ebx + 0x50]
and eax, 6
sub eax, 2
je 0x47ee44
sub eax, 2
je 0x47ee3c
sub eax, 2
jne 0x47ee4a
mov dword [edi], 1
jmp 0x47ee4a
mov dword [edi], 2
jmp 0x47ee4a
mov dword [edi], 9
mov eax, dword [ebx + 0x5c]
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x54], eax
mov ecx, dword [ebx + 0x54]
mov dword [ebp + 0x84], ecx
mov eax, dword [ebx + 0x20]
mov dword [ebp + 0x80], eax
lea edi, [ebp + 0x60]
mov ecx, 8
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x2c]
xor edi, edi
mov dword [ebp + 0x88], ecx
mov dword [ebp + 0x18], edi
cmp dword [ebx + 0x54], 8
jne 0x47eebd
cmp edx, edi
jne 0x47eebd
push 0x38
push str.1.2.3
lea eax, [ebp + 4]
push 0xfffffffffffffff1
push eax
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x2c], edi
mov dword [eax], edi
mov dword [ebp + 8], edi
call fcn.0047fed0
mov esi, eax
add esp, 0x10
cmp esi, edi
jne 0x47ef9e
mov dword [ebp + 0x40], 1
mov edx, dword [ebx + 0x60]
mov dword [ebp + 0x58], edx
mov eax, dword [ebx + 0x64]
mov edx, dword [esp + 0x14]
mov dword [ebp + 0x5c], eax
mov ecx, dword [ebx + 0x98]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], edi
mov dword [ebx + 0x9c], ebp
mov ebp, dword [esp + 0x1c]
cmp ebp, edi
je 0x47ef89
call fcn.0048a5e0
lea esi, [ebx + 0xa4]
mov ecx, esi
mov edx, ebp
mov dword [ebx + 0xb0], eax
call fcn.0047dc80
mov eax, dword [ebx + 0x9c]
mov ecx, dword [eax + 0x88]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
push edi
push ecx
mov ecx, dword [ebx + 0x10]
push edx
push eax
call ecx
add esp, 0x10
test eax, eax
jne 0x47eded
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
push 0xc
lea edx, [esp + 0x28]
push edx
mov edx, dword [ebx + 4]
push eax
push ecx
call edx
add esp, 0x10
cmp eax, 0xc
jb 0x47eded
xor ebp, ebp
mov eax, esi
call fcn.0047dc20
xor byte [esp + ebp + 0x24], al
movsx eax, byte [esp + ebp + 0x24]
mov edi, dword [ebx + 0xb0]
call fcn.0047dc40
inc ebp
cmp ebp, 0xc
jl 0x47ef54
mov eax, dword [ebx + 0x9c]
add dword [eax + 0x3c], 0xc
mov dword [ebx + 0xa0], 1
pop ebp
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043640c
add esp, 0x24
ret
push ebp
call fcn.004368b6
mov ecx, dword [esp + 0x34]
add esp, 4
pop ebp
mov eax, esi
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.0043640c
add esp, 0x24
ret