Function at 0x47a3d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x84
call fcn.0054d1b0
mov eax, dword [0x6d1554]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [esp + 0x44], edx
mov edi, ecx
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
test eax, eax
jne 0x47a436
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x47a459
sub esp, 8
mov edx, 0xa2
mov ecx, 6
push 0x9f
call fcn.0040d040
add esp, 0xc
jmp 0x47a76e
mov ebx, dword [ecx + 8]
test ebx, ebx
js 0x47a76e
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x47a48e
mov dword [ebp + 0x14], ebx
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x47a4b9
mov eax, 7
mov dword [esp + 0x1c], 7
mov edi, eax
mov dword [esp + 0x18], edi
jmp 0x47a4fa
cmp eax, 0xfffffffe
jne 0x47a498
mov dword [ebp + 0x14], eax
jmp 0x47a46f
jge 0x47a46f
sub esp, 8
push 0x88
mov edx, 0x95
mov ecx, 4
call fcn.0040d040
add esp, 0xc
jmp 0x47a76e
mov esi, dword [ecx]
lea edi, [eax*4]
shl eax, 5
mov dword [esp + 0x10], eax
mov ecx, dword [edi + esi - 4]
call fcn.00412430
mov ecx, dword [edi + esi - 4]
sub eax, 0x21
and eax, 7
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call fcn.00412430
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
add ecx, 0xffffffe7
mov edi, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x1c]
cdq
and edx, 7
add edx, eax
mov eax, 0xff
shl eax, cl
sar edx, 3
test byte [esi], al
je 0x47a51c
sub esp, 8
push 0x85
jmp 0x47a4a2
test edi, edi
jne 0x47a526
inc esi
dec edx
mov dword [esp + 0x14], esi
lea eax, [ebx + 2]
cmp edx, eax
jge 0x47a537
sub esp, 8
push 0x6d
jmp 0x47a4a2
mov ecx, edx
sub ecx, ebx
lea eax, [ecx - 2]
cmp dword [ebp + 0x14], eax
jg 0x47a52d
cmp byte [esi + edx - 1], 0xbc
je 0x47a557
sub esp, 8
push 0x86
jmp 0x47a4a2
lea eax, [ecx - 1]
push 0x8b
mov ecx, eax
mov dword [esp + 0x14], eax
lea edi, [esi + eax]
call fcn.0040f410
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
jne 0x47a584
sub esp, 8
push 0x41
jmp 0x47a4a2
push dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov ecx, esi
push ebx
push edi
call fcn.00424140
add esp, 0xc
test eax, eax
js 0x47a740
mov edx, dword [esp + 0x10]
test edx, edx
jle 0x47a5ca
sub dword [esp + 0x14], esi
mov ecx, esi
mov esi, edx
mov edx, dword [esp + 0x14]
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x47a5b4
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x18], 0
je 0x47a5e3
mov ecx, 8
mov eax, 0xff
sub ecx, dword [esp + 0x1c]
sar eax, cl
and byte [esi], al
mov al, byte [esi]
xor esi, esi
test al, al
mov eax, dword [esp + 0xc]
jne 0x47a5fd
lea ecx, [edx - 1]
cmp esi, ecx
jge 0x47a5fd
inc esi
cmp byte [esi + eax], 0
je 0x47a5f2
mov al, byte [esi + eax]
inc esi
cmp al, 1
je 0x47a624
sub esp, 8
push 0x87
mov edx, 0x95
mov ecx, 4
call fcn.0040d040
add esp, 0xc
jmp 0x47a73c
mov eax, dword [ebp + 0x14]
sub edx, esi
mov dword [esp + 0x10], edx
test eax, eax
js 0x47a63f
cmp edx, eax
je 0x47a63f
sub esp, 8
push 0x88
jmp 0x47a60d
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x28]
push 0
call fcn.00440700
add esp, 4
test eax, eax
je 0x47a73c
push 8
lea eax, [esp + 0x2c]
push 0x693f40
push eax
call dword [esp + 0x48]
add esp, 0xc
test eax, eax
je 0x47a73c
push ebx
push dword [esp + 0x48]
lea eax, [esp + 0x30]
push eax
call dword [esp + 0x48]
add esp, 0xc
test eax, eax
je 0x47a73c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47a6b1
push eax
mov eax, dword [esp + 0x10]
add eax, esi
push eax
lea eax, [esp + 0x30]
push eax
call dword [esp + 0x48]
add esp, 0xc
test eax, eax
je 0x47a73c
push 0
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x2c]
call fcn.00440910
add esp, 4
test eax, eax
je 0x47a73c
lea ecx, [esp + 0x48]
sub ebx, 4
jb 0x47a6e1
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x47a6e6
add ecx, 4
add edi, 4
sub ebx, 4
jae 0x47a6d0
cmp ebx, 0xfffffffc
je 0x47a734
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x47a713
cmp ebx, 0xfffffffd
je 0x47a734
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x47a713
cmp ebx, 0xfffffffe
je 0x47a734
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x47a713
cmp ebx, 0xffffffff
je 0x47a734
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x47a734
sub esp, 8
mov edx, 0x95
mov ecx, 4
push 0x68
call fcn.0040d040
add esp, 0xc
mov dword [esp + 0x20], 0
jmp 0x47a73c
mov dword [esp + 0x20], 1
mov esi, dword [esp + 0xc]
mov eax, dword [0x6da740]
test eax, eax
je 0x47a751
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x6d31f8]
mov ecx, dword [0x6da740]
add esp, 4
test ecx, ecx
je 0x47a76e
push 1
push 0
call ecx
add esp, 8
lea ecx, [esp + 0x28]
call fcn.00440b90
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0054d193
mov esp, ebp
pop ebp
ret