Function at 0x463700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0x2c]
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x10]
push eax
mov dword [ebp - 0x28], ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
call fcn.00463378
add esp, 0x28
test al, al
je 0x4638ad
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
test cl, 0x10
mov esi, eax
jne 0x46375a
test ecx, 0x400000
je 0x46375e
sar eax, 1
mov esi, eax
mov eax, ecx
and eax, 0x40
je 0x463767
sar esi, 1
test ecx, 0x40000
je 0x463779
cmp eax, ebx
je 0x463779
and ch, 0xef
mov dword [ebp + 0x10], ecx
mov edx, ecx
mov eax, 0xff
and dl, 0x40
push eax
neg dl
sbb edx, edx
and dl, 0x7f
add edx, 0x80
push edx
push eax
push dword [ebp - 0x10]
push ecx
push esi
push dword [ebp + 8]
call fcn.00456a17
mov esi, eax
cmp esi, ebx
je 0x4638ad
mov eax, dword [esi + 0x10c]
dec eax
push eax
push ebx
push esi
call fcn.00457183
mov eax, dword [ebp - 0x14]
push ebx
mov dword [esi + 0x165], eax
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call fcn.00457fff
add esp, 0xc
lea eax, [ebp - 0x1c]
mov edi, dword [esi + 0x165]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
push ebx
push esi
call fcn.00457014
test al, al
jne 0x463800
push esi
call fcn.00456aae
jmp 0x4638ad
cmp dword [edi + 4], ebx
jne 0x463809
cmp dword [edi], ebx
je 0x46380f
test byte [ebp + 0x12], 0x40
je 0x463837
test byte [ebp + 0x10], 0x10
push dword [ebp + 0xc]
je 0x463830
mov eax, dword [ebp - 4]
shr eax, 1
push eax
push 2
push dword [ebp + 8]
call fcn.00457e09
add esp, 0x10
jmp 0x4638c7
push dword [ebp - 4]
push 1
jmp 0x463820
mov edi, str.C:_ProjectsMMBuilderFMOD_src_format_wav.c
push 0x2ea
push edi
push dword [ebp - 4]
push ebx
call fcn.00452927
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x463866
push esi
call fcn.00456aae
mov dword [0x5342c0], 0xc
jmp 0x4638ad
push dword [ebp + 0xc]
push dword [ebp - 4]
push 1
push ebx
call fcn.00457e09
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push ebx
push esi
call fcn.0046362d
add esp, 0x24
test al, al
jne 0x4638b4
push esi
call fcn.00456aae
push 0x2f7
push edi
push ebx
push 0
call fcn.004528cd
add esp, 0x10
mov dword [0x5342c0], 0xb
xor eax, eax
jmp 0x463943
push 0x2fc
push edi
push ebx
push 0
call fcn.004528cd
add esp, 0x10
xor ebx, ebx
test byte [ebp + 0x10], 8
je 0x4638e1
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp - 0xc], ebx
jbe 0x4638e1
xor byte [eax], 0x80
inc eax
inc ecx
cmp ecx, dword [ebp - 0xc]
jb 0x4638d7
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x20]
push dword [ebp + 8]
push esi
call fcn.004570b1
test byte [ebp + 0x10], 0x10
mov eax, dword [ebp - 8]
je 0x4638fe
sar eax, 1
test byte [ebp + 0x10], 0x40
je 0x463906
sar eax, 1
cmp dword [ebp - 0x2c], ebx
jne 0x46391b
cmp dword [ebp - 0x28], ebx
jne 0x46391b
dec eax
push eax
push ebx
push esi
call fcn.00457183
jmp 0x463935
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push esi
call fcn.00457183
test byte [ebp + 0x10], 1
jne 0x463935
push 2
push esi
call fcn.004570fa
push dword [esi + 0x165]
call fcn.004635e2
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret