Function at 0x417e8d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x30
mov eax, 0x521bac
call fcn.004f8af5
mov ebx, ecx
mov esi, dword [ebp + 0xc]
lea edi, [ebx + 0x38]
and dword [ebp - 0x28], 0
mov ecx, esi
push edi
call fcn.004174d1
test al, al
je 0x417ec5
cmp dword [ebx + 0x78], 0
je 0x417ec5
mov eax, dword [ebp + 8]
mov dword [eax], 0x5442c0
jmp 0x41841e
push edi
mov ecx, esi
call fcn.004174d1
test al, al
jne 0x417ed8
mov ecx, ebx
call fcn.004597e3
mov ecx, ebx
call fcn.00418552
xor edi, edi
cmp dword [ebx + 0x88], edi
jne 0x417ef8
mov esi, 0x5442c0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push 2
jmp 0x417f09
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00443a5b
mov esi, dword [ebp - 0x24]
push 4
pop ecx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x1c]
push eax
call fcn.00443a5b
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], edi
test al, 4
je 0x417f37
push ecx
and eax, 0xfffffffb
mov ecx, esp
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx], eax
call fcn.00443a1f
mov eax, dword [ebp - 0x20]
pop ecx
test al, 2
je 0x417f4c
and eax, 0xfffffffd
push ecx
mov dword [ebp - 0x20], eax
mov eax, esp
mov dword [eax], esi
call fcn.00443a1f
pop ecx
cmp dword [ebx + 0x8c], edi
jne 0x417f63
mov esi, 0x5442c0
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push 8
jmp 0x417f75
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.00443a5b
mov esi, dword [ebp - 0x24]
mov edx, eax
push 0x10
pop eax
or dword [ebp - 0x20], eax
lea ecx, [ebp - 0x18]
push edx
call fcn.00443a5b
mov eax, dword [ebp - 0x20]
test al, 0x10
je 0x417fa0
push ecx
and eax, 0xffffffef
mov ecx, esp
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx], eax
call fcn.00443a1f
mov eax, dword [ebp - 0x20]
pop ecx
test al, 8
je 0x417fb5
and eax, 0xfffffff7
push ecx
mov dword [ebp - 0x20], eax
mov eax, esp
mov dword [eax], esi
call fcn.00443a1f
pop ecx
mov esi, 0x5442c0
mov dword [ebp - 0x24], esi
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00417e42
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4183db
lea ecx, [ebp - 0x1c]
call fcn.00402388
test al, al
je 0x417fef
lea ecx, [ebp - 0x18]
call fcn.00402388
test al, al
jne 0x4183db
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebx + 0x3c]
call fcn.004442f5
test eax, eax
setne al
test al, al
jne 0x418023
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0x38]
call fcn.004442f5
test eax, eax
setne al
test al, al
jne 0x418023
cmp dword [ebx + 0x78], 0
jne 0x418263
mov ecx, ebx
call fcn.00417e19
mov ecx, ebx
call fcn.00417de9
lea ecx, [ebp - 0x18]
call fcn.004173e4
mov esi, dword [ebp - 0x2c]
test al, al
je 0x41806f
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
or ecx, 0x20
push edi
push ecx
mov edx, esp
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edx], ecx
mov ecx, eax
call fcn.00446406
test al, al
jne 0x41806f
mov byte [ebp - 0x11], 1
jmp 0x418075
mov byte [ebp - 0x11], 0
xor edi, edi
mov eax, dword [ebp - 0x20]
test al, 0x20
je 0x418093
and eax, 0xffffffdf
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], eax
call fcn.00452ab1
push dword [ebp - 0x38]
call fcn.004fd784
pop ecx
cmp byte [ebp - 0x11], 0
je 0x4180d8
lea eax, [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov edx, str.No_such_device:
push eax
call fcn.00444667
push ecx
mov eax, esp
mov dword [eax], 0x5442c0
call fcn.00443a1f
mov eax, dword [ebp - 0x18]
mov ecx, esp
mov dword [ecx], eax
call fcn.00443a1f
mov ecx, dword [ebp - 0x1c]
mov edx, esp
mov dword [edx], ecx
call fcn.00443a1f
mov eax, dword [ebp + 8]
jmp 0x41841d
lea ecx, [ebp - 0x1c]
call fcn.004173e4
test al, al
je 0x41810d
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push 1
push ecx
mov ecx, esi
call dword [eax + 4]
or dword [ebp - 0x20], 0x40
push edi
push ecx
mov ecx, dword [ebp - 0x1c]
mov edx, esp
mov dword [edx], ecx
mov ecx, eax
call fcn.00446406
mov byte [ebp - 0x11], 1
test al, al
je 0x418111
mov byte [ebp - 0x11], 0
mov ecx, dword [ebp - 0x20]
test cl, 0x40
je 0x41812a
lea ecx, [ebp - 0x38]
call fcn.00452ab1
push dword [ebp - 0x38]
call fcn.004fd784
pop ecx
cmp byte [ebp - 0x11], 0
je 0x418138
lea eax, [ebp - 0x1c]
jmp 0x41809c
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov ecx, dword [ebx + 0x78]
cmp ecx, eax
je 0x41815b
mov dword [ebx + 0x78], eax
test ecx, ecx
je 0x41815b
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebx + 0x78]
test ecx, ecx
jne 0x418180
push ecx
mov eax, esp
lea ecx, [ebp - 0x2c]
mov dword [eax], str.Cant_open_the_audio_device__n_nThis_may_be_because_another_application_is_currently_using_the_same_device___if_so__you_should_close_any_other_applications_and_try_again_
call fcn.004542be
mov esi, dword [ebp - 0x2c]
mov eax, esp
mov dword [eax], 0x5442c0
jmp 0x418199
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
call dword [eax + 0x30]
push ecx
mov ecx, esp
mov esi, dword [eax]
mov dword [eax], 0x5442c0
mov eax, dword [ebp - 0x2c]
mov dword [ecx], eax
mov dword [ebp - 0x24], esi
call fcn.00443a1f
pop ecx
lea ecx, [ebp - 0x24]
call fcn.004173e4
test al, al
je 0x4181e7
mov ecx, ebx
call fcn.00417e19
mov edi, dword [ebp + 8]
push ecx
mov eax, esp
mov dword [edi], esi
mov dword [eax], 0x5442c0
call fcn.00443a1f
mov eax, dword [ebp - 0x18]
mov ecx, esp
mov dword [ecx], eax
call fcn.00443a1f
mov ecx, dword [ebp - 0x1c]
mov edx, esp
mov dword [edx], ecx
call fcn.00443a1f
mov eax, edi
jmp 0x41841d
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x24], 0
je 0x418211
lea edi, [ebx + 0x94]
mov ecx, edi
call fcn.0043f9f2
push 1
push dword [ebx + 0x88]
mov ecx, edi
push 0
call fcn.0043fab4
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x38], 0
je 0x418235
lea edi, [ebx + 0xa4]
mov ecx, edi
call fcn.0043f9f2
push 1
push dword [ebx + 0x8c]
mov ecx, edi
push 0
call fcn.0043fab4
lea ecx, [ebp - 0x1c]
call fcn.00402388
test al, al
je 0x41824c
lea ecx, [ebx + 0x94]
call fcn.0043f9f2
lea ecx, [ebp - 0x18]
call fcn.00402388
test al, al
je 0x418263
lea ecx, [ebx + 0xa4]
call fcn.0043f9f2
mov edi, dword [ebp + 0xc]
cmp byte [edi + 0x24], 0
jne 0x41827b
lea eax, [edi + 0x14]
push eax
lea ecx, [ebx + 0x94]
call fcn.0043f8da
cmp byte [edi + 0x38], 0
jne 0x418290
lea eax, [edi + 0x28]
push eax
lea ecx, [ebx + 0xa4]
call fcn.0043f8da
push edi
lea ecx, [ebx + 0x38]
call fcn.00417cd2
movsd xmm1, qword [edi + 8]
mov ecx, ebx
call fcn.00418426
movsd qword [ebx + 0x40], xmm0
mov ecx, ebx
push dword [edi + 0x10]
call fcn.004184eb
mov ecx, dword [ebx + 0x78]
movsd xmm0, qword [ebx + 0x40]
push eax
push ecx
mov dword [ebx + 0x48], eax
lea eax, [ebx + 0xa4]
mov edx, dword [ecx]
push ecx
movsd qword [esp], xmm0
push eax
lea eax, [ebx + 0x94]
push eax
lea eax, [ebp + 0xc]
push eax
call dword [edx + 0x18]
push ecx
mov ecx, esp
mov edi, dword [eax]
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov dword [ecx], eax
call fcn.00443a1f
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00402388
test al, al
je 0x4183c4
mov eax, dword [ebx + 0x78]
lea esi, [ebx + 0x90]
add eax, 8
mov ecx, esi
push eax
call fcn.00443a97
mov ecx, dword [ebx + 0x78]
push dword [ebx + 0x1d8]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [ebx + 0x78]
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [ebx + 0x78]
fstp qword [ebx + 0x40]
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, dword [ebx + 0x78]
lea edx, [ebp - 0x3c]
mov dword [ebx + 0x48], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x44]
push eax
lea ecx, [ebx + 0x4c]
call fcn.0043f8b2
push dword [ebp - 0x3c]
call fcn.004fd784
pop ecx
mov ecx, dword [ebx + 0x78]
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x40]
push eax
lea ecx, [ebx + 0x60]
call fcn.0043f8b2
push dword [ebp - 0x3c]
call fcn.004fd784
pop ecx
xor ecx, ecx
cmp dword [ebx + 0x24], ecx
jle 0x4183b5
lea edi, [ebx + 0x38]
mov eax, dword [ebx + 0x1c]
push esi
mov ecx, dword [eax + ecx*4]
add ecx, 4
call fcn.004442f5
test eax, eax
jne 0x4183a6
mov ecx, dword [ebx + 0x28]
mov eax, dword [ebp - 0x28]
push edi
mov ecx, dword [ecx + eax*4]
call fcn.00417cd2
mov ecx, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x28], ecx
cmp ecx, dword [ebx + 0x24]
jl 0x418384
mov edi, dword [ebp - 0x2c]
cmp byte [ebp + 0x10], 0
je 0x4183cb
mov ecx, ebx
call fcn.00418646
jmp 0x4183cb
mov ecx, ebx
call fcn.00417e19
mov esi, dword [ebp + 8]
push ecx
mov eax, esp
mov dword [esi], edi
mov dword [eax], 0x5442c0
jmp 0x4183fe
mov ecx, ebx
call fcn.00417e19
cmp byte [ebp + 0x10], 0
je 0x4183ef
mov ecx, ebx
call fcn.00418646
mov esi, dword [ebp + 8]
mov ecx, 0x5442c0
push ecx
mov eax, esp
mov dword [esi], ecx
mov dword [eax], ecx
call fcn.00443a1f
mov eax, dword [ebp - 0x18]
mov ecx, esp
mov dword [ecx], eax
call fcn.00443a1f
mov ecx, dword [ebp - 0x1c]
mov edx, esp
mov dword [edx], ecx
call fcn.00443a1f
mov eax, esi
pop ecx
call fcn.004f8abe
ret 0xc