Function at 0x4021f0
Capabilities:
Check if process is running under wine

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x9d8
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cmp eax, 0x110
je 0x4022a0
ja 0x402260
cmp eax, 0x18
je 0x402280
cmp eax, 0x4e
jne case.0x402274.1301
mov eax, dword [ecx + 8]
cmp eax, 0xffffff37
je 0x402ea3
cmp eax, 0xffffff9b
je 0x402dd0
cmp eax, 0xffffff36
je 0x402c10
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp eax, 0x111
jne case.0x402274.1301
movzx eax, dx
sub eax, 0x514
cmp eax, 0xd
ja case.0x402274.1301
jmp dword [eax*4 + 0x4179f4]
mov dword [esp], edi
call sym._set_window_title
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
test byte [0x415040], 8
jne 0x402e68
mov esi, dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [esp], 0
mov dword [ebp - 0x9a4], esi
call esi
mov ebx, dword [sym.imp.user32.dll_LoadStringW]
lea edx, [ebp - 0x618]
sub esp, 4
mov dword [ebp - 0x9b4], edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0x516
mov dword [esp], eax
mov dword [ebp - 0x9a8], ebx
call ebx
sub esp, 0x10
mov dword [esp], 0
call esi
lea ecx, [ebp - 0x918]
sub esp, 4
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0x40
mov dword [esp + 4], 0x517
mov dword [esp], eax
call ebx
sub esp, 0x10
mov dword [esp], 0
call esi
lea esi, [ebp - 0x418]
sub esp, 4
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], 0x51f
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x994]
sub esp, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x41eba8
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x419ce8
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
jns 0x402ab0
mov dword [ebp - 0x9b0], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x9a0], eax
lea eax, [ebp - 0x818]
mov dword [ebp - 0x9c0], eax
lea eax, [ebp - 0x898]
mov dword [ebp - 0x9ac], eax
mov eax, dword [sym.imp.user32.dll_SendDlgItemMessageW]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov ebx, eax
mov dword [esp + 8], 0x143
mov dword [esp + 4], 0x518
mov dword [esp], edi
mov dword [ebp - 0x99c], eax
call eax
mov eax, ebx
sub esp, 0x14
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x14e
mov dword [esp + 4], 0x518
mov dword [esp], edi
call eax
mov eax, ebx
sub esp, 0x14
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x143
mov dword [esp + 4], 0x519
mov dword [esp], edi
call eax
mov eax, ebx
sub esp, 0x14
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x14e
mov dword [esp + 4], 0x519
mov dword [esp], edi
call eax
mov eax, ebx
sub esp, 0x14
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x143
mov dword [esp + 4], 0x51a
mov dword [esp], edi
call eax
mov eax, ebx
sub esp, 0x14
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x14e
mov dword [esp + 4], 0x51a
mov dword [esp], edi
call eax
mov eax, ebx
sub esp, 0x14
mov dword [esp + 0x10], esi
xor esi, esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x143
mov dword [esp + 4], 0x51b
mov dword [esp], edi
call eax
mov eax, ebx
mov ebx, 0x522
sub esp, 0x14
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x14e
mov dword [esp + 4], 0x51b
mov dword [esp], edi
call eax
sub esp, 0x14
mov dword [esp], 0
mov eax, dword [ebp - 0x9a4]
inc esi
call eax
mov edx, dword [ebp - 0x9a0]
sub esp, 4
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [ebp - 0x9a8]
mov dword [esp + 0xc], 0x100
call eax
mov edx, dword [ebp - 0x9a0]
mov eax, dword [ebp - 0x99c]
sub esp, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x143
mov dword [esp + 4], 0x521
mov dword [esp], edi
call eax
mov ebx, dword [esi*8 + 0x423200]
sub esp, 0x14
test ebx, ebx
jne 0x40250f
mov dword [esp + 4], 0x526
mov ebx, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [esp], edi
call ebx
lea edx, [ebp - 0x990]
sub esp, 8
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetClientRect]
mov eax, dword [ebp - 0x988]
mov edx, 0x66666667
sub eax, dword [ebp - 0x990]
lea ecx, [eax + eax*2]
sub esp, 8
mov eax, ecx
sar ecx, 0x1f
mov dword [esp], 0
imul edx
mov eax, dword [ebp - 0x9a4]
sar edx, 1
sub edx, ecx
mov esi, edx
call eax
mov ecx, dword [ebp - 0x9ac]
mov edx, dword [ebp - 0x9a8]
sub esp, 4
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x520
mov dword [esp], eax
call edx
mov eax, dword [ebp - 0x9ac]
mov dword [ebp - 0x980], 0xe
sub esp, 0x10
cmp word [ebp - 0x898], 0
mov dword [ebp - 0x974], eax
je 0x40359a
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402630
sub eax, dword [ebp - 0x9ac]
sar eax, 1
lea edx, [ebp - 0x980]
mov dword [ebp - 0x970], eax
mov eax, dword [ebp - 0x99c]
mov dword [esp + 0x10], edx
mov dword [ebp - 0x978], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1061
mov dword [esp + 4], 0x526
mov dword [esp], edi
call eax
mov eax, dword [ebp - 0x9a4]
sub esp, 0x14
mov dword [esp], 0
call eax
mov ecx, dword [ebp - 0x9ac]
mov edx, dword [ebp - 0x9a8]
sub esp, 4
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x527
mov dword [esp], eax
call edx
mov eax, dword [ebp - 0x9ac]
lea edx, [ebp - 0x980]
sub esp, 0x10
cmp word [ebp - 0x898], 0
mov dword [ebp - 0x974], eax
je 0x403593
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4026e0
sub eax, dword [ebp - 0x9ac]
sar eax, 1
mov dword [ebp - 0x970], eax
mov eax, dword [ebp - 0x988]
sub eax, dword [ebp - 0x990]
mov dword [esp + 0x10], edx
sub eax, esi
mov dword [esp + 0xc], 1
mov dword [ebp - 0x978], eax
mov eax, dword [ebp - 0x99c]
mov dword [esp + 8], 0x1061
mov dword [esp + 4], 0x526
mov dword [esp], edi
call eax
sub esp, 0x14
mov dword [esp + 4], 0x521
mov dword [esp], edi
call ebx
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_EnableWindow]
mov eax, dword [ebp - 0x9b0]
sub esp, 8
test eax, eax
je 0x402f68
mov dword [esp + 0xc], 0
xor ebx, ebx
mov dword [esp + 8], str.DefaultOutput
mov dword [esp + 4], str.SoftwareWineDrivers_
mov dword [esp], Ordinal_2
call sym._get_reg_key
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.DefaultVoiceOutput
mov dword [esp + 4], str.SoftwareWineDrivers_
mov dword [esp], Ordinal_2
mov dword [ebp - 0x9b8], eax
call sym._get_reg_key
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.DefaultInput
mov dword [esp + 4], str.SoftwareWineDrivers_
mov dword [esp], Ordinal_2
mov dword [ebp - 0x9bc], eax
call sym._get_reg_key
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.DefaultVoiceInput
mov dword [esp + 4], str.SoftwareWineDrivers_
mov dword [esp], Ordinal_2
mov dword [ebp - 0x9b0], eax
call sym._get_reg_key
mov dword [ebp - 0x9b4], eax
mov eax, dword [0x416e88]
test eax, eax
jne 0x40282c
jmp 0x402fc0
cmp dword [0x416e88], ebx
jbe 0x402fc0
mov esi, ebx
mov eax, dword [0x416eac]
mov dword [ebp - 0x9ac], ebx
inc ebx
shl esi, 5
add eax, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x402820
mov eax, dword [eax + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x143
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x99c]
mov dword [esp + 4], 0x518
mov dword [esp], edi
call eax
mov ecx, dword [0x416eac]
mov eax, dword [ebp - 0x99c]
sub esp, 0x14
add ecx, esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 0x151
mov dword [esp + 4], 0x518
mov dword [esp], edi
call eax
mov eax, dword [ebp - 0x9b8]
sub esp, 0x14
test eax, eax
je 0x4028c7
mov dword [esp + 4], eax
mov eax, dword [0x416eac]
mov eax, dword [eax + esi]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x402f00
mov eax, dword [0x416eac]
mov eax, dword [eax + esi + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x143
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x99c]
mov dword [esp + 4], 0x519
mov dword [esp], edi
call eax
mov edx, dword [0x416eac]
mov eax, dword [ebp - 0x99c]
sub esp, 0x14
add edx, esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0x151
mov dword [esp + 4], 0x519
mov dword [esp], edi
call eax
mov eax, dword [ebp - 0x9bc]
sub esp, 0x14
test eax, eax
je 0x40294f
mov dword [esp + 4], eax
mov eax, dword [0x416eac]
mov eax, dword [eax + esi]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x402ed0
mov edx, dword [0x416eac]
mov eax, dword [ebp - 0x9ac]
mov dword [ebp - 0x954], 5
mov dword [ebp - 0x94c], 0
add edx, esi
mov dword [ebp - 0x950], eax
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x940], ecx
cmp word [ecx], 0
je 0x403570
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402990
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x93c], eax
lea eax, [ebp - 0x954]
mov dword [ebp - 0x934], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x99c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x104d
mov dword [esp + 4], 0x526
mov dword [esp], edi
call eax
mov eax, dword [0x416eac]
sub esp, 0x14
mov eax, dword [eax + esi + 0x18]
mov dword [esp], 0
mov esi, dword [eax*8 + 0x423200]
mov eax, dword [ebp - 0x9a4]
call eax
mov edx, dword [ebp - 0x9a0]
mov ecx, dword [ebp - 0x9a8]
sub esp, 4
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call ecx
mov ecx, dword [ebp - 0x9ac]
mov eax, dword [ebp - 0x9a0]
mov dword [ebp - 0x954], 1
mov dword [ebp - 0x94c], 1
sub esp, 0x10
cmp word [ebp - 0x218], 0
mov dword [ebp - 0x950], ecx
mov dword [ebp - 0x940], eax
je 0x403560
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402a60
sub eax, dword [ebp - 0x9a0]
sar eax, 1
mov dword [ebp - 0x93c], eax
lea eax, [ebp - 0x954]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x99c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x104c
mov dword [esp + 4], 0x526
mov dword [esp], edi
call eax
sub esp, 0x14
jmp 0x402820
mov dword [esp], 0x416eac
mov eax, dword [ebp - 0x994]
mov ecx, 0x416e88
xor edx, edx
call sym._load_devices.isra.0
mov eax, dword [ebp - 0x994]
mov ecx, 0x416e84
mov dword [esp], 0x415a40
mov edx, 1
call sym._load_devices.isra.0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0
lea ecx, [ebp - 0x898]
mov dword [ebp - 0x9a0], eax
mov eax, dword [ebp - 0x994]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0
mov edx, dword [eax]
mov dword [ebp - 0x9ac], ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x4179d0
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
test eax, eax
js 0x4035a1
mov eax, dword [ebp - 0x898]
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x9c0], ecx
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0xc
test eax, eax
js 0x4031a7
mov eax, dword [ebp - 0x818]
mov ecx, dword [ebp - 0x9a0]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x41ab08
mov dword [esp], eax
call dword [edx + 0x14]
mov ebx, eax
mov eax, dword [ebp - 0x818]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x898]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test ebx, ebx
js 0x4031b8
mov dword [ebp - 0x9b0], 0
mov eax, dword [ebp - 0x210]
cmp word [eax], 0
jne 0x4035b2
mov eax, dword [ebp - 0x9a0]
mov dword [esp], eax
call sym._PropVariantClear_4
mov eax, dword [ebp - 0x994]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x4023bd
lea eax, [ebp - 0x818]
mov dword [esp + 0xc], 0x41eba8
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x419ce8
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x402e91
mov eax, 0x13
xor ebx, ebx
mov dword [ebp - 0x218], 0
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x618]
mov dword [ebp - 0x9b4], eax
mov eax, dword [0x416e88]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0
test eax, eax
je 0x40357d
mov dword [ebp - 0x99c], edi
mov edi, dword [ebp - 0x9b4]
jmp 0x402d4b
mov eax, dword [ebp - 0x618]
lea ecx, [ebp - 0x418]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0xc
test eax, eax
js 0x403500
mov eax, dword [0x416eac]
lea ecx, [ebp - 0x218]
mov eax, dword [eax + esi + 0x18]
mov eax, dword [eax*8 + 0x423204]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x420dac
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
test eax, eax
js 0x4034a0
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x618]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
inc ebx
cmp ebx, dword [0x416e88]
jae 0x403577
mov eax, dword [ebp - 0x818]
mov ecx, dword [0x416eac]
mov esi, ebx
shl esi, 5
mov edx, dword [eax]
mov dword [esp + 8], edi
mov ecx, dword [ecx + esi]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x14]
sub esp, 0xc
test eax, eax
jns 0x402cb0
test byte [0x415040], 4
je 0x402d3e
mov dword [ebp - 0x9a0], eax
mov eax, dword [0x416eac]
mov eax, dword [eax + esi]
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x9a0]
mov dword [esp + 0xc], str.Could_not_get_MMDevice_for__s:_0x_08lx_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.apply_speaker_configs
mov dword [esp + 4], 0x415040
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x402d3e
mov dword [esp + 0x10], 2
mov ebx, dword [sym.imp.user32.dll_SendDlgItemMessageW]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0x100c
mov dword [esp + 4], 0x526
mov dword [esp], edi
call ebx
sub esp, 0x14
test eax, eax
js 0x403472
shl eax, 5
add eax, dword [0x416eac]
mov dword [esp + 0x10], 0
mov eax, dword [eax + 0x18]
mov dword [esp + 8], 0x14e
mov dword [esp + 4], 0x521
mov dword [esp + 0xc], eax
mov dword [esp], edi
call ebx
sub esp, 0x14
mov dword [esp + 4], 0x521
mov dword [esp], edi
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.user32.dll_EnableWindow]
sub esp, 8
jmp case.0x402274.1301
mov dword [esp + 0xc], 0x4179cc
mov dword [esp + 8], str.initAudioDlg
mov dword [esp + 4], 0x415040
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4022ad
test byte [0x415040], 2
jne 0x40361f
call sym._apply
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call dword [sym.imp.user32.dll_SetWindowLongW]
xor eax, eax
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x99c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x14e
mov dword [esp + 4], 0x519
mov dword [esp], edi
call eax
sub esp, 0x14
jmp 0x40294f
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x99c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x14e
mov dword [esp + 4], 0x518
mov dword [esp], edi
call eax
mov eax, dword [0x416eac]
sub esp, 0x14
mov dword [esp + 0x10], 0
mov eax, dword [eax + esi + 0x18]
mov dword [esp + 8], 0x14e
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x99c]
mov dword [esp + 4], 0x521
mov dword [esp], edi
call eax
sub esp, 0x14
jmp 0x4028c7
lea eax, [ebp - 0x918]
mov dword [esp + 4], 0x100
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x9b4]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x9c0]
mov dword [esp], eax
call sym._swprintf.constprop.0
mov eax, dword [ebp - 0x9c0]
mov dword [esp], edi
mov dword [esp + 4], 0x515
mov dword [esp + 8], eax
call dword [sym.imp.user32.dll_SetDlgItemTextW]
xor eax, eax
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [sym.imp.ucrtbase.dll_wcscmp]
mov esi, dword [0x416e84]
xor ebx, ebx
mov dword [ebp - 0x9a0], eax
test esi, esi
jne 0x403074
jmp 0x403170
mov eax, dword [0x415a40]
mov eax, dword [eax + esi + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x143
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x99c]
mov dword [esp + 4], 0x51b
mov dword [esp], edi
call eax
mov ecx, dword [0x415a40]
mov eax, dword [ebp - 0x99c]
sub esp, 0x14
add ecx, esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 0x151
mov dword [esp + 4], 0x51b
mov dword [esp], edi
call eax
mov eax, dword [ebp - 0x9b4]
sub esp, 0x14
test eax, eax
je 0x403068
mov dword [esp + 4], eax
mov eax, dword [0x415a40]
mov eax, dword [eax + esi]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x403140
cmp dword [0x416e84], ebx
jbe 0x403170
mov esi, ebx
mov eax, dword [0x415a40]
inc ebx
shl esi, 5
add eax, esi
mov edx, dword [eax]
test edx, edx
je 0x403068
mov eax, dword [eax + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x143
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x99c]
mov dword [esp + 4], 0x51a
mov dword [esp], edi
call eax
mov edx, dword [0x415a40]
mov eax, dword [ebp - 0x99c]
sub esp, 0x14
add edx, esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0x151
mov dword [esp + 4], 0x51a
mov dword [esp], edi
call eax
mov eax, dword [ebp - 0x9b0]
sub esp, 0x14
test eax, eax
je 0x402fe0
mov dword [esp + 4], eax
mov eax, dword [0x415a40]
mov eax, dword [eax + esi]
mov dword [esp], eax
mov eax, dword [ebp - 0x9a0]
call eax
test eax, eax
jne 0x402fe0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x99c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x14e
mov dword [esp + 4], 0x51a
mov dword [esp], edi
call eax
sub esp, 0x14
jmp 0x402fe0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x99c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x14e
mov dword [esp + 4], 0x51b
mov dword [esp], edi
call eax
sub esp, 0x14
jmp 0x403068
mov eax, dword [ebp - 0x9b8]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x9bc]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x9b0]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x9b4]
mov dword [esp], eax
call ebx
jmp 0x402f92
mov eax, dword [ebp - 0x898]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov dword [ebp - 0x9b0], 0
jmp 0x402be4
shr edx, 0x10
cmp edx, 1
jne case.0x402274.1301
mov ecx, str.DefaultInput
mov edx, 0x51a
mov eax, edi
call sym._set_reg_device
mov dword [esp], edi
call dword [sym.imp.user32.dll_GetParent]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x468
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp case.0x402274.1301
shr edx, 0x10
cmp edx, 1
jne case.0x402274.1301
mov ecx, str.DefaultVoiceOutput
mov edx, 0x519
mov eax, edi
call sym._set_reg_device
jmp 0x4031e4
shr edx, 0x10
cmp edx, 1
jne case.0x402274.1301
mov ecx, str.DefaultOutput
mov edx, 0x518
mov eax, edi
call sym._set_reg_device
jmp 0x4031e4
mov dword [esp + 8], 0x40005
mov dword [esp + 4], 0
mov dword [esp], 0x51c
call sym._PlaySoundW_12
sub esp, 0xc
test eax, eax
jne case.0x402274.1301
mov esi, dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [esp], 0
lea ebx, [ebp - 0x418]
call esi
mov edi, dword [sym.imp.user32.dll_LoadStringW]
sub esp, 4
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x51d
mov dword [esp], eax
call edi
sub esp, 0x10
mov dword [esp], 0
call esi
lea esi, [ebp - 0x218]
sub esp, 4
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], 0x51e
mov dword [esp], eax
call edi
sub esp, 0x10
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.user32.dll_MessageBoxW]
sub esp, 0x10
jmp case.0x402274.1301
shr edx, 0x10
cmp edx, 1
jne case.0x402274.1301
mov ebx, dword [sym.imp.user32.dll_SendDlgItemMessageW]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [ebp - 0x99c], ebx
mov dword [esp + 8], 0x147
mov dword [esp + 4], 0x521
mov dword [esp], edi
call ebx
sub esp, 0x14
mov esi, eax
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0x100c
mov dword [esp + 4], 0x526
mov dword [esp], edi
call ebx
sub esp, 0x14
mov ebx, eax
cmp dword [0x416e88], eax
jbe case.0x402274.1301
shl eax, 5
add eax, dword [0x416eac]
mov dword [eax + 0x18], esi
mov esi, dword [esi*8 + 0x423200]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
lea edx, [ebp - 0x218]
sub esp, 4
mov dword [ebp - 0x9a0], edx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
mov eax, dword [ebp - 0x9a0]
mov dword [ebp - 0x418], 1
sub esp, 0x10
mov dword [ebp - 0x414], ebx
cmp word [ebp - 0x218], 0
mov dword [ebp - 0x410], 1
mov dword [ebp - 0x404], eax
je 0x40364c
add eax, 2
cmp word [eax], 0
jne 0x403402
sub eax, dword [ebp - 0x9a0]
mov dword [esp + 0xc], 0
sar eax, 1
mov dword [esp + 8], 0x104c
mov dword [ebp - 0x400], eax
lea eax, [ebp - 0x418]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x99c]
mov dword [esp + 4], 0x526
mov dword [esp], edi
call eax
sub esp, 0x14
jmp 0x4031e4
shr edx, 0x10
cmp edx, 1
jne case.0x402274.1301
mov ecx, str.DefaultVoiceInput
mov edx, 0x51b
mov eax, edi
call sym._set_reg_device
jmp 0x4031e4
mov dword [esp + 4], 0x521
mov dword [esp], edi
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_EnableWindow]
sub esp, 8
jmp case.0x402274.1301
test byte [0x415040], 4
je 0x402d1c
mov dword [ebp - 0x9a0], eax
mov eax, dword [0x416eac]
mov eax, dword [eax + esi]
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x9a0]
mov dword [esp + 0xc], str.IPropertyStore_SetValue_failed_for__s:_0x_08lx_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.apply_speaker_configs
mov dword [esp + 4], 0x415040
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x402d1c
test byte [0x415040], 4
je 0x402d2d
mov dword [ebp - 0x9a0], eax
mov eax, dword [0x416eac]
mov eax, dword [eax + esi]
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x9a0]
mov dword [esp + 0xc], str.Could_not_open_property_store_for__s:_0x_08lx_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.apply_speaker_configs
mov dword [esp + 4], 0x415040
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x402d2d
xor eax, eax
jmp 0x402a71
xor eax, eax
jmp 0x40299d
mov edi, dword [ebp - 0x99c]
mov eax, dword [ebp - 0x818]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x402e9e
xor eax, eax
jmp 0x4026f1
xor eax, eax
jmp 0x402641
lea eax, [ebp - 0x818]
mov dword [ebp - 0x9c0], eax
jmp 0x4031b8
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x9b4]
mov dword [esp + 4], 0x100
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x9c0]
mov dword [esp], eax
call sym._swprintf.constprop.0
mov ebx, dword [ebp - 0x210]
mov edx, str.SoftwareWineDrivers_
cmp word [str.SoftwareWineDrivers_], 0
je 0x4035f9
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x4035f0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403600
mov dword [ebp - 0x9b0], 1
jmp 0x402be4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unable_to_create_MMDeviceEnumerator:_0x_08lx_n
mov dword [esp + 8], str.apply_speaker_configs
mov dword [esp + 4], 0x415040
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x402e9e
mov eax, dword [ebp - 0x9a0]
jmp 0x40340b