Function at 0x100104f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x170
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
test byte [0x10018190], 8
jne 0x10010680
mov dword [esp], 0x14
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x10010fbb
mov dword [eax + 8], ebx
mov dword [eax + 4], 2
mov dword [eax], sym._activate_async_op_QueryInterface_12
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 4]
lea eax, [ebp - 0x13c]
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], 0x1001ef90
call sym._MMDevEnum_Create
mov ebx, eax
test eax, eax
js 0x10010660
mov dword [esp + 4], str.E6327CAD_DCEC_4949_AE8A_991E976A79D2
mov ebx, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [esp], edi
call ebx
sub esp, 8
test eax, eax
jne 0x10010838
mov eax, dword [ebp - 0x13c]
lea ecx, [ebp - 0x140]
mov edx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x10
mov ebx, eax
test ebx, ebx
js 0x10010800
mov eax, dword [ebp - 0x13c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x140]
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], ebx
sub esp, 4
mov edi, dword [ebp + 0xc]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call dword [edx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x140]
sub esp, 0x14
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], sym._activate_async_threadproc_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp + 0x18]
sub esp, 4
mov dword [eax], esi
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
test byte [0x10018190], 4
jne 0x10010ac8
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 0
jmp 0x1001060a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10010c30
mov eax, dword [ebp + 0xc]
shr eax, 0x10
je 0x10010888
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0xf]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0xe]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0xd]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0xb]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0xa]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 9]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 6]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 4]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], 0x10020268
call sym._wine_dbg_sprintf_4
mov dword [ebp - 0x144], eax
test edi, edi
je 0x10010c20
mov eax, edi
shr eax, 0x10
je 0x10010b80
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x100202de
sub esp, 8
test eax, eax
jne 0x100109d4
cmp word [edi], 0
je 0x10010c88
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [edi + edx*2 + 2], 0
jne 0x10010760
mov ecx, 0x224c
mov dword [ebp + 8], edi
mov esi, edi
mov word [ebp - 0x138], cx
lea ecx, [ebp - 0x136]
mov dword [ebp + 0x14], ebx
jmp 0x100107c8
cmp ax, 9
je 0x10010a20
cmp ax, 0xa
jne 0x10010a56
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x100109a0
lea edi, [ebp - 0x16]
cmp ecx, edi
ja 0x100109a0
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x10010a38
jbe 0x10010790
cmp ax, 0x22
je 0x10010ab0
cmp ax, 0x5c
jne 0x10010a49
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x100107b0
test byte [0x10018190], 4
jne 0x100108b0
mov dword [ebp - 0x140], 0
mov eax, dword [ebp - 0x13c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov dword [esi + 0xc], 0x80070002
sub esp, 4
jmp 0x10010670
mov dword [esp + 4], str.2EEF81BE_33FA_4800_9670_1CD474972C3F
mov dword [esp], edi
call ebx
sub esp, 8
test eax, eax
jne 0x10010af8
mov eax, dword [ebp - 0x13c]
lea ecx, [ebp - 0x140]
mov edx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x10
mov ebx, eax
jmp 0x100105ac
movzx eax, word [ebp + 0xc]
mov dword [esp], 0x10020258
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_4
mov dword [ebp - 0x144], eax
jmp 0x10010720
mov edx, 0x10020251
test edi, edi
je 0x10010bda
mov eax, edi
shr eax, 0x10
je 0x10010c68
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x100202de
sub esp, 8
test eax, eax
jne 0x10010bda
cmp word [edi], 0
je 0x10010eb7
nop
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [edi + edx*2 + 2], 0
jne 0x100108f8
mov eax, 0x224c
mov dword [ebp - 0x148], esi
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x16]
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x144], eax
jmp 0x10010969
cmp ax, 9
je 0x10010cc8
cmp ax, 0xa
jne 0x10010ce2
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
cmp ecx, dword [ebp - 0x144]
ja 0x10010ba0
test edx, edx
jle 0x10010ba0
mov edx, eax
movzx eax, word [edi]
add edi, 2
cmp ax, 0xd
je 0x10010cb0
jbe 0x10010930
cmp ax, 0x22
je 0x10010d38
cmp ax, 0x5c
jne 0x10010cd9
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10010950
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov byte [ecx], 0x22
test eax, eax
jle 0x10010ca1
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], str.__s___s___p___p___p__n
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 8], str.ActivateAudioInterfaceAsync
mov dword [esp + 0x14], eax
mov dword [esp + 4], 0x10018190
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1001050f
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x100107b0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x100107b0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x10010c10
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefload_driver]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefload_driver]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefload_driver]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefload_driver]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x100107b0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x100107b0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_create_MMDeviceEnumerator:__08lx_n
mov dword [esp + 8], str.get_mmdevice_by_activatepath
mov dword [esp + 4], 0x10018190
mov dword [esp], 2
call sym._wine_dbg_log.constprop.1_4
jmp 0x1001066d
mov dword [esp + 8], 0x22
mov dword [esp + 4], str._SWDMMDEVAPI
mov dword [esp], edi
call sym._memcmp
test eax, eax
jne 0x10010c40
lea edx, [edi + 0x22]
lea eax, [ebp - 0x138]
lea ebx, [ebp - 0xca]
mov esi, esi
lea edi, [edi]
movzx ecx, word [edx]
test cx, cx
je 0x10010b46
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, ebx
jne 0x10010b30
xor edx, edx
lea ecx, [ebp - 0x140]
mov word [eax], dx
mov eax, dword [ebp - 0x13c]
mov edx, dword [eax]
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x138]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
mov ebx, eax
jmp 0x100105ac
movzx eax, di
mov dword [esp], 0x1002031d
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_4
mov edx, eax
jmp 0x100109d4
mov esi, dword [ebp - 0x148]
mov ebx, dword [ebp - 0x14c]
mov byte [ecx], 0x22
test eax, eax
jle 0x10010ed0
mov edi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], di
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Failed_to_get_requested_device___s_:__08lx_n
mov dword [esp + 8], str.get_mmdevice_by_activatepath
mov dword [esp + 4], 0x10018190
mov dword [esp], 2
call sym._wine_dbg_log.constprop.1_4
jmp 0x1001080d
mov byte [ecx], al
add ecx, 1
jmp 0x100107b0
mov edx, 0x10020251
jmp 0x100109d4
mov dword [ebp - 0x144], 0x10020251
jmp 0x10010720
movzx eax, byte [0x10018190]
test al, 1
jne 0x10010d60
test al, 4
je 0x1001080d
mov ebx, 0x80070002
jmp 0x100108bd
movzx eax, di
mov dword [esp], 0x1002031d
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_4
mov edx, eax
jmp 0x10010bda
mov eax, 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [ecx + 1]
jmp 0x100109c1
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10010950
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10010950
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x10010d50
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefload_driver]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefload_driver]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefload_driver]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefload_driver]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10010950
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10010950
mov byte [ecx], al
add ecx, 1
jmp 0x10010950
mov eax, edi
shr eax, 0x10
je 0x10010f79
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x100202de
sub esp, 8
test eax, eax
jne 0x10010e83
cmp word [edi], 0
je 0x10010f9d
lea esi, [esi]
lea edi, [edi]
mov edx, eax
lea eax, [eax + 1]
cmp word [edi + edx*2 + 2], 0
jne 0x10010da0
mov ebx, 0x224c
lea eax, [ebp - 0x16]
mov dword [ebp - 0x148], esi
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], bx
mov esi, eax
mov dword [ebp - 0x144], edi
mov dword [ebp + 8], edi
jmp 0x10010e0d
cmp ax, 9
je 0x10010f68
cmp ax, 0xa
jne 0x10010ef6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
nop
lea esi, [esi]
lea eax, [edx - 1]
cmp ecx, esi
ja 0x10010e4c
test edx, edx
jle 0x10010e4c
mov edx, eax
add dword [ebp - 0x144], 2
mov eax, dword [ebp - 0x144]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x10010ed8
jbe 0x10010dd8
cmp ax, 0x22
je 0x10010f50
cmp ax, 0x5c
jne 0x10010ee9
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x10010e00
mov esi, dword [ebp - 0x148]
mov edi, dword [ebp + 8]
mov byte [ecx], 0x22
test eax, eax
jle 0x10010fb3
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Unrecognized_device_id_format:__s_n
mov dword [esp + 8], str.get_mmdevice_by_activatepath
mov dword [esp + 4], 0x10018190
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1_4
movzx eax, byte [0x10018190]
jmp 0x10010c4f
mov edi, 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], di
lea eax, [ecx + 1]
jmp 0x10010bc7
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10010e00
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x10010f93
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefload_driver]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefload_driver]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefload_driver]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefload_driver]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10010e00
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x10010e00
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10010e00
movzx eax, di
mov dword [esp], 0x1002031d
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_4
mov edx, eax
jmp 0x10010e83
mov byte [ecx], al
add ecx, 1
jmp 0x10010e00
mov word [ebp - 0x138], 0x224c
lea ecx, [ebp - 0x136]
mov byte [ebp - 0x136], 0x22
lea eax, [ecx + 1]
jmp 0x10010e70
mov eax, 0x8007000e
jmp 0x10010651