Function at 0x101c6bf7
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.101a79d7
mov eax, dword [0x101cc9dc]
test eax, eax
push ebx
push ebp
je 0x101c6ce2
push 0xd8
push 0x10197330
push 0x13
push 5
call fcn.101b9867
call fcn.101b9677
mov ebx, dword [0x101cc9e0]
xor ecx, ecx
cmp ebx, eax
sete cl
push 0xda
push 0x10197330
push 0x13
push 6
mov ebp, ecx
mov dword [esp + 0x28], ebp
call fcn.101b9867
add esp, 0x20
test ebp, ebp
jne 0x101c6c6b
push 0xdf
push 0x10197330
push 0x12
push 9
call fcn.101b9867
add esp, 0x10
mov edx, dword [0x101cc9c8]
mov ecx, dword [0x101cc9cc]
mov eax, dword [0x101cc9c4]
mov dword [esp + 0x10], edx
mov edx, dword [0x101cc9ac]
push esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x101cc9b0]
mov dword [esp + 0x2c], edx
mov edx, dword [0x101cc9b4]
push edi
mov edi, eax
add eax, esi
cmp eax, 0x3ff
mov dword [esp + 0x34], ecx
mov ecx, dword [0x101cc9b8]
mov dword [esp + 0x38], edx
mov edx, dword [0x101cc9bc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [0x101cc9c4], eax
jl 0x101c6cf3
cdq
mov ecx, 0x3ff
idiv ecx
mov dword [0x101cc9c0], ecx
mov dword [0x101cc9c4], edx
jmp 0x101c6d0a
mov dword [esp + 8], 0
mov ebp, dword [esp + 8]
jmp 0x101c6c55
mov ecx, dword [0x101cc9c0]
cmp ecx, 0x3ff
jge 0x101c6d0a
cmp eax, ecx
jle 0x101c6d0a
mov dword [0x101cc9c0], eax
mov eax, esi
cdq
mov ecx, 0x14
idiv ecx
xor ecx, ecx
test edx, edx
mov edx, dword [0x101cc9cc]
setg cl
add ecx, eax
add edx, ecx
test ebp, ebp
mov dword [0x101cc9cc], edx
jne 0x101c6d45
push 0xff
push 0x10197330
push 0x12
push 0xa
call fcn.101b9867
add esp, 0x10
lea edx, [esp + 0x20]
push edx
call fcn.101b65b7
add esp, 4
test esi, esi
jle 0x101c6e77
mov ebp, dword [esp + 0x48]
mov ecx, esi
dec esi
mov eax, 0xcccccccd
mul esi
shr edx, 4
inc edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x14], edx
jmp 0x101c6d7a
mov ecx, dword [esp + 0x4c]
cmp ecx, 0x14
mov esi, ecx
jle 0x101c6d86
mov esi, 0x14
push 0
call fcn.101d4bc7
push eax
lea eax, [esp + 0x28]
push eax
call fcn.101b65d7
push 0x14
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.101b6707
lea ebx, reloc.WINMM.dll_midiStreamOut
add esp, 0x18
test ebx, ebx
lea edx, [esp + 0x20]
lea ecx, reloc.WINMM.dll_midiStreamOut
jle 0x101c6de2
mov eax, esi
sub eax, ebx
push eax
push ecx
push edx
call fcn.101b6707
push ebx
lea eax, [esp + 0x30]
push 0x101cc598
push eax
call fcn.101b6707
add esp, 0x18
jmp 0x101c6ded
push esi
push ecx
push edx
call fcn.101b6707
add esp, 0xc
push esi
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.101b6707
push 8
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.101b6707
push 0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.101b6717
mov ebx, dword [esp + 0x40]
add esp, 0x24
inc ebx
add ebp, esi
xor eax, eax
test esi, esi
mov dword [esp + 0x1c], ebx
jle 0x101c6e59
jmp 0x101c6e37
mov bl, byte [edi + 0x101cc598]
mov dl, byte [esp + eax + 0x30]
xor bl, dl
mov byte [edi + 0x101cc598], bl
inc edi
cmp edi, 0x3ff
jl 0x101c6e54
xor edi, edi
inc eax
cmp eax, esi
jl 0x101c6e37
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
sub ecx, 0x14
dec eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x14], eax
jne 0x101c6d76
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
call fcn.101b6797
add esp, 4
test ebp, ebp
pop edi
pop esi
jne 0x101c6ea0
push 0x12a
push 0x10197330
push 0x12
push 9
call fcn.101b9867
add esp, 0x10
xor eax, eax
jmp 0x101c6ea7
mov cl, byte [esp + eax + 0x28]
mov dl, byte [eax + 0x101cc9ac]
mov bl, byte [eax + 0x101cc9ad]
xor dl, cl
mov cl, byte [esp + eax + 0x2a]
mov byte [eax + 0x101cc9ac], dl
mov dl, byte [esp + eax + 0x29]
xor bl, dl
mov dl, byte [eax + 0x101cc9ae]
xor dl, cl
mov cl, byte [eax + 0x101cc9af]
mov byte [eax + 0x101cc9ae], dl
mov dl, byte [esp + eax + 0x2b]
xor cl, dl
mov byte [eax + 0x101cc9ad], bl
mov bl, byte [eax + 0x101cc9b0]
mov byte [eax + 0x101cc9af], cl
mov cl, byte [esp + eax + 0x2c]
xor bl, cl
mov byte [eax + 0x101cc9b0], bl
add eax, 5
cmp eax, 0x14
jl 0x101c6ea7
fld qword [0x101cc9d0]
fcomp qword [0x10197328]
fnstsw ax
test ah, 5
jp 0x101c6f2c
fld qword [0x101cc9d0]
fadd qword [esp + 0x48]
fstp qword [0x101cc9d0]
test ebp, ebp
pop ebp
pop ebx
jne 0x101c6f48
push 0x135
push 0x10197330
push 0x12
push 0xa
call fcn.101b9867
add esp, 0x10
add esp, 0x34
ret