Function at 0x100b4b80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
xor edi, edi
lea eax, [esp + 0x30]
push edi
mov ebp, dword [esp + 0x4c]
push edi
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x50]
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
push ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
call fcn.100b4670
add esp, 0x2c
test al, al
jne 0x100b4bda
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret
mov al, byte [esp + 0x4c]
mov dword [esp + 0x48], 0x900
test al, 0x40
je 0x100b4bf2
mov dword [esp + 0x48], 0x1200
mov edx, dword [esp + 0x18]
push edi
push edx
push ebp
call fcn.100b5e50
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp dword [eax + 0x4874], edi
jne 0x100b4c22
mov ecx, dword [esp + 0x48]
push edi
push ecx
push ebp
call fcn.100b44e0
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x100b4c26
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x100b4c3e
pop edi
pop esi
pop ebp
mov dword [0x10127394], 0xa
xor eax, eax
pop ebx
add esp, 0x30
ret
mov ecx, dword [esp + 0x4c]
test cl, 0x10
je 0x100b4c49
sar eax, 1
mov edx, ecx
and edx, 0x40
je 0x100b4c52
sar eax, 1
test ch, 0x10
je 0x100b4c65
cmp edx, edi
je 0x100b4c65
or ecx, 0x40000
mov dword [esp + 0x4c], ecx
test ecx, 0x40000
je 0x100b4c79
test cl, 0x40
je 0x100b4c79
and ch, 0xef
mov dword [esp + 0x4c], ecx
mov edx, ecx
push 0xff
and dl, 0x40
neg dl
sbb edx, edx
and dl, 0x7f
add edx, 0x80
push edx
mov edx, dword [esp + 0x3c]
push 0xff
push edx
push ecx
push eax
mov eax, dword [esp + 0x5c]
push eax
call fcn.100ae390
mov esi, eax
cmp esi, edi
jne 0x100b4cb7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret
mov ecx, dword [esi + 0x10c]
dec ecx
push ecx
push edi
push esi
call fcn.100aea99
mov edx, dword [esp + 0x24]
push 0x275
mov dword [esi + 0x15d], edx
mov eax, dword [esp + 0x20]
add eax, 0x3e8
push str.C:dev_fmod360src_src_format_mpeg.c
push eax
push edi
call fcn.100b5433
mov ebx, eax
add esp, 0x10
cmp ebx, edi
mov dword [esp + 0x2c], ebx
jne 0x100b4d11
push esi
mov dword [0x10127394], 0xc
call fcn.100ae427
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret
mov ecx, dword [esp + 0x18]
push edi
push ecx
push ebp
call fcn.100b5e50
add esp, 0xc
lea edx, [esp + 0x38]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x3c]
push edx
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
push 0
push esi
call fcn.100ae93d
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
push 1
push ebx
call fcn.100b5c75
add esp, 0x10
jmp 0x100b4d58
mov ebx, dword [esp + 0x2c]
mov eax, dword [esi + 0x15d]
lea edx, [esp + 0x28]
xor ebp, ebp
push edx
add ebx, edi
push ebp
push ebp
push ebx
push eax
call fcn.100b8190
test eax, eax
je 0x100b4da8
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov eax, dword [esi + 0x15d]
lea ecx, [esp + 0x48]
add edx, ebp
push ecx
push edx
push ebx
push eax
call fcn.100b8410
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
add ebp, eax
mov dword [esp + 0x14], ebp
lea edi, [edi + ecx + 4]
mov ebp, 1
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
add edx, 0xfffff000
cmp ebx, edx
jae 0x100b4dc4
cmp edi, dword [esp + 0x1c]
jae 0x100b4dc4
test ebp, ebp
jne 0x100b4d54
test byte [esp + 0x4c], 8
je 0x100b4dea
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
jbe 0x100b4dea
mov dl, byte [eax]
xor dl, 0x80
mov byte [eax], dl
mov edx, dword [esp + 0x44]
inc eax
inc ecx
cmp ecx, edx
jb 0x100b4dd9
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push esi
call fcn.100ae9c7
mov cl, byte [esp + 0x4c]
mov eax, ebx
test cl, 0x10
je 0x100b4e13
sar ebx, 1
mov eax, ebx
test cl, 0x40
je 0x100b4e1a
sar eax, 1
dec eax
push eax
push 0
push esi
call fcn.100aea99
mov ecx, dword [esp + 0x2c]
push 0x2b6
push str.C:dev_fmod360src_src_format_mpeg.c
push ecx
push 0
call fcn.100b53d9
mov edx, dword [esi + 0x15d]
add esp, 0x10
push edx
call fcn.100b4650
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret