Function at 0x100b7679
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0x30]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x2c], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
push edi
mov dword [ebp - 0x30], ebx
call fcn.100b741c
add esp, 0x2c
test al, al
je 0x100b7816
mov eax, dword [ebp - 8]
test byte [ebp + 0x10], 0x10
mov ecx, eax
je 0x100b76d2
sar eax, 1
mov ecx, eax
mov eax, dword [ebp + 0x10]
and eax, 0x40
je 0x100b76dc
sar ecx, 1
test byte [ebp + 0x12], 4
je 0x100b76ea
cmp eax, ebx
je 0x100b76ea
and byte [ebp + 0x11], 0xef
mov edx, dword [ebp + 0x10]
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 - 0x14]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
call fcn.100ae390
mov esi, eax
cmp esi, ebx
je 0x100b7816
mov eax, dword [esi + 0x10c]
dec eax
push eax
push ebx
push esi
call fcn.100aea99
mov eax, dword [ebp - 0x18]
push ebx
mov dword [esi + 0x15d], eax
push dword [ebp - 0x1c]
push edi
call fcn.100b5e50
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
push ebx
push esi
call fcn.100ae93d
cmp dword [esi + 0x15d], ebx
jne 0x100b779d
cmp dword [ebp - 0xc], 8
je 0x100b7777
cmp dword [ebp - 0xc], 0x10
je 0x100b7777
test byte [ebp + 0x12], 0x40
je 0x100b779d
test byte [ebp + 0x10], 0x10
push edi
je 0x100b7788
mov eax, dword [ebp - 4]
shr eax, 1
push eax
push 2
jmp 0x100b778d
push dword [ebp - 4]
push 1
push dword [ebp + 8]
call fcn.100b5c75
add esp, 0x10
jmp 0x100b7830
mov edi, str.C:dev_fmod360src_src_format_wav.c
push 0x2f1
push edi
push dword [ebp - 4]
push ebx
call fcn.100b5433
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100b77cc
push esi
mov dword [0x10127394], 0xc
call fcn.100ae427
jmp 0x100b7816
push dword [ebp + 0xc]
push dword [ebp - 4]
push 1
push ebx
call fcn.100b5c75
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push ebx
push esi
call fcn.100b75b0
add esp, 0x28
test al, al
jne 0x100b781d
push esi
mov dword [0x10127394], 0xb
call fcn.100ae427
push 0x2ff
push edi
push ebx
push 0
call fcn.100b53d9
add esp, 0x10
xor eax, eax
jmp 0x100b78a7
push 0x303
push edi
push ebx
push 0
call fcn.100b53d9
add esp, 0x10
xor ebx, ebx
test byte [ebp + 0x10], 8
je 0x100b784a
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp - 0x10], ebx
jbe 0x100b784a
xor byte [eax], 0x80
inc eax
inc ecx
cmp ecx, dword [ebp - 0x10]
jb 0x100b7840
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push dword [ebp + 8]
push esi
call fcn.100ae9c7
test byte [ebp + 0x10], 0x10
mov eax, dword [ebp - 8]
je 0x100b7867
sar eax, 1
test byte [ebp + 0x10], 0x40
je 0x100b786f
sar eax, 1
cmp dword [ebp - 0x30], ebx
jne 0x100b7884
cmp dword [ebp - 0x2c], ebx
jne 0x100b7884
dec eax
push eax
push ebx
push esi
call fcn.100aea99
jmp 0x100b789e
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push esi
call fcn.100aea99
test byte [ebp + 0x10], 1
jne 0x100b789e
push 2
push esi
call fcn.100aea10
push esi
call fcn.100b7599
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret