Function at 0x46c430
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4c892b
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4eadc8]
xor eax, esp
mov dword [esp + 0x30], eax
push ebp
push esi
push edi
mov eax, dword [0x4eadc8]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
push ebx
mov dword [esp + 0x2c], ebp
call fcn.0046d340
push 4
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
mov dword [esp + 0x34], 0x494e41
mov byte [esp + 0x23], 3
call fcn.00478a6e
mov esi, 0x4e0d20
lea eax, [esp + 0x2c]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x46c4b3
test cl, cl
je 0x46c4af
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x46c4b3
add eax, 2
add esi, 2
test cl, cl
jne 0x46c493
xor eax, eax
jmp 0x46c4b8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46c4d5
push 0x4e0d38
push 0x4dcc88
call fcn.00476f98
add esp, 8
xor eax, eax
jmp 0x46c816
push 1
lea ecx, [esp + 0x1f]
push ecx
mov ecx, ebp
call fcn.00478a6e
push 1
push ebx
mov ecx, ebp
call fcn.00478a6e
lea eax, [ebx + 1]
push 1
push eax
mov ecx, ebp
call fcn.00478a6e
lea eax, [ebx + 2]
push 1
push eax
mov ecx, ebp
call fcn.00478a6e
lea eax, [ebx + 3]
push 1
push eax
mov ecx, ebp
call fcn.00478a6e
push 2
lea edi, [ebx + 6]
push edi
mov ecx, ebp
call fcn.00478a6e
cmp byte [esp + 0x1b], 6
jne 0x46c536
push 4
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.00478a6e
push 2
lea eax, [ebx + 8]
push eax
mov ecx, ebp
call fcn.00478a6e
push 2
lea ecx, [ebx + 0xa]
push ecx
mov ecx, ebp
call fcn.00478a6e
push 1
lea edx, [ebx + 4]
push edx
mov ecx, ebp
call fcn.00478a6e
push 0xe
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.00478a6e
movsx ecx, word [edi]
movzx edx, byte [ebx]
push ecx
push edx
mov esi, ebx
call fcn.0046d280
push 0x20
lea eax, [ebx + 0xc]
push eax
mov ecx, ebp
call fcn.00478a6e
mov al, byte [esp + 0x1b]
cmp al, 3
jne 0x46c5a6
movsx ecx, word [edi]
mov edx, dword [ebx + 0x30]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push edx
mov ecx, ebp
call fcn.00478a6e
jmp 0x46c5cb
cmp al, 4
jb 0x46c5cb
xor eax, eax
xor esi, esi
cmp ax, word [edi]
jge 0x46c5cb
mov ecx, dword [ebx + 0x30]
lea eax, [ecx + esi*8]
push 8
push eax
mov ecx, ebp
call fcn.00478a6e
movsx edx, word [edi]
inc esi
cmp esi, edx
jl 0x46c5b3
xor eax, eax
xor esi, esi
cmp ax, word [edi]
jge 0x46c5fc
jmp 0x46c5e0
mov ecx, dword [ebx + 0x30]
movzx edx, word [ecx + esi*8 + 2]
mov ecx, dword [0x68910c]
push edx
call fcn.0046d6f0
movsx eax, word [edi]
inc esi
cmp esi, eax
jl 0x46c5e0
cmp byte [ebx], 0
mov dword [esp + 0x24], 0
jbe 0x46c765
lea edi, [ebx + 0x34]
mov dword [esp + 0x20], edi
cmp dword [edi - 0x28], 0
je 0x46c74a
xor ecx, ecx
xor esi, esi
cmp cx, word [ebx + 6]
jge 0x46c74a
lea esp, [esp]
mov edx, dword [edi]
cmp dword [edx + esi*4], 0
lea eax, [edx + esi*4]
je 0x46c6db
mov ebp, dword [eax]
test ebp, ebp
je 0x46c6d7
xor ecx, ecx
xor eax, eax
mov word [ebp + 2], cx
xor edx, edx
mov word [ebp + 6], cx
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
mov byte [ebp], al
mov word [ebp + 4], dx
mov word [ebp + 8], dx
mov dword [esp + 0x1c], ecx
cmp ecx, eax
je 0x46c687
call fcn.0047de20
mov eax, dword [esp + 0x1c]
push eax
call fcn.0048d634
add esp, 4
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
mov dword [esp + 0x1c], ecx
cmp ecx, eax
je 0x46c6a9
call fcn.0047de20
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0048d634
add esp, 4
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov dword [esp + 0x1c], ecx
cmp ecx, eax
je 0x46c6cb
call fcn.0047de20
mov edx, dword [esp + 0x1c]
push edx
call fcn.0048d634
add esp, 4
xor eax, eax
push ebp
mov dword [ebp + 0x10], eax
call fcn.0048d634
add esp, 4
mov ebp, dword [esp + 0x28]
mov eax, dword [edi]
push 0x20
mov dword [eax + esi*4], 0
call fcn.0048d65a
add esp, 4
xor ecx, ecx
cmp eax, ecx
je 0x46c719
xor edx, edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov byte [eax], cl
mov word [eax + 2], dx
mov word [eax + 4], dx
mov word [eax + 6], dx
mov word [eax + 8], dx
mov dword [eax + 0x14], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
jmp 0x46c71b
xor eax, eax
mov dword [esp + 0x4c], 0xffffffff
mov ecx, dword [edi]
mov dword [ecx + esi*4], eax
movzx edx, byte [ebx + 1]
mov eax, dword [edi]
mov ecx, dword [eax + esi*4]
push edx
mov edi, ebp
call fcn.0046f3e0
movsx ecx, word [ebx + 6]
mov edi, dword [esp + 0x20]
inc esi
cmp esi, ecx
jl 0x46c630
mov eax, dword [esp + 0x24]
movzx edx, byte [ebx]
inc eax
add edi, 4
cmp eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
jl 0x46c614
cmp byte [esp + 0x1b], 4
jb 0x46c7a3
push 4
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.00478a6e
xor ecx, ecx
xor eax, eax
cmp cx, word [ebx + 6]
jge 0x46c7a3
mov edx, 0x14ad
lea esp, [esp]
mov ecx, dword [ebx + 0x30]
xor dword [ecx + eax*8 + 4], edx
lea ecx, [ecx + eax*8]
movsx ecx, word [ebx + 6]
inc eax
cmp eax, ecx
jl 0x46c790
mov al, byte [ebx + 3]
xor ecx, ecx
xor edx, edx
mov dword [ebx + 0x2c], ecx
test al, al
je 0x46c7ee
jbe 0x46c811
movsx edi, word [ebx + 6]
movzx esi, byte [ebx + 2]
jmp 0x46c7c0
cmp ecx, edi
jge 0x46c7e1
mov eax, dword [ebx + 0x30]
lea eax, [eax + ecx*8 + 4]
jmp 0x46c7d0
mov ebp, dword [eax]
add dword [ebx + 0x2c], ebp
movsx ebp, word [ebx + 6]
inc ecx
add eax, 8
cmp ecx, ebp
jl 0x46c7d0
movzx eax, byte [ebx + 3]
inc edx
cmp edx, eax
mov ecx, esi
jl 0x46c7c0
jmp 0x46c811
cmp dx, word [ebx + 6]
jge 0x46c811
mov eax, dword [ebx + 0x30]
add eax, 4
lea ebx, [ebx]
mov edx, dword [eax]
add dword [ebx + 0x2c], edx
movsx edx, word [ebx + 6]
inc ecx
add eax, 8
cmp ecx, edx
jl 0x46c800
mov eax, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0048d5a8
add esp, 0x40
ret 4