Function at 0x416494
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [0x498328]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [0x49837c]
cmp dword [esi + 0x14], ebx
je 0x416410
mov eax, dword [esi + 0x18]
mov dword [esi + 0x7c], ebx
push eax
call fcn.0050bcc6
nop
mov ecx, dword [esi + 0x14]
push 0x1f4
push ecx
call ebp
cmp eax, 0x102
jne 0x416407
mov edx, dword [esi + 0x14]
push 0xffffffffffffffff
push edx
call fcn.00550c07
nop
mov eax, dword [esi + 0x14]
push eax
call edi
mov dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x18]
push ecx
call edi
mov edx, dword [esi + 0x10]
mov dword [esi + 0x18], ebx
push edx
call edi
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
mov dword [esi + 0x10], 0xffffffff
call fcn.004166e0
test eax, eax
jne 0x416491
cmp dword [esi + 0x14], ebx
je 0x41646f
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x7c], ebx
push ecx
call fcn.00534d90
nop
mov edx, dword [esi + 0x14]
push 0x1f4
push edx
call ebp
cmp eax, 0x102
jne 0x416466
mov eax, dword [esi + 0x14]
push 0xffffffffffffffff
push eax
call fcn.00551529
nop
mov ecx, dword [esi + 0x14]
push ecx
call edi
mov dword [esi + 0x14], ebx
mov edx, dword [esi + 0x18]
push edx
call edi
mov eax, dword [esi + 0x10]
mov dword [esi + 0x18], ebx
push eax
call edi
mov dword [esi + 0x10], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0xc
mov ecx, dword [esi + 0x2c]
mov ebp, dword [esi + 0x30]
mov edx, ecx
mov ebx, dword [esi + 0x34]
imul edx, ebp
imul edx, ebx
mov eax, 0xcccccccd
mov edi, dword [esi + 0x38]
mul edx
mov eax, dword [esi + 0x3c]
shr edx, 5
mov dword [esi + 0x20], edx
mov edx, edi
imul edx, eax
imul edx, dword [esi + 0x40]
mov eax, 0xcccccccd
mul edx
mov eax, ecx
shr edx, 5
sub eax, edi
mov dword [esi + 0x24], edx
jne 0x4164e7
mov eax, dword [esi + 0x40]
mov edx, ebx
sub edx, eax
jne 0x4164e7
mov edx, dword [esi + 0x3c]
mov eax, ebp
sub eax, edx
jne 0x4164e7
xor eax, eax
jmp 0x4164ec
mov eax, 1
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x3c]
push eax
mov eax, dword [esi + 0x40]
push eax
push edi
push ebp
push ebx
push ecx
push str.mix_wav:_in____d___d___d___out____d___d___d_
call fcn.0043d450
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push ecx
push edx
push str.read_bytes___d__converted_bytes___d
call fcn.0043d450
mov eax, dword [esp + 0x54]
xor ebp, ebp
add esp, 0x28
cmp eax, ebp
mov eax, 0x416ce0
jne 0x41652e
mov eax, 0x416ca0
mov dword [esi], eax
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x41654f
mov eax, dword [esi + 0x3c]
cmp eax, 0x10
mov eax, 0x416850
je 0x41654a
mov eax, 0x445fb0
mov dword [esi + 4], eax
jmp 0x416556
mov dword [esi + 4], 0x4169e0
mov eax, dword [esi + 0x4c]
mov edi, dword [esi + 0x48]
lea ebx, [esi + 0x44]
cmp eax, eax
mov dword [esp + 0x28], eax
je 0x416591
mov ecx, eax
mov edx, edi
add eax, 0x10
add edi, 0x10
mov ebp, dword [ecx]
mov dword [edx], ebp
mov ebp, dword [ecx + 4]
mov dword [edx + 4], ebp
mov ebp, dword [ecx + 8]
mov dword [edx + 8], ebp
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jne 0x416567
xor ebp, ebp
mov edx, dword [ebx + 8]
mov ecx, ebx
push edx
push edi
call fcn.00425990
mov dword [ebx + 8], edi
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x5c]
lea edi, [esi + 0x54]
push ecx
push eax
push eax
call fcn.00429e50
add esp, 0xc
mov ebx, eax
mov eax, dword [edi + 8]
mov ecx, edi
push eax
push ebx
call fcn.00425990
mov dword [edi + 8], ebx
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x14]
mov eax, ebx
push edx
mov dword [esp + 0x18], ecx
push 1
push eax
mov ecx, edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call fcn.00429b40
mov ecx, dword [esi + 0xc]
mov eax, dword [edi + 8]
lea edx, [esp + 0x14]
add ecx, 0xc000
push edx
mov dword [esp + 0x18], ecx
push 1
push eax
mov ecx, edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call fcn.00429b40
push ebp
push ebp
push ebp
push ebp
call fcn.005095d4
nop
lea ecx, [esp + 0x10]
mov dword [esi + 0x18], eax
push ecx
push ebp
push esi
push 0x416b40
push ebp
push ebp
mov dword [esi + 0x7c], 1
call fcn.00454b93
mov edx, dword [esi + 0x18]
add esp, 0x18
mov dword [esi + 0x14], eax
push edx
call fcn.004f3653
nop
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 0xc