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

Disassembly:
push 0x38
mov eax, 0x4fc354
call fcn.004e2dc9
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp + 0xc]
lea edi, [ebx + 0x38]
and dword [ebp - 0x24], 0
mov ecx, esi
push edi
call fcn.0040a831
test al, al
je 0x40b8a4
cmp dword [ebx + 0x78], 0
je 0x40b8a4
mov eax, dword [ebp + 8]
mov dword [eax], 0x51d44c
jmp 0x40be39
push edi
mov ecx, esi
call fcn.0040a831
test al, al
jne 0x40b8b7
mov ecx, ebx
call fcn.00442c32
mov ecx, ebx
call fcn.0040bf63
xor edi, edi
cmp dword [ebx + 0x88], edi
jne 0x40b8dc
mov esi, 0x51d44c
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
jmp 0x40b8f2
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042db52
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x14], 4
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042db52
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], edi
test al, 4
je 0x40b91c
push ecx
and eax, 0xfffffffb
mov ecx, esp
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
call fcn.0042db1d
mov eax, dword [ebp - 0x14]
pop ecx
test al, 2
je 0x40b934
and eax, 0xfffffffd
push ecx
mov dword [ebp - 0x14], eax
mov eax, esp
mov dword [eax], esi
call fcn.0042db1d
mov eax, dword [ebp - 0x14]
pop ecx
cmp dword [ebx + 0x8c], edi
jne 0x40b94f
mov esi, 0x51d44c
lea ecx, [ebp - 0x20]
or eax, 8
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], eax
jmp 0x40b963
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.0042db52
or dword [ebp - 0x14], 0x10
mov ecx, eax
mov esi, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0042db52
mov eax, dword [ebp - 0x14]
test al, 0x10
je 0x40b98a
push ecx
and eax, 0xffffffef
mov ecx, esp
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
call fcn.0042db1d
mov eax, dword [ebp - 0x14]
pop ecx
test al, 8
je 0x40b99f
and eax, 0xfffffff7
push ecx
mov dword [ebp - 0x14], eax
mov eax, esp
mov dword [eax], esi
call fcn.0042db1d
pop ecx
mov esi, 0x51d44c
mov dword [ebp - 0x20], esi
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0040b81e
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40bdf6
push edi
lea ecx, [ebp - 0x1c]
call fcn.00403ccf
test eax, eax
jne 0x40b9db
push edi
lea ecx, [ebp - 0x18]
call fcn.00403ccf
test eax, eax
je 0x40bdf6
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebx + 0x3c]
call fcn.0042e1a5
test eax, eax
jne 0x40ba04
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0x38]
call fcn.0042e1a5
test eax, eax
jne 0x40ba04
cmp dword [ebx + 0x78], eax
jne 0x40bc7c
mov ecx, ebx
call fcn.0040b6dc
mov ecx, ebx
call fcn.0040b5a9
push edi
lea ecx, [ebp - 0x18]
call fcn.00403ccf
mov esi, dword [ebp - 0x28]
test eax, eax
je 0x40ba4f
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
or ecx, 0x20
push edi
push ecx
mov edx, esp
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edx], ecx
mov ecx, eax
call fcn.0043005e
mov byte [ebp - 0xd], 1
test al, al
je 0x40ba53
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x14]
test al, 0x20
je 0x40ba71
and eax, 0xffffffdf
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], eax
call fcn.0043bc3a
push dword [ebp - 0x40]
call fcn.004dc624
pop ecx
cmp byte [ebp - 0xd], 0
je 0x40bab6
lea eax, [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov edx, str.No_such_device:
push eax
call fcn.0042e541
push ecx
mov eax, esp
mov dword [eax], 0x51d44c
call fcn.0042db1d
mov ecx, dword [ebp - 0x18]
mov edx, esp
mov dword [edx], ecx
call fcn.0042db1d
mov ecx, dword [ebp - 0x1c]
mov edx, esp
mov dword [edx], ecx
call fcn.0042db1d
mov eax, dword [ebp + 8]
jmp 0x40be38
push 0
lea ecx, [ebp - 0x1c]
call fcn.00403ccf
test eax, eax
je 0x40baef
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push 1
push ecx
mov ecx, esi
call dword [eax + 4]
or dword [ebp - 0x14], 0x40
xor edi, edi
push edi
push ecx
mov ecx, dword [ebp - 0x1c]
mov edx, esp
mov dword [edx], ecx
mov ecx, eax
call fcn.0043005e
mov byte [ebp - 0xd], 1
test al, al
je 0x40baf3
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0x14]
test cl, 0x40
je 0x40bb0c
lea ecx, [ebp - 0x40]
call fcn.0043bc3a
push dword [ebp - 0x40]
call fcn.004dc624
pop ecx
cmp byte [ebp - 0xd], 0
je 0x40bb1a
lea eax, [ebp - 0x1c]
jmp 0x40ba7a
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 0x40bb3d
mov dword [ebx + 0x78], eax
test ecx, ecx
je 0x40bb3d
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebx + 0x78]
test ecx, ecx
jne 0x40bb62
push ecx
mov eax, esp
lea ecx, [ebp - 0x28]
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.0043d793
mov esi, dword [ebp - 0x28]
mov eax, esp
mov dword [eax], 0x51d44c
jmp 0x40bb7b
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
call dword [eax + 0x30]
push ecx
mov ecx, esp
mov esi, dword [eax]
mov dword [eax], 0x51d44c
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
call fcn.0042db1d
pop ecx
push 0
lea ecx, [ebp - 0x20]
call fcn.00403ccf
test eax, eax
je 0x40bbce
mov ecx, ebx
call fcn.0040b6dc
mov edi, dword [ebp + 8]
push ecx
mov eax, esp
mov dword [edi], esi
mov dword [eax], 0x51d44c
call fcn.0042db1d
mov ecx, dword [ebp - 0x18]
mov edx, esp
mov dword [edx], ecx
call fcn.0042db1d
mov ecx, dword [ebp - 0x1c]
mov edx, esp
mov dword [edx], ecx
call fcn.0042db1d
mov eax, edi
jmp 0x40be38
mov edi, dword [ebp + 0xc]
cmp byte [edi + 0x24], 0
je 0x40bc0c
lea eax, [ebx + 0x94]
mov ecx, eax
mov dword [ebp - 0x30], eax
call fcn.00429592
mov eax, dword [ebx + 0x88]
dec eax
js 0x40bc0c
mov esi, dword [ebp - 0x30]
mov edi, eax
xor ebx, ebx
push ebx
mov ecx, esi
call fcn.004295d6
inc ebx
dec edi
jns 0x40bbf7
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp + 0xc]
cmp byte [edi + 0x38], 0
je 0x40bc49
lea eax, [ebx + 0xa4]
mov ecx, eax
mov dword [ebp - 0x34], eax
call fcn.00429592
mov eax, dword [ebx + 0x8c]
xor edi, edi
dec eax
mov dword [ebp - 0x30], eax
js 0x40bc4b
mov ebx, eax
mov esi, edi
mov ecx, dword [ebp - 0x34]
push esi
call fcn.004295d6
inc esi
dec ebx
jns 0x40bc34
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
jmp 0x40bc4b
xor edi, edi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00403ccf
test eax, eax
jne 0x40bc63
lea ecx, [ebx + 0x94]
call fcn.00429592
push 0
lea ecx, [ebp - 0x18]
call fcn.00403ccf
test eax, eax
jne 0x40bc7c
lea ecx, [ebx + 0xa4]
call fcn.00429592
mov edi, dword [ebp + 0xc]
cmp byte [edi + 0x24], 0
jne 0x40bc94
lea eax, [edi + 0x14]
push eax
lea ecx, [ebx + 0x94]
call fcn.00429479
cmp byte [edi + 0x38], 0
jne 0x40bca9
lea eax, [edi + 0x28]
push eax
lea ecx, [ebx + 0xa4]
call fcn.00429479
push edi
lea ecx, [ebx + 0x38]
call fcn.0040b0d0
movsd xmm1, qword [edi + 8]
mov ecx, ebx
call fcn.0040be41
movsd qword [ebx + 0x40], xmm0
mov ecx, ebx
push dword [edi + 0x10]
call fcn.0040befc
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 - 0x34], edi
mov dword [ebp - 0x20], edi
mov dword [ecx], eax
call fcn.0042db1d
pop ecx
push 0
lea ecx, [ebp - 0x20]
call fcn.00403ccf
test eax, eax
jne 0x40bddf
mov eax, dword [ebx + 0x78]
lea esi, [ebx + 0x90]
add eax, 8
mov ecx, esi
push eax
call fcn.0042db8c
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 - 0x44]
mov dword [ebx + 0x48], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x44]
push eax
lea ecx, [ebx + 0x4c]
call fcn.00429415
push dword [ebp - 0x44]
call fcn.004dc624
pop ecx
mov ecx, dword [ebx + 0x78]
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ecx]
call dword [eax + 0x40]
push eax
lea ecx, [ebx + 0x60]
call fcn.00429415
push dword [ebp - 0x44]
call fcn.004dc624
pop ecx
xor ecx, ecx
cmp dword [ebx + 0x24], ecx
jle 0x40bdd0
lea edi, [ebx + 0x38]
mov eax, dword [ebx + 0x1c]
push esi
mov ecx, dword [eax + ecx*4]
add ecx, 4
call fcn.0042e1a5
test eax, eax
jne 0x40bdc1
mov ecx, dword [ebx + 0x28]
mov eax, dword [ebp - 0x24]
push edi
mov ecx, dword [ecx + eax*4]
call fcn.0040b0d0
mov ecx, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, dword [ebx + 0x24]
jl 0x40bd9f
mov edi, dword [ebp - 0x34]
cmp byte [ebp + 0x10], 0
je 0x40bde6
mov ecx, ebx
call fcn.0040c00b
jmp 0x40bde6
mov ecx, ebx
call fcn.0040b6dc
mov esi, dword [ebp + 8]
push ecx
mov eax, esp
mov dword [esi], edi
mov dword [eax], 0x51d44c
jmp 0x40be19
mov ecx, ebx
call fcn.0040b6dc
cmp byte [ebp + 0x10], 0
je 0x40be0a
mov ecx, ebx
call fcn.0040c00b
mov esi, dword [ebp + 8]
mov ecx, 0x51d44c
push ecx
mov eax, esp
mov dword [esi], ecx
mov dword [eax], ecx
call fcn.0042db1d
mov ecx, dword [ebp - 0x18]
mov edx, esp
mov dword [edx], ecx
call fcn.0042db1d
mov ecx, dword [ebp - 0x1c]
mov edx, esp
mov dword [edx], ecx
call fcn.0042db1d
mov eax, esi
pop ecx
call fcn.004e2d97
ret 0xc