Function at 0x4af9d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5b66c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x28]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x40], eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], edi
test ebx, ebx
je 0x4afcb1
test edi, edi
je 0x4afcb1
test eax, eax
je 0x4afcb1
cmp dword [ebp + 0x1c], 0x10
jne 0x4afcb1
push esi
push 0x80
push 1
push ebx
call fcn.0041c720
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4afc50
push edi
lea eax, [ebp - 0x50]
push eax
push ebx
call fcn.0041d090
push dword [ebp + 0x18]
lea eax, [ebp - 0x50]
push 0x10
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x50415757
push eax
push esi
call fcn.00424c10
mov eax, dword [ebp + 0x20]
add esp, 0x28
mov dword [esi + 0x48], 0x4af650
mov dword [esi + 0x44], 0x4af840
mov dword [esi + 0x4c], 0x4af660
cmp eax, 1
jne 0x4afa7c
mov dword [esi + 0x50], 6
jmp 0x4afa9b
cmp eax, 2
jne 0x4afa8f
mov dword [esi + 0x50], 7
mov eax, 1
jmp 0x4afa9b
mov dword [esi + 0x50], 1
mov eax, 2
lea edi, [esi + 0x68]
mov word [esi + 0x54], ax
push edi
push 0x1106
push dword [ebp - 0x38]
push ebx
call fcn.0041ecb0
add esp, 0x10
test eax, eax
jne 0x4afbde
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x46464952
mov dword [ebp - 0x28], 0x45564157
mov dword [ebp - 0x24], 0x20746d66
mov dword [ebp - 0x20], 0x10
movzx eax, word [esi + 0x50]
mov word [ebp - 0x1c], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
movzx ecx, dx
mov word [ebp - 0x1a], cx
movzx eax, word [esi + 0x54]
imul eax, dword [ebp + 0x10]
imul eax, edx
mov dword [ebp - 0x14], eax
movzx eax, word [esi + 0x54]
imul ecx, eax
mov word [ebp - 0x10], cx
movzx eax, word [esi + 0x54]
shl ax, 3
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0xc], 0x61746164
mov dword [ebp - 8], 0
call fcn.004286a0
add esp, 4
lea eax, [ebp - 0x34]
cmp dword [esi + 0x50], 1
push eax
lea eax, [ebp - 0x30]
push eax
je 0x4afbef
mov dword [ebp - 0x34], 0x24
push dword [edi]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0x74636166
mov dword [ebp - 0x44], 4
call fcn.0041eef0
add esp, 0xc
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x4afbd1
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 8
push eax
lea eax, [ebp - 0x48]
push eax
push dword [edi]
call fcn.0041eef0
add esp, 0xc
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x4afbd1
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 4
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [edi]
call fcn.0041eef0
add esp, 0xc
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x4afbd1
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 8
push eax
lea eax, [ebp - 0xc]
push eax
push dword [edi]
call fcn.0041eef0
add esp, 0xc
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4afc25
push dword [edi]
call fcn.0041ebc0
mov eax, dword [ebp - 0x38]
add esp, 4
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050101b
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x34], 0x2c
push dword [edi]
call fcn.0041eef0
add esp, 0xc
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4afc25
push dword [edi]
call fcn.0041ebc0
mov eax, dword [ebp - 0x3c]
add esp, 4
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050101b
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x24], 1
mov eax, 0xfa0
cmovge eax, dword [ebp + 0x24]
push eax
push ebx
mov dword [esi + 0x58], eax
call fcn.0041c550
add esp, 8
mov dword [esi + 0x5c], eax
test eax, eax
jne 0x4afc66
push dword [edi]
call fcn.0041ebc0
add esp, 4
pop esi
pop edi
mov eax, 0x11177
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050101b
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x40]
mov dword [eax], esi
call fcn.00418190
cmp eax, 4
jl 0x4afc9e
mov eax, 0x10624dd3
mul dword [esi + 0x58]
shr edx, 6
push edx
push dword [esi + 0x1c]
push dword [esi]
push dword [esi + 4]
push str.File_writer__.s_created:_samp.rate_d__bufsize_luKB
push str.wav_writer.c
call fcn.00418080
add esp, 0x18
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050101b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x11174
pop edi
xor ecx, ebp
pop ebx
call fcn.0050101b
mov esp, ebp
pop ebp
ret