Function at 0x6e9019a0
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 - 0x45c]
sub esp, 0x49c
mov dword [ebp - 0x46c], 0x208
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._HidD_GetProductString_12
sub esp, 0xc
test al, al
jne 0x6e9019e8
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x468]
mov dword [esp + 4], str.SoftwareWineDirectInputJoysticks
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x464], 0
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call edi
sub esp, 0xc
test eax, eax
je 0x6e901a24
mov dword [ebp - 0x468], 0
lea esi, [ebp - 0x254]
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
dec eax
sub esp, 0xc
cmp eax, 0x102
jbe 0x6e901bb0
mov eax, dword [ebp - 0x468]
mov edx, dword [ebp - 0x464]
test eax, eax
je 0x6e901ab0
test edx, edx
jne 0x6e901ab8
mov edx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
lea edi, [ebp - 0x46c]
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 0x6e901b50
xor esi, esi
mov eax, dword [ebp - 0x464]
test eax, eax
jne 0x6e901b16
jmp 0x6e901b22
test edx, edx
je 0x6e9019d7
mov dword [esp], edx
mov edx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
lea edi, [ebp - 0x46c]
mov dword [esp + 0x14], edi
mov dword [ebp - 0x47c], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
call edx
mov edx, dword [ebp - 0x47c]
sub esp, 0x18
test eax, eax
je 0x6e901b50
mov eax, dword [ebp - 0x468]
test eax, eax
jne 0x6e901a72
mov eax, dword [ebp - 0x464]
xor esi, esi
test eax, eax
je 0x6e9019d7
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0x468]
test eax, eax
je 0x6e9019d9
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
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 0x6e901a9e
mov esi, 1
test byte [0x6e9074c0], 8
je 0x6e901aa0
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Disabling_gamepad__s_based_on_registry_key._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.device_is_overridden
mov dword [esp + 4], 0x6e9074c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6e901aa0
lea eax, [ebp - 0x460]
mov dword [esp + 4], str.SoftwareWineAppDefaults
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call edi
sub esp, 0xc
test eax, eax
jne 0x6e901a52
mov ecx, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp + 4], 0x2f
mov dword [esp], esi
mov dword [ebp - 0x480], ecx
call ecx
mov dword [esp + 4], 0x5c
mov ecx, dword [ebp - 0x480]
test eax, eax
lea edx, [eax + 2]
cmove edx, esi
mov dword [esp], edx
mov dword [ebp - 0x47c], edx
call ecx
mov edx, dword [ebp - 0x47c]
mov dword [esp + 4], str.DirectInputJoysticks
test eax, eax
lea ecx, [eax + 2]
cmovne edx, ecx
mov dword [esp], edx
mov dword [ebp - 0x47c], edx
call dword [sym.imp.ucrtbase.dll_wcscat]
lea eax, [ebp - 0x464]
mov edx, dword [ebp - 0x47c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x460]
mov dword [esp + 4], edx
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
je 0x6e901c65
mov dword [ebp - 0x464], 0
mov eax, dword [ebp - 0x460]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x6e901a52