Function at 0x4f0560
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1db9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x638
mov eax, dword [0x5de00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x634], esi
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x14]
push 0
push 0
push 0
push 0
push eax
mov dword [ebp - 0x628], ecx
mov ecx, esi
push edx
mov dword [ebp - 0x638], esi
mov dword [ebp - 0x630], edx
mov dword [ebp - 0x62c], eax
call fcn.00406a00
mov eax, dword [ebx + 0x18]
lea edi, [esi + 0x70]
mov dword [ebp - 4], 0
mov dword [esi], vtable.CSecondaryBuffer.0
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 3
mov byte [esi + 0x48], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [esi + 0xa8], vtable.StreamingVoiceContext.0
mov dword [esi + 0xd4], 0
mov dword [esi + 0xac], 1
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov dword [esi + 0x100], 0
mov dword [esi + 0x124], 0
mov dword [esi + 0x12c], 0
mov dword [esi + 0x168], 0
mov dword [esi + 0x1458], 0
lea ecx, [esi + 0x145c]
call fcn.004f0950
mov edx, dword [ebp - 0x628]
lea ecx, [esi + 0x14b4]
mov byte [ebp - 4], 6
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
lea eax, [edx + 2]
mov dword [ecx + 0x14], 0
mov dword [ebp - 0x624], eax
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4f06e0
sub edx, dword [ebp - 0x624]
sar edx, 1
push edx
push dword [ebp - 0x628]
call fcn.00403d10
mov dword [esi + 0x14cc], 0
xorps xmm0, xmm0
movups xmmword [esi + 0x14d4], xmm0
xor eax, eax
mov dword [esi + 0x14e4], 0
mov dword [esi + 0x14e8], 7
mov word [esi + 0x14d4], ax
mov dword [esi + 0x14ec], eax
mov dword [esi + 0x14f0], eax
mov dword [esi + 0x14f4], eax
mov dword [esi + 0x14f8], eax
mov byte [ebp - 4], 9
mov dword [esi + 0x14fc], eax
mov dword [esi + 0x1504], eax
mov dword [esi + 0x1450], eax
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4f0771
mov dword [esi + 0x44], 4
jmp 0x4f0926
push edi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetpos]
mov eax, dword [ebx + 0x20]
add esp, 8
cmp dword [ebx + 0x24], 0
mov ecx, dword [ebx + 0x28]
mov dword [esi + 0x4c], eax
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x110], eax
mov eax, dword [ebx + 0x3c]
mov dword [esi + 0x114], eax
mov eax, dword [ebx + 0x40]
mov dword [esi + 0x118], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x58], 0
mov dword [esi + 0xa0], eax
je 0x4f07c1
test ecx, ecx
je 0x4f07c1
mov eax, 1
jmp 0x4f07c3
xor eax, eax
mov dword [esi + 0x10c], eax
xor eax, eax
mov edi, dword [ebp - 0x62c]
mov dword [esi + 0x120], ecx
mov ecx, dword [ebx + 0x38]
test ecx, ecx
push 0x100
setne al
mov dword [esi + 0x108], ecx
mov dword [esi + 0x100], eax
mov eax, dword [ebx + 0x44]
mov dword [esi + 0x64], eax
mov eax, dword [ebx + 0x48]
mov dword [esi + 0x1500], eax
lea eax, [ebp - 0x21a]
push eax
push 0x100
lea eax, [ebp - 0x41a]
mov dword [esi + 0x104], 0
push eax
push 0x100
lea eax, [ebp - 0x61a]
mov dword [esi + 0xfc], 0
push eax
push 3
lea eax, [ebp - 0x620]
mov dword [esi + 0xf8], 0
push eax
push edi
mov dword [esi + 0x148], 0
mov dword [esi + 0x144], 0
mov dword [esi + 0x140], 0
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
add esp, 0x24
lea eax, [ebp - 0x21a]
push str..flac
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
mov dword [esi + 0x1454], 0
neg eax
mov dword [ebp - 0x648], 0x4f2df0
lea ecx, [esi + 0xb0]
mov dword [ebp - 0x644], 0
sbb eax, eax
mov dword [ebp - 0x640], esi
inc eax
mov dword [esi + 0x38], eax
lea eax, [ebp - 0x648]
push eax
call fcn.004f4a20
push 0
push 0
push edi
push dword [ebp - 0x630]
mov ecx, esi
call fcn.004efee0
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 0x6c], eax
test eax, eax
je 0x4f0926
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x624], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x624]
push eax
push 0
push esi
push 0x4f0e20
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x68], eax
push 0
push 1
push dword [esi + 0x6c]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052d3c5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x44