Function at 0x4f3570
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 0x5a1fb9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x640
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 edi, ecx
mov dword [ebp - 0x63c], edi
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
mov esi, dword [ebx + 0x28]
push 0
push 0
mov dword [ebp - 0x640], edi
mov dword [ebp - 0x62c], eax
mov eax, dword [ebx + 0x1c]
push eax
mov dword [ebp - 0x634], eax
mov eax, dword [ebx + 0x20]
push eax
push ecx
mov dword [ebp - 0x630], ecx
mov ecx, edi
push edx
mov dword [ebp - 0x638], edx
mov dword [ebp - 0x624], esi
call fcn.00406a00
mov eax, dword [ebx + 0x18]
mov dword [ebp - 4], 0
mov dword [edi], vtable.CSecondaryBuffer.0
mov dword [edi + 0x34], eax
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 3
mov byte [edi + 0x48], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0xa8], vtable.StreamingVoiceContext.0
mov dword [edi + 0xd4], 0
mov dword [edi + 0xac], 1
mov dword [edi + 0xec], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0x100], 0
mov dword [edi + 0x124], 0
mov dword [edi + 0x12c], 0
mov dword [edi + 0x168], 0
mov dword [edi + 0x1458], 0
lea ecx, [edi + 0x145c]
call fcn.004f0950
mov byte [ebp - 4], 6
lea ecx, [edi + 0x14b4]
mov edx, dword [ebp - 0x62c]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
lea eax, [edx + 2]
mov dword [ebp - 0x628], eax
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4f3700
sub edx, dword [ebp - 0x628]
sar edx, 1
push edx
push dword [ebp - 0x62c]
call fcn.00403d10
mov dword [edi + 0x14cc], 0
xorps xmm0, xmm0
movups xmmword [edi + 0x14d4], xmm0
xor eax, eax
mov dword [edi + 0x14e4], 0
mov dword [edi + 0x14e8], 7
mov word [edi + 0x14d4], ax
mov dword [edi + 0x14ec], eax
mov dword [edi + 0x14f0], eax
mov dword [edi + 0x14f4], eax
mov dword [edi + 0x14f8], eax
mov byte [ebp - 4], 9
mov dword [edi + 0x1504], eax
mov dword [edi + 0x1450], eax
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x14fc], 1
test eax, eax
jne 0x4f3795
mov dword [edi + 0x44], 4
jmp 0x4f3c2f
lea ecx, [edi + 0x70]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetpos]
mov eax, dword [ebx + 8]
add esp, 8
mov dword [edi + 0xa0], eax
mov ecx, esi
lea eax, [ebp - 0x63c]
push 0
push 4
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push 0
push 4
lea eax, [edi + 0x164]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push 0
push 4
lea eax, [edi + 0x15c]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push 0
push 4
lea eax, [edi + 0x160]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push 0
push 4
lea eax, [edi + 0x4c]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push 0
push 4
lea eax, [edi + 0x50]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push 0
push 4
lea eax, [edi + 0x54]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push 0
push 4
lea eax, [edi + 0x58]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push 0
push 4
lea eax, [edi + 0x64]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push 0
push 4
lea eax, [edi + 0x1500]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push 0
push 4
lea eax, [edi + 0x110]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push 0
push 4
lea eax, [edi + 0x114]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push 0
push 4
lea eax, [edi + 0x118]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
mov ecx, dword [ebp - 0x624]
lea esi, [edi + 0x10c]
push 0
push 4
push esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
cmp dword [esi], 0
je 0x4f38f7
call fcn.004f7c70
mov ecx, dword [ebp - 0x624]
push 0
mov dword [ebp - 0x628], eax
lea eax, [ebp - 0x62c]
push 4
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push 0
push 4
lea ecx, [edi + 0x120]
push ecx
mov ecx, dword [ebp - 0x624]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
mov eax, dword [ebp - 0x628]
sub eax, dword [ebp - 0x62c]
jmp 0x4f3903
mov dword [edi + 0x120], 0
xor eax, eax
mov ecx, dword [ebp - 0x624]
lea esi, [edi + 0x100]
push 0
push 4
push esi
mov dword [edi + 0x11c], eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
cmp dword [esi], 0
je 0x4f396c
call fcn.004f7c70
mov ecx, dword [ebp - 0x624]
push 0
mov dword [ebp - 0x628], eax
lea eax, [ebp - 0x62c]
push 4
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push 0
push 4
lea ecx, [edi + 0x108]
push ecx
mov ecx, dword [ebp - 0x624]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
mov eax, dword [ebp - 0x628]
sub eax, dword [ebp - 0x62c]
jmp 0x4f3978
mov dword [edi + 0x108], 0
xor eax, eax
mov ecx, dword [ebp - 0x624]
lea esi, [edi + 0x124]
push 0
push 4
push esi
mov dword [edi + 0x104], eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
cmp dword [esi], 0
je 0x4f3a4d
mov ecx, dword [ebp - 0x624]
lea eax, [edi + 0x128]
push 0
push 4
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
mov ecx, dword [ebp - 0x624]
lea eax, [edi + 0x130]
push 0
push 4
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
call fcn.004f7c70
mov ecx, dword [ebp - 0x624]
mov esi, eax
push 0
push 4
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push 0
push 4
lea ecx, [edi + 0x138]
push ecx
mov ecx, dword [ebp - 0x624]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
sub esi, dword [ebp - 0x628]
xorps xmm1, xmm1
mov ecx, dword [edi + 0x130]
mov eax, dword [ebx + 0x24]
mov dword [edi + 0x134], esi
test ecx, ecx
je 0x4f3a31
movd xmm1, eax
movd xmm0, ecx
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movd xmm0, dword [edi + 0x110]
cvtdq2pd xmm0, xmm0
mov dword [edi + 0x130], eax
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
jmp 0x4f3a50
mov eax, dword [ebx + 0x24]
mov esi, dword [ebp - 0x624]
mov ecx, esi
push 0
mov dword [edi + 0x110], eax
lea eax, [edi + 0x14cc]
push 4
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push 0
push 4
lea eax, [edi + 0x14d0]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
lea edx, [edi + 0x14d4]
mov ecx, esi
call fcn.004dd790
mov ecx, dword [ebp - 0x624]
lea esi, [edi + 0xfc]
push 0
push 4
push esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
mov eax, dword [esi]
mov dword [edi + 0xf8], eax
movsd xmm0, qword [0x5e45c0]
comisd xmm0, xmmword [0x5c6f90]
jb 0x4f3b34
mov ecx, dword [ebp - 0x624]
lea esi, [edi + 0x12c]
push 0
push 4
push esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
cmp dword [esi], 0
je 0x4f3b34
mov ecx, dword [ebp - 0x624]
lea eax, [edi + 0x140]
push 0
push 4
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
call fcn.004f7c70
mov ecx, dword [ebp - 0x624]
mov esi, eax
push 0
push 4
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
mov ecx, dword [ebp - 0x624]
lea edx, [edi + 0x148]
push 0
push 4
push edx
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
sub esi, dword [ebp - 0x628]
mov dword [edi + 0x144], esi
mov esi, dword [ebp - 0x630]
lea eax, [ebp - 0x21a]
push 0x100
push eax
push 0x100
lea eax, [ebp - 0x41a]
push eax
push 0x100
lea eax, [ebp - 0x61a]
push eax
push 3
lea eax, [ebp - 0x620]
push eax
push esi
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 [edi + 0x1454], 0
neg eax
mov dword [ebp - 0x650], 0x4f2df0
lea ecx, [edi + 0xb0]
mov dword [ebp - 0x64c], 0
sbb eax, eax
mov dword [ebp - 0x648], edi
inc eax
mov dword [edi + 0x38], eax
lea eax, [ebp - 0x650]
push eax
call fcn.004f4a20
push dword [ebx + 0x20]
mov ecx, edi
push dword [ebp - 0x634]
push esi
push dword [ebp - 0x638]
call fcn.004efee0
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [edi + 0x6c], eax
test eax, eax
je 0x4f3c2f
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x628], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x628]
push eax
push 0
push edi
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 [edi + 0x68], eax
push 0
push 1
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, edi
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 0x24