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

Disassembly:
push 0xffffffffffffffff
push 0x54599f
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x598c90]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
mov edi, ebx
mov dword [esp + 0x20], esi
call fcn.0042d9e0
mov ebp, dword [esp + 0x118]
mov eax, dword [esp + 0x110]
mov ecx, dword [esp + 0x114]
mov dword [ebx + 0xac], eax
mov dword [ebx + 0xb0], ecx
cmp ebp, esi
je 0x42d12b
mov eax, str.DEVICESETUP
lea ecx, [esp + 0x1c]
call fcn.0041ae90
lea ecx, [esp + 0x1c]
mov eax, ebp
mov dword [esp + 0x20], 1
call fcn.00420c00
mov byte [esp + 0x1b], 1
test al, al
jne 0x42d130
mov byte [esp + 0x1b], 0
test byte [esp + 0x20], 1
je 0x42d140
lea ecx, [esp + 0x1c]
call fcn.0041add0
cmp byte [esp + 0x1b], 0
je 0x42d63b
push 0x14
call fcn.0051e4bd
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x104], esi
cmp eax, esi
je 0x42d16e
push ebp
mov ecx, eax
call fcn.004204d0
jmp 0x42d170
xor eax, eax
mov ecx, dword [ebx + 0xe0]
cmp ecx, eax
je 0x42d18b
mov dword [ebx + 0xe0], eax
cmp ecx, esi
je 0x42d18b
push 1
call fcn.00421000
lea ecx, [esp + 0x20]
call fcn.0041adc0
lea edi, [esp + 0x64]
mov dword [esp + 0x104], 1
call fcn.0042c9b0
mov eax, str.audioDeviceName
lea ecx, [esp + 0x14]
mov byte [esp + 0x104], 2
call fcn.0041ae90
lea edi, [esp + 0x14]
mov eax, ebp
call fcn.00420c60
mov edx, dword [eax]
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
call fcn.004031b0
lea eax, [esp + 0x1c]
call fcn.00403100
test eax, eax
mov ecx, edi
setne byte [esp + 0x1b]
call fcn.0041add0
cmp byte [esp + 0x1b], 0
lea ecx, [esp + 0x14]
je 0x42d220
mov eax, str.audioDeviceName
call fcn.0041ae90
lea edi, [esp + 0x14]
mov eax, ebp
call fcn.00420c60
lea esi, [esp + 0x64]
call fcn.0041ae20
lea esi, [esp + 0x68]
jmp 0x42d262
mov eax, str.audioInputDeviceName
call fcn.0041ae90
lea edi, [esp + 0x14]
mov eax, ebp
call fcn.00420c60
lea esi, [esp + 0x68]
call fcn.0041ae20
mov ecx, edi
call fcn.0041add0
mov eax, str.audioOutputDeviceName
lea ecx, [esp + 0x14]
call fcn.0041ae90
lea edi, [esp + 0x14]
mov eax, ebp
call fcn.00420c60
lea esi, [esp + 0x64]
call fcn.0041ae20
lea ecx, [esp + 0x14]
call fcn.0041add0
mov eax, str.deviceType
lea ecx, [esp + 0x14]
call fcn.0041ae90
lea edi, [esp + 0x14]
mov eax, ebp
lea esi, [ebx + 0xb4]
call fcn.00420c60
call fcn.0041ae20
mov ecx, edi
call fcn.0041add0
mov eax, dword [esi]
mov dword [esp + 0x14], eax
xor eax, eax
lea ecx, [esp + 0x14]
call fcn.004031b0
lea eax, [esp + 0x14]
call fcn.00403100
test eax, eax
jne 0x42d2e5
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x6c]
push edx
push ebx
call fcn.0042da20
test eax, eax
jne 0x42d2dd
cmp dword [ebx + 0x30], eax
jle 0x42d2e5
jbe 0x42d2db
mov eax, dword [ebx + 0x24]
mov eax, dword [eax]
jmp 0x42d2dd
xor eax, eax
add eax, 4
call fcn.0041ae20
mov eax, str.audioDeviceBufferSize
lea ecx, [esp + 0x14]
call fcn.0041ae90
lea edi, [esp + 0x14]
mov eax, ebp
call fcn.00420ce0
mov ecx, edi
mov dword [esp + 0x74], eax
call fcn.0041add0
mov eax, str.audioDeviceRate
lea ecx, [esp + 0x14]
call fcn.0041ae90
fldz
sub esp, 8
fstp qword [esp]
lea edi, [esp + 0x1c]
mov eax, ebp
call fcn.00420d20
fstp qword [esp + 0x6c]
mov ecx, edi
call fcn.0041add0
mov eax, 0x566ba4
lea ecx, [esp + 0x1c]
call fcn.0041ae90
mov eax, str.audioDeviceInChans
lea ecx, [esp + 0x14]
mov byte [esp + 0x104], 3
call fcn.0041ae90
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
lea edi, [esp + 0x2c]
mov eax, ebp
call fcn.00420c90
push eax
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x10c], 5
call fcn.00410c00
mov ecx, edi
call fcn.0041add0
lea ecx, [esp + 0x14]
call fcn.0041add0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x104], 2
call fcn.0041add0
mov eax, 0x566ba4
lea ecx, [esp + 0x1c]
call fcn.0041ae90
mov eax, str.audioDeviceOutChans
lea ecx, [esp + 0x14]
mov byte [esp + 0x104], 6
call fcn.0041ae90
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
lea edi, [esp + 0x2c]
mov eax, ebp
call fcn.00420c90
push eax
lea eax, [esp + 0x94]
push eax
mov byte [esp + 0x10c], 8
call fcn.00410c00
mov ecx, edi
call fcn.0041add0
lea ecx, [esp + 0x14]
call fcn.0041add0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x104], 2
call fcn.0041add0
mov eax, str.audioDeviceInChans
lea ecx, [esp + 0x14]
call fcn.0041ae90
lea edi, [esp + 0x14]
mov eax, ebp
call fcn.00420c30
test al, al
sete cl
mov byte [esp + 0x8c], cl
mov ecx, edi
call fcn.0041add0
mov eax, str.audioDeviceOutChans
lea ecx, [esp + 0x14]
call fcn.0041ae90
lea edi, [esp + 0x14]
mov eax, ebp
call fcn.00420c30
test al, al
sete dl
mov ecx, edi
mov byte [esp + 0xa4], dl
call fcn.0041add0
push 1
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
call fcn.0042ddb0
lea esi, [esp + 0x20]
call fcn.0041ae20
lea ecx, [esp + 0x24]
call fcn.0041add0
lea esi, [ebx + 0x1a0]
call fcn.0041db70
mov eax, str.MIDIINPUT
lea ecx, [esp + 0x14]
call fcn.0041ae90
lea edi, [esp + 0x14]
mov eax, ebp
call fcn.00420f70
mov ecx, edi
mov esi, eax
call fcn.0041add0
test esi, esi
je 0x42d512
nop
mov eax, str.name
lea ecx, [esp + 0x14]
call fcn.0041ae90
lea edi, [esp + 0x14]
mov eax, esi
call fcn.00420c60
push eax
lea eax, [ebx + 0x1a0]
call fcn.0041dba0
mov ecx, edi
call fcn.0041add0
mov eax, str.MIDIINPUT
lea ecx, [esp + 0x1c]
call fcn.0041ae90
lea edi, [esp + 0x1c]
mov eax, esi
call fcn.00420c10
mov ecx, edi
mov esi, eax
call fcn.0041add0
test esi, esi
jne 0x42d4c0
lea edx, [esp + 0x50]
push edx
call fcn.004c2a00
add esp, 4
mov byte [esp + 0x104], 9
mov esi, dword [esp + 0x5c]
add esi, 0xffffffff
js 0x42d564
push 0
mov eax, esi
lea ecx, [esp + 0x54]
call fcn.0041db80
push eax
lea edi, [ebx + 0x1a0]
call fcn.0041dc00
movzx eax, al
push eax
mov eax, esi
lea ecx, [esp + 0x54]
call fcn.0041db80
push eax
push ebx
call fcn.0042f180
sub esi, 1
jns 0x42d530
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ecx
call fcn.00403100
test eax, eax
je 0x42d5bf
cmp byte [esp + 0x11c], 0
je 0x42d5bf
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x110]
push 0
push edx
push 0
push 0
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
mov ecx, ebx
call fcn.0042d0a0
lea esi, [esp + 0x20]
call fcn.0041ae20
lea ecx, [esp + 0x24]
call fcn.0041add0
mov eax, str.defaultMidiOutput
lea ecx, [esp + 0x14]
call fcn.0041ae90
lea edi, [esp + 0x14]
mov eax, ebp
mov byte [esp + 0x104], 0xa
call fcn.00420c60
push eax
push ebx
call fcn.0042f460
mov ecx, edi
call fcn.0041add0
mov esi, dword [esp + 0x10c]
lea ecx, [esp + 0x20]
mov eax, esi
call fcn.0041ae00
lea edi, [esp + 0x50]
call fcn.0041daf0
lea eax, [esp + 0x90]
push eax
call fcn.00410070
lea ecx, [esp + 0x78]
push ecx
call fcn.00410070
lea ecx, [esp + 0x68]
call fcn.0041add0
lea ecx, [esp + 0x64]
call fcn.0041add0
lea ecx, [esp + 0x20]
jmp 0x42d7c5
lea edi, [esp + 0xac]
call fcn.0042c9b0
mov ebp, dword [esp + 0x120]
mov dword [esp + 0x104], 0xb
mov edx, dword [ebp]
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.004031b0
lea eax, [esp + 0x14]
call fcn.00403100
test eax, eax
je 0x42d771
mov eax, dword [ebx + 0x30]
sub eax, 1
mov dword [esp + 0x20], eax
js 0x42d771
jmp 0x42d694
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x24]
mov edi, dword [ecx + eax*4]
mov edx, dword [edi]
mov edx, dword [edx + 4]
push 0
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call edx
xor esi, esi
mov byte [esp + 0x104], 0xc
cmp dword [esp + 0x48], esi
jle 0x42d6fa
lea ebx, [ebx]
push 1
mov eax, esi
lea ecx, [esp + 0x40]
call fcn.0041db80
mov ecx, eax
mov eax, ebp
call fcn.0041bf80
test al, al
jne 0x42d6e3
inc esi
cmp esi, dword [esp + 0x48]
jl 0x42d6c0
jmp 0x42d6fa
mov eax, esi
lea ecx, [esp + 0x3c]
call fcn.0041db80
lea esi, [esp + 0xac]
call fcn.0041ae20
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 1
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call edx
xor esi, esi
cmp dword [esp + 0x34], esi
jle 0x42d74c
push 1
mov eax, esi
lea ecx, [esp + 0x2c]
call fcn.0041db80
mov ecx, eax
mov eax, ebp
call fcn.0041bf80
test al, al
jne 0x42d735
inc esi
cmp esi, dword [esp + 0x34]
jl 0x42d712
jmp 0x42d74c
mov eax, esi
lea ecx, [esp + 0x28]
call fcn.0041db80
lea esi, [esp + 0xb0]
call fcn.0041ae20
lea edi, [esp + 0x28]
call fcn.0041daf0
lea edi, [esp + 0x3c]
mov byte [esp + 0x104], 0xb
call fcn.0041daf0
sub dword [esp + 0x20], 1
jns 0x42d690
lea eax, [esp + 0xac]
push eax
mov ecx, ebx
call fcn.0042d850
mov esi, dword [esp + 0x10c]
push 0
lea ecx, [esp + 0xb0]
push ecx
push esi
push ebx
call fcn.0042ddb0
lea edx, [esp + 0xd8]
push edx
call fcn.00410070
lea eax, [esp + 0xc0]
push eax
call fcn.00410070
lea ecx, [esp + 0xb0]
call fcn.0041add0
lea ecx, [esp + 0xac]
call fcn.0041add0
mov eax, esi
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret 0x1c