Function at 0x10001940
Capabilities:
Check if process is running under wine
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x450]
sub esp, 0x474
mov dword [ebp - 0x460], 0x208
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.hid.dll_HidD_GetProductString
sub esp, 0xc
test al, al
jne 0x10001988
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x45c]
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x458], 0
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineDirectInputJoysticks
mov dword [esp], 0x80000001
call edi
sub esp, 0xc
test eax, eax
je 0x100019c4
mov dword [ebp - 0x45c], 0
lea esi, [ebp - 0x248]
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
sub eax, 1
sub esp, 0xc
cmp eax, 0x102
jbe 0x10001b20
mov eax, dword [ebp - 0x45c]
mov edx, dword [ebp - 0x458]
test eax, eax
je 0x10001a50
test edx, edx
jne 0x10001a58
mov edx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
lea edi, [ebp - 0x460]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call edx
sub esp, 0x18
test eax, eax
je 0x10001af0
xor ebx, ebx
mov eax, dword [ebp - 0x458]
test eax, eax
jne 0x10001ab6
jmp 0x10001ac2
test edx, edx
je 0x10001977
mov dword [esp], edx
mov edx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
lea edi, [ebp - 0x460]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [ebp - 0x464], edx
call edx
mov edx, dword [ebp - 0x464]
sub esp, 0x18
test eax, eax
je 0x10001af0
mov eax, dword [ebp - 0x45c]
test eax, eax
jne 0x10001a14
mov eax, dword [ebp - 0x458]
xor ebx, ebx
test eax, eax
je 0x10001977
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0x45c]
test eax, eax
je 0x10001979
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.override
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
jne 0x10001a40
test byte [0x100074c0], 8
jne 0x10001bf0
mov ebx, 1
jmp 0x10001a42
lea eax, [ebp - 0x454]
mov dword [esp + 4], str.SoftwareWineAppDefaults
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call edi
sub esp, 0xc
test eax, eax
jne 0x100019f4
mov ecx, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp + 4], 0x2f
mov dword [esp], esi
mov dword [ebp - 0x468], ecx
call ecx
mov dword [esp + 4], 0x5c
lea edx, [eax + 2]
test eax, eax
cmove edx, esi
mov dword [esp], edx
mov ecx, dword [ebp - 0x468]
mov dword [ebp - 0x464], edx
call ecx
mov edx, dword [ebp - 0x464]
mov dword [esp + 4], str.DirectInputJoysticks
lea ecx, [eax + 2]
test eax, eax
cmovne edx, ecx
mov dword [esp], edx
mov dword [ebp - 0x464], edx
call dword [sym.imp.ucrtbase.dll_wcscat]
lea eax, [ebp - 0x458]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x464]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x454]
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
je 0x10001bd5
mov dword [ebp - 0x458], 0
mov eax, dword [ebp - 0x454]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x100019f4
mov eax, ebx
call fcn.10001340
mov dword [esp + 0xc], str.Disabling_gamepad__s_based_on_registry_key._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x10009ccc
mov dword [esp + 4], 0x100074c0
mov dword [esp], 3
call fcn.100015b0
jmp 0x10001b16