Function at 0x1000f270
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 [0x10016190], 8
jne 0x1000f400
mov dword [esp], 0x14
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x1000fd3b
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], 0x1001cc70
call sym._MMDevEnum_Create
mov ebx, eax
test eax, eax
js 0x1000f3e0
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 0x1000f5b8
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 0x1000f580
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 [0x10016190], 4
jne 0x1000f848
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 0
jmp 0x1000f38a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000f9b0
mov eax, dword [ebp + 0xc]
shr eax, 0x10
je 0x1000f608
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], 0x1001df48
call sym._wine_dbg_sprintf_4
mov dword [ebp - 0x144], eax
test edi, edi
je 0x1000f9a0
mov eax, edi
shr eax, 0x10
je 0x1000f900
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x1001dfbe
sub esp, 8
test eax, eax
jne 0x1000f754
cmp word [edi], 0
je 0x1000fa08
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [edi + edx*2 + 2], 0
jne 0x1000f4e0
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 0x1000f548
cmp ax, 9
je 0x1000f7a0
cmp ax, 0xa
jne 0x1000f7d6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x1000f720
lea edi, [ebp - 0x16]
cmp ecx, edi
ja 0x1000f720
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x1000f7b8
jbe 0x1000f510
cmp ax, 0x22
je 0x1000f830
cmp ax, 0x5c
jne 0x1000f7c9
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x1000f530
test byte [0x10016190], 4
jne 0x1000f630
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 0x1000f3f0
mov dword [esp + 4], str.2EEF81BE_33FA_4800_9670_1CD474972C3F
mov dword [esp], edi
call ebx
sub esp, 8
test eax, eax
jne 0x1000f878
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 0x1000f32c
movzx eax, word [ebp + 0xc]
mov dword [esp], 0x1001df38
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_4
mov dword [ebp - 0x144], eax
jmp 0x1000f4a0
mov edx, 0x1001df31
test edi, edi
je 0x1000f95a
mov eax, edi
shr eax, 0x10
je 0x1000f9e8
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x1001dfbe
sub esp, 8
test eax, eax
jne 0x1000f95a
cmp word [edi], 0
je 0x1000fc37
nop
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [edi + edx*2 + 2], 0
jne 0x1000f678
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 0x1000f6e9
cmp ax, 9
je 0x1000fa48
cmp ax, 0xa
jne 0x1000fa62
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
cmp ecx, dword [ebp - 0x144]
ja 0x1000f920
test edx, edx
jle 0x1000f920
mov edx, eax
movzx eax, word [edi]
add edi, 2
cmp ax, 0xd
je 0x1000fa30
jbe 0x1000f6b0
cmp ax, 0x22
je 0x1000fab8
cmp ax, 0x5c
jne 0x1000fa59
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000f6d0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov byte [ecx], 0x22
test eax, eax
jle 0x1000fa21
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], 0x10016190
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000f28f
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000f530
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000f530
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x1000f990
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 0x1000f530
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x1000f530
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], 0x10016190
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000f3ed
mov dword [esp + 8], 0x22
mov dword [esp + 4], str._SWDMMDEVAPI
mov dword [esp], edi
call sym._memcmp
test eax, eax
jne 0x1000f9c0
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 0x1000f8c6
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, ebx
jne 0x1000f8b0
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 0x1000f32c
movzx eax, di
mov dword [esp], 0x1001dffd
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_4
mov edx, eax
jmp 0x1000f754
mov esi, dword [ebp - 0x148]
mov ebx, dword [ebp - 0x14c]
mov byte [ecx], 0x22
test eax, eax
jle 0x1000fc50
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], 0x10016190
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000f58d
mov byte [ecx], al
add ecx, 1
jmp 0x1000f530
mov edx, 0x1001df31
jmp 0x1000f754
mov dword [ebp - 0x144], 0x1001df31
jmp 0x1000f4a0
movzx eax, byte [0x10016190]
test al, 1
jne 0x1000fae0
test al, 4
je 0x1000f58d
mov ebx, 0x80070002
jmp 0x1000f63d
movzx eax, di
mov dword [esp], 0x1001dffd
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_4
mov edx, eax
jmp 0x1000f95a
mov eax, 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [ecx + 1]
jmp 0x1000f741
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000f6d0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000f6d0
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x1000fad0
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 0x1000f6d0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000f6d0
mov byte [ecx], al
add ecx, 1
jmp 0x1000f6d0
mov eax, edi
shr eax, 0x10
je 0x1000fcf9
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x1001dfbe
sub esp, 8
test eax, eax
jne 0x1000fc03
cmp word [edi], 0
je 0x1000fd1d
lea esi, [esi]
lea edi, [edi]
mov edx, eax
lea eax, [eax + 1]
cmp word [edi + edx*2 + 2], 0
jne 0x1000fb20
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 0x1000fb8d
cmp ax, 9
je 0x1000fce8
cmp ax, 0xa
jne 0x1000fc76
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
nop
lea esi, [esi]
lea eax, [edx - 1]
cmp ecx, esi
ja 0x1000fbcc
test edx, edx
jle 0x1000fbcc
mov edx, eax
add dword [ebp - 0x144], 2
mov eax, dword [ebp - 0x144]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x1000fc58
jbe 0x1000fb58
cmp ax, 0x22
je 0x1000fcd0
cmp ax, 0x5c
jne 0x1000fc69
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x1000fb80
mov esi, dword [ebp - 0x148]
mov edi, dword [ebp + 8]
mov byte [ecx], 0x22
test eax, eax
jle 0x1000fd33
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], 0x10016190
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_4
movzx eax, byte [0x10016190]
jmp 0x1000f9cf
mov edi, 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], di
lea eax, [ecx + 1]
jmp 0x1000f947
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000fb80
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x1000fd13
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 0x1000fb80
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x1000fb80
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000fb80
movzx eax, di
mov dword [esp], 0x1001dffd
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_4
mov edx, eax
jmp 0x1000fc03
mov byte [ecx], al
add ecx, 1
jmp 0x1000fb80
mov word [ebp - 0x138], 0x224c
lea ecx, [ebp - 0x136]
mov byte [ebp - 0x136], 0x22
lea eax, [ecx + 1]
jmp 0x1000fbf0
mov eax, 0x8007000e
jmp 0x1000f3d1