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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fc3e9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x54d894]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
push 0x10
call fcn.004dc5b8
pop ecx
mov dword [esp + 0x1c], eax
and dword [esp + 0x38], 0
test eax, eax
je 0x40c05c
push str.DEVICESETUP
mov ecx, eax
call fcn.0043341a
jmp 0x40c05e
xor eax, eax
lea edi, [ebx + 0xb4]
or esi, 0xffffffff
push eax
mov ecx, edi
mov dword [esp + 0x3c], esi
call fcn.00412651
lea eax, [esp + 0x14]
push str.deviceType
push eax
call fcn.0043096c
mov ecx, eax
call fcn.00430764
lea eax, [ebx + 0x90]
mov dword [esp + 0x38], 1
mov ecx, dword [edi]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00433b77
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], esi
call fcn.0042db44
lea eax, [esp + 0x14]
push str.audioOutputDeviceName
push eax
call fcn.0043096c
mov ecx, eax
call fcn.00430764
lea eax, [ebx + 0x38]
mov dword [esp + 0x38], 2
mov ecx, dword [edi]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00433b77
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], esi
call fcn.0042db44
lea eax, [esp + 0x14]
push str.audioInputDeviceName
push eax
call fcn.0043096c
mov ecx, eax
call fcn.00430764
lea eax, [ebx + 0x3c]
mov dword [esp + 0x38], 3
mov ecx, dword [edi]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00433b77
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], esi
call fcn.0042db44
cmp dword [ebx + 0x78], 0
je 0x40c2ce
lea eax, [esp + 0x1c]
push str.audioDeviceRate
push eax
call fcn.0043096c
mov ecx, eax
call fcn.00430764
mov dword [esp + 0x38], 4
mov ecx, dword [ebx + 0x78]
mov esi, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x38]
fstp qword [esp + 0x14]
movsd xmm2, qword [esp + 0x14]
lea ecx, [esp + 0x14]
push 0x14
pop edx
call fcn.0042dfdb
lea eax, [esp + 0x14]
mov byte [esp + 0x38], 5
push eax
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00433b77
mov eax, dword [esp + 0x14]
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.0042db1d
or dword [esp + 0x3c], 0xffffffff
pop ecx
lea ecx, [esp + 0x1c]
call fcn.0042db44
mov edi, dword [ebx + 0x78]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x34]
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx + 0x14]
cmp eax, esi
je 0x40c204
lea eax, [esp + 0x1c]
push str.audioDeviceBufferSize
push eax
call fcn.0043096c
mov ecx, eax
call fcn.00430764
mov dword [esp + 0x38], 6
lea edi, [ebx + 0xb4]
mov ecx, dword [ebx + 0x78]
mov esi, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x34]
push eax
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00433c1c
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0042db44
jmp 0x40c20a
lea edi, [ebx + 0xb4]
cmp byte [ebx + 0x5c], 0
jne 0x40c26c
lea eax, [esp + 0x1c]
push str.audioDeviceInChans
push eax
call fcn.0043096c
mov ecx, eax
call fcn.00430764
push ecx
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x40], 7
push eax
lea ecx, [ebx + 0x4c]
call fcn.00429c77
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x3c], 8
mov ecx, dword [edi]
push eax
call fcn.00433b77
mov eax, dword [esp + 0x14]
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.0042db1d
or dword [esp + 0x3c], 0xffffffff
pop ecx
lea ecx, [esp + 0x1c]
call fcn.0042db44
cmp byte [ebx + 0x70], 0
jne 0x40c2ce
lea eax, [esp + 0x1c]
push str.audioDeviceOutChans
push eax
call fcn.0043096c
mov ecx, eax
call fcn.00430764
push ecx
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x40], 9
push eax
lea ecx, [ebx + 0x60]
call fcn.00429c77
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x3c], 0xa
mov ecx, dword [edi]
push eax
call fcn.00433b77
mov eax, dword [esp + 0x14]
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.0042db1d
or dword [esp + 0x3c], 0xffffffff
pop ecx
lea ecx, [esp + 0x1c]
call fcn.0042db44
xor esi, esi
cmp dword [ebx + 0x17c], esi
jle 0x40c342
lea eax, [esp + 0x1c]
push str.name
push eax
call fcn.0043096c
mov ecx, eax
call fcn.00430764
mov dword [esp + 0x38], 0xb
cmp esi, dword [ebx + 0x17c]
jae 0x40c309
mov eax, dword [ebx + 0x174]
mov eax, dword [eax + esi*4]
jmp 0x40c30b
xor eax, eax
add eax, 4
push eax
lea eax, [esp + 0x20]
push eax
push ecx
mov eax, esp
mov dword [eax], str.MIDIINPUT
mov ecx, dword [edi]
call fcn.00433ca6
mov ecx, eax
call fcn.00433b77
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0042db44
inc esi
cmp esi, dword [ebx + 0x17c]
jl 0x40c2d8
cmp dword [ebx + 0x170], 0
jle 0x40c40b
lea ecx, [esp + 0x20]
call fcn.00411dcc
xor esi, esi
mov dword [esp + 0x38], 0xc
cmp dword [ebx + 0x170], esi
jle 0x40c3f3
lea eax, [ebx + 0x168]
push 1
push esi
mov ecx, eax
call fcn.0042fff8
push ecx
mov ecx, esp
mov eax, dword [eax]
mov dword [ecx], eax
lea ecx, [esp + 0x28]
call fcn.0043005e
test al, al
jne 0x40c3e4
lea eax, [esp + 0x1c]
push str.name
push eax
call fcn.0043096c
mov ecx, eax
call fcn.00430764
push esi
lea ecx, [ebx + 0x168]
mov byte [esp + 0x3c], 0xd
call fcn.0042fff8
push eax
lea eax, [esp + 0x20]
push eax
push ecx
mov eax, esp
mov dword [eax], str.MIDIINPUT
mov ecx, dword [edi]
call fcn.00433ca6
mov ecx, eax
call fcn.00433b77
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0xc
call fcn.0042db44
inc esi
lea eax, [ebx + 0x168]
cmp esi, dword [ebx + 0x170]
jl 0x40c374
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0043bc3a
push dword [esp + 0x20]
call fcn.004dc624
pop ecx
add ebx, 0x18c
push 0
mov ecx, ebx
call fcn.00403ccf
test eax, eax
je 0x40c452
lea eax, [esp + 0x1c]
push str.defaultMidiOutput
push eax
call fcn.0043096c
mov ecx, eax
call fcn.00430764
push ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], 0xe
mov ecx, dword [edi]
push eax
call fcn.00433b77
lea ecx, [esp + 0x1c]
call fcn.0042db44
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret