Function at 0x48b140
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x4d1698]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov esi, edx
cmp dword [esi + 0x80], 0
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jne 0x48b328
lea ecx, [ecx]
call fcn.00485750
cmp al, 0x4f
jne 0x48b31b
cmp byte [esi + 0x40], 0
je 0x48b18d
mov dword [esp + 0x10], 0
jmp 0x48b1bb
mov eax, dword [esi + 0x30]
test eax, eax
je 0x48b199
sub eax, dword [esi + 0x34]
jmp 0x48b1b7
cmp dword [esi + 0x20], 0
je 0x48b1a8
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x10], edx
jmp 0x48b1bb
mov eax, dword [esi + 0x14]
push eax
call fcn.0048d4eb
add esp, 4
sub eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
add ecx, 0xffffffe7
cmp ecx, dword [esi + 0x3c]
ja 0x48b328
mov edi, 1
call fcn.00485750
cmp al, byte [edi + str.OggS]
jne 0x48b1e3
inc edi
cmp edi, 4
jl 0x48b1d0
cmp dword [esi + 0x80], 0
jne 0x48b328
cmp edi, 4
jne 0x48b312
mov edx, dword [str.OggS]
mov dword [esp + 0x20], edx
mov ebp, edi
call fcn.00485750
mov byte [esp + ebp + 0x20], al
inc ebp
cmp ebp, 0x1b
jb 0x48b205
cmp dword [esi + 0x80], 0
jne 0x48b328
cmp byte [esp + 0x24], 0
jne 0x48b312
movzx ebx, byte [esp + 0x39]
movzx eax, byte [esp + 0x38]
shl ebx, 8
add ebx, eax
mov eax, dword [esp + 0x36]
shl ebx, 8
movzx ecx, ah
add ebx, ecx
movzx edx, al
shl ebx, 8
xor edi, edi
add ebx, edx
xor ebp, ebp
mov dword [esp + 0x36], edi
xor ecx, ecx
lea esp, [esp]
movzx edx, byte [esp + ecx + 0x20]
mov eax, ebp
shr eax, 0x18
xor edx, eax
mov eax, ebp
movzx ebp, byte [esp + ecx + 0x21]
shl eax, 8
xor eax, dword [edx*4 + 0x4da538]
add ecx, 3
mov edx, eax
shr edx, 0x18
xor edx, ebp
shl eax, 8
xor eax, dword [edx*4 + 0x4da538]
movzx edx, byte [esp + ecx + 0x1f]
mov ebp, eax
shr ebp, 0x18
xor edx, ebp
shl eax, 8
xor eax, dword [edx*4 + 0x4da538]
mov ebp, eax
cmp ecx, 0x1b
jb 0x48b260
movzx eax, byte [esp + 0x3a]
cmp eax, edi
jbe 0x48b30e
mov dword [esp + 0x14], eax
jmp 0x48b2c0
call fcn.00485750
mov ecx, ebp
movzx eax, al
shr ecx, 0x18
xor ecx, eax
shl ebp, 8
xor ebp, dword [ecx*4 + 0x4da538]
add edi, eax
dec dword [esp + 0x14]
jne 0x48b2c0
test edi, edi
je 0x48b30e
cmp dword [esi + 0x80], 0
jne 0x48b328
test edi, edi
je 0x48b30e
call fcn.00485750
mov ecx, ebp
movzx edx, al
shr ecx, 0x18
xor ecx, edx
shl ebp, 8
xor ebp, dword [ecx*4 + 0x4da538]
dec edi
jne 0x48b2f2
cmp ebp, ebx
je 0x48b33d
mov edi, dword [esp + 0x10]
call fcn.00485910
cmp dword [esi + 0x80], 0
je 0x48b170
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0048c97b
add esp, 0x30
ret
mov edi, dword [esp + 0x18]
test edi, edi
je 0x48b377
cmp byte [esi + 0x40], 0
je 0x48b34f
xor eax, eax
jmp 0x48b375
mov eax, dword [esi + 0x30]
test eax, eax
je 0x48b35b
sub eax, dword [esi + 0x34]
jmp 0x48b375
cmp dword [esi + 0x20], 0
je 0x48b366
mov eax, dword [esi + 0x2c]
jmp 0x48b375
mov eax, dword [esi + 0x14]
push eax
call fcn.0048d4eb
add esp, 4
sub eax, dword [esi + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x48b38c
movzx ecx, byte [esp + 0x25]
shr ecx, 2
and ecx, 1
mov dword [eax], ecx
mov edi, dword [esp + 0x10]
dec edi
call fcn.00485910
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0048c97b
add esp, 0x30
ret