Function at 0x21120900
Capabilities:
Create directory

Disassembly:
sub esp, 0x194
test byte [esp + 0x19c], 2
push ebx
push ebp
push esi
mov ebp, edx
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ecx
je 0x21120a96
lea edi, [ecx + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x24]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
lea edi, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x21120973
mov bl, 0x2e
cmp byte [esp + edx + 0x24], bl
je 0x21120973
or ecx, 0xffffffff
xor eax, eax
inc edx
lea edi, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x2112095a
or ecx, 0xffffffff
xor eax, eax
mov edi, str._Samples
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [esp + edx + 0x24]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x211209ae
xor eax, eax
jmp 0x211209b3
mov eax, dword [0x21151814]
mov ecx, eax
push ecx
inc eax
lea edx, [esp + 0x28]
push edx
mov dword [0x21151814], eax
lea eax, [esp + 0x12c]
push str._s_d.wav
push eax
call fcn.2112f33b
mov eax, dword [ebp + 4]
mov ecx, eax
and ecx, 1
add ecx, eax
lea ecx, [ecx + ebp + 8]
lea edi, [ebp + 0xc]
add esp, 0x10
cmp edi, ecx
mov dword [esp + 0x14], ecx
jae 0x21120a63
cmp dword [edi], 0x5453494c
jne 0x21120a51
cmp dword [edi + 8], 0x4f464e49
jne 0x21120a51
mov eax, dword [edi + 4]
mov edx, eax
and edx, 1
add edx, eax
lea ebx, [edx + edi + 8]
lea esi, [edi + 0xc]
cmp esi, ebx
jae 0x21120a51
cmp dword [esi], 0x4d414e49
jne 0x21120a3b
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x12c]
push str._s_s.wav
push edx
call fcn.2112f33b
add esp, 0x10
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 1
add ecx, eax
lea esi, [esi + ecx + 8]
cmp esi, ebx
jb 0x21120a15
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 4]
mov edx, eax
and edx, 1
add edx, eax
lea edi, [edi + edx + 8]
cmp edi, ecx
jb 0x211209ef
mov eax, dword [ebp + 4]
mov esi, dword [ebp]
mov edi, dword [ebp + 8]
add eax, 8
push eax
push ebp
lea ecx, [esp + 0x12c]
push ecx
mov dword [ebp], 0x46464952
mov dword [ebp + 8], 0x45564157
call sym.mss32.dll__AIL_file_write_12
mov ecx, dword [esp + 0x10]
mov dword [ebp], esi
mov dword [ebp + 8], edi
mov eax, dword [ecx + 0x120]
mov esi, dword [eax + 4]
mov ecx, dword [esp + 0x10]
and esi, 0xffffff
mov dword [eax + 4], esi
mov edx, dword [ecx + 0x120]
mov eax, dword [edx + 4]
xor ebx, ebx
test eax, eax
jbe 0x21120ad4
mov ecx, dword [ecx + 0x124]
mov edx, dword [esp + 0x1a8]
cmp dword [ecx], edx
je 0x21120ad4
inc ebx
add ecx, 4
cmp ebx, eax
jb 0x21120ac8
cmp ebx, eax
je 0x21120cc7
lea edi, [ebp + 0xc]
mov esi, edi
push 4
mov edx, str.fmt
mov ecx, esi
mov dword [esp + 0x18], edi
call fcn.2111afa0
test eax, eax
je 0x21120b17
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 1
add ecx, eax
lea esi, [esi + ecx + 8]
push 4
mov edx, str.fmt
mov ecx, esi
call fcn.2111afa0
test eax, eax
jne 0x21120af7
cmp word [esi + 8], 1
je 0x21120b52
mov esi, edi
push 4
mov edx, str.pcm
mov ecx, esi
call fcn.2111afa0
test eax, eax
je 0x21120b52
mov eax, dword [esi + 4]
mov edx, eax
and edx, 1
add edx, eax
lea esi, [esi + edx + 8]
push 4
mov edx, str.pcm
mov ecx, esi
call fcn.2111afa0
test eax, eax
jne 0x21120b32
mov ax, word [esi + 0xa]
xor ebp, ebp
cmp ax, 1
jne 0x21120b65
cmp word [esi + 0x16], 8
je 0x21120ba2
cmp ax, 2
jne 0x21120b79
cmp word [esi + 0x16], 8
jne 0x21120b79
mov ebp, 2
jmp 0x21120ba2
cmp ax, 1
mov ecx, 0x10
jne 0x21120b91
cmp word [esi + 0x16], cx
jne 0x21120b91
mov ebp, 1
jmp 0x21120ba2
cmp ax, 2
jne 0x21120ba2
cmp word [esi + 0x16], cx
jne 0x21120ba2
mov ebp, 3
push 4
mov edx, str.data
mov ecx, edi
call fcn.2111afa0
test eax, eax
je 0x21120bd4
mov eax, dword [edi + 4]
mov ecx, eax
and ecx, 1
add ecx, eax
lea edi, [edi + ecx + 8]
push 4
mov edx, str.data
mov ecx, edi
call fcn.2111afa0
test eax, eax
jne 0x21120bb4
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x128]
lea ebx, [ebx + ebx*2]
lea ebx, [ebx + ebx*4]
shl ebx, 2
mov dword [ebx + edx + 4], ebp
mov ecx, dword [esi + 0xc]
mov edx, dword [eax + 0x128]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov dword [esp + 0x20], ecx
fild qword [esp + 0x1c]
add edi, 8
fstp dword [ebx + edx + 8]
mov edx, dword [eax + 0x128]
mov esi, dword [edi - 4]
mov dword [ebx + edx + 0x10], esi
mov edx, dword [eax + 0x128]
mov dword [ebx + edx + 0xc], edi
mov eax, dword [eax + 0x128]
mov edx, dword [esp + 0x18]
mov dword [ebx + eax + 0x18], ecx
mov ecx, ebp
call fcn.21120160
test eax, eax
je 0x21120cb6
cmp dword [ebp], 0x706d7377
jne 0x21120c99
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x128]
lea eax, [ebp + 8]
lea edi, [ebx + ecx + 0x18]
mov ecx, 5
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x21120c8b
mov ecx, dword [eax]
add ecx, eax
mov eax, dword [edx + 0x128]
mov esi, dword [ecx]
lea eax, [ebx + eax + 0x2c]
mov dword [eax], esi
mov esi, dword [ecx + 4]
mov dword [eax + 4], esi
mov esi, dword [ecx + 8]
mov dword [eax + 8], esi
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [edx + 0x128]
mov dword [ebx + edx + 0x14], 1
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x18]
mov ecx, eax
and ecx, 1
add ecx, eax
lea ebp, [ecx + ebp + 8]
mov ecx, ebp
call fcn.21120160
test eax, eax
jne 0x21120c3d
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x128]
mov dword [ebx + eax], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x194
ret 8