Function at 0x100318b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008f75b
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x100c6084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x18]
push 0x3040
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xd4], ebx
call fcn.1003a5ae
push 0x3040
mov edi, eax
push ebx
push edi
call fcn.10038880
mov eax, dword [ebp - 0xd8]
lea ecx, [edi + 0x1220]
mov dword [edi + 0x303c], ecx
add esp, 0x10
cmp dword [ebp + 0x1c], 3
mov dword [ecx + 0x1e18], eax
mov eax, dword [edi + 0x303c]
mov ecx, dword [ebp - 0xe4]
mov dword [eax + 0x1e14], ecx
jne 0x1003196f
push 0x10094080
push 0x10095d90
push dword [edi + 0x303c]
call fcn.10007300
add esp, 0xc
test eax, eax
je 0x1003196f
mov cl, 1
jmp 0x10031971
xor cl, cl
mov eax, dword [edi + 0x303c]
push 0x10094080
mov byte [ebp - 0xe8], cl
mov dword [eax], eax
mov eax, dword [edi + 0x303c]
mov byte [eax + 0x1e10], cl
push dword [edi + 0x303c]
call fcn.100073c0
add esp, 8
lea ecx, [ebp - 0xf0]
push str.SEDSPAPI_Initialize
push dword [edi + 0x303c]
call fcn.10007820
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x303c]
cmp byte [eax + 0x1e10], 0
je 0x10031b4f
cmp dword [ebp - 0xe0], 0
je 0x10031a29
lea ecx, [ebp - 0x88]
call fcn.10020c00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push dword [ebp - 0xe0]
mov dword [ebp - 0xd4], 1
push ecx
mov ecx, eax
call fcn.10028980
mov dword [ebp - 0xdc], eax
mov dword [ebp - 4], 2
mov ebx, 3
mov dword [ebp - 0xd4], ebx
cmp dword [eax + 0x14], 8
jb 0x10031a33
mov eax, dword [eax]
mov dword [ebp - 0xdc], eax
jmp 0x10031a33
mov dword [ebp - 0xdc], 0
test esi, esi
je 0x10031a78
lea ecx, [ebp - 0xd0]
call fcn.10020c00
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x40]
push esi
push ecx
or ebx, 4
mov ecx, eax
mov dword [ebp - 0xd4], ebx
call fcn.10028980
mov dword [ebp - 4], 4
or ebx, 8
mov dword [ebp - 0xd4], ebx
cmp dword [eax + 0x14], 8
jb 0x10031a7a
mov eax, dword [eax]
jmp 0x10031a7a
xor eax, eax
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
push dword [ebp - 0xdc]
push eax
push ecx
push str.Hardware___i__PlatformName___s__CommandLine___s__HostType___i._n
push dword [edi + 0x303c]
call fcn.10007490
add esp, 0x18
mov dword [ebp - 4], 3
test bl, 8
je 0x10031ad5
and ebx, 0xfffffff7
mov dword [ebp - 0xd4], ebx
cmp dword [ebp - 0x2c], 8
jb 0x10031ac1
push dword [ebp - 0x40]
call fcn.10036d8f
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 2
test bl, 4
je 0x10031af5
and ebx, 0xfffffffb
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xd4], ebx
call fcn.10021ba0
mov dword [ebp - 4], 1
test bl, 2
je 0x10031b2f
and ebx, 0xfffffffd
mov dword [ebp - 0xd4], ebx
cmp dword [ebp - 0x14], 8
jb 0x10031b1b
push dword [ebp - 0x28]
call fcn.10036d8f
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0
test bl, 1
je 0x10031b4f
and ebx, 0xfffffffe
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xd4], ebx
call fcn.10021ba0
mov eax, dword [ebp + 0x1c]
mov ecx, 0x10031280
mov dword [edi + 0x11c8], eax
mov eax, dword [ebp - 0xd8]
test eax, eax
cmove eax, ecx
mov dword [ebp - 0xd8], eax
mov dword [edi + 0x11c0], eax
mov eax, dword [ebp - 0xe4]
mov dword [edi + 0x11c4], eax
mov eax, str.iSST
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x10031ba5
test cl, cl
je 0x10031ba1
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x10031ba5
add esi, 2
add eax, 2
test cl, cl
jne 0x10031b85
xor eax, eax
jmp 0x10031baa
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [edi + 0x303c]
jne 0x10031c16
cmp byte [eax + 0x1e10], 0
je 0x10031bcb
push str.HiFi2Platform_iSST_selected._n
push eax
call fcn.10007490
add esp, 8
push 0x90c
mov dword [edi + 0x11b8], 1
call fcn.10036de0
add esp, 4
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x10031c06
mov ecx, eax
call fcn.10030350
mov byte [ebp - 4], 0
lea ebx, [edi + 0x11d0]
mov dword [ebx + 0x28], eax
jmp 0x10031c44
xor eax, eax
mov byte [ebp - 4], al
lea ebx, [edi + 0x11d0]
mov dword [ebx + 0x28], eax
jmp 0x10031c44
cmp byte [eax + 0x1e10], 0
je 0x10031c2d
push str.HiFi2Platform_RTKUSB_selected._n
push eax
call fcn.10007490
add esp, 8
lea ebx, [edi + 0x11d0]
mov dword [edi + 0x11b8], 0
mov dword [ebx + 0x28], 0x10113588
cmp dword [ebp + 8], 0
lea eax, [edi + 0x1b0]
mov dword [edi + 0x198], 0xffffffff
mov dword [edi + 0x11b0], eax
lea eax, [edi + 0x9b0]
mov dword [edi + 0x11b4], eax
setne al
push ecx
mov byte [edi + 0x11bc], al
mov byte [edi + 0x19c], 1
mov dword [esp], 0x3e000000
call fcn.100194a0
mov dword [edi + 0x1a0], eax
mov dword [esp], 0x3f800000
call fcn.100194a0
mov dword [edi + 0x1a8], eax
mov dword [esp], 0x40800000
call fcn.100194a0
mov dword [edi + 0x1a4], eax
mov dword [esp], 0x3f135008
call fcn.100194a0
mov dword [edi + 0x1ac], eax
add esp, 4
mov eax, dword [ebp + 0x1c]
mov byte [ebx + 0x2c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx], eax
cmp eax, 3
je 0x10031dcc
cmp eax, 4
je 0x10031dcc
cmp dword [edi + 0x11b8], 1
jne 0x10031dcc
mov eax, dword [edi + 0x303c]
cmp byte [eax + 0x1e10], 0
je 0x10031d12
push str.Loading_SECOMN32.dll..._n
push eax
call fcn.10007490
add esp, 8
push str.SECOMN32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x11d4], eax
test eax, eax
je 0x10031dc9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SEAPOCOMAPI_Initialize
push eax
call esi
push str.SEAPOCOMAPI_InitializeEx
push dword [edi + 0x11d4]
mov dword [edi + 0x11dc], eax
call esi
push str.SEAPOCOMAPI_Free
push dword [edi + 0x11d4]
mov dword [edi + 0x11e0], eax
call esi
push str.SEAPOCOMAPI_SetAPOType
push dword [edi + 0x11d4]
mov dword [edi + 0x11e4], eax
call esi
push str.SEAPOCOMAPI_SetUserParameter
push dword [edi + 0x11d4]
mov dword [edi + 0x11e8], eax
call esi
mov dword [edi + 0x11ec], eax
mov eax, dword [edi + 0x11dc]
push 0
call eax
push 0x1009542c
mov dword [edi + 0x11d8], eax
push eax
mov eax, dword [edi + 0x11e8]
call eax
mov eax, dword [edi + 0x303c]
add esp, 0xc
cmp byte [eax + 0x1e10], 0
je 0x10031dc9
push 0x10094548
push eax
call fcn.10007490
add esp, 8
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10031e34
push dword [ebp - 0xe8]
push eax
push dword [ebp - 0xe4]
mov eax, dword [ebp - 0xd8]
push eax
push dword [ebp - 0xe0]
push dword [edi + 0x11b8]
push ebx
push dword [edi + 0x303c]
call fcn.10023780
push dword [edi + 0x1a0]
mov eax, dword [ebx + 0x28]
push str.InputGain
push dword [eax + 0x10]
push 1
push ebx
call fcn.10024d80
push dword [edi + 0x1a8]
mov eax, dword [ebx + 0x28]
push str.OutputGain
push dword [eax + 0x14]
push 2
push ebx
call fcn.10024d80
add esp, 0x48
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.100078a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100368c4
mov esp, ebp
pop ebp
ret