Function at 0x68c01a40
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 sub.hid.dll_HidD_GetProductString
sub esp, 0xc
test al, al
jne 0x68c01a88
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 0x68c01ac4
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]
sub eax, 1
sub esp, 0xc
cmp eax, 0x102
jbe 0x68c01c50
mov eax, dword [ebp - 0x468]
mov edx, dword [ebp - 0x464]
test eax, eax
je 0x68c01b50
test edx, edx
jne 0x68c01b58
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 0x68c01bf0
xor esi, esi
mov eax, dword [ebp - 0x464]
test eax, eax
jne 0x68c01bb6
jmp 0x68c01bc2
test edx, edx
je 0x68c01a77
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 0x68c01bf0
mov eax, dword [ebp - 0x468]
test eax, eax
jne 0x68c01b14
mov eax, dword [ebp - 0x464]
xor esi, esi
test eax, eax
je 0x68c01a77
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0x468]
test eax, eax
je 0x68c01a79
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 0x68c01b40
mov esi, 1
test byte [0x68c084c0], 8
je 0x68c01b42
mov eax, ebx
call fcn.68c01310
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], 0x68c084c0
mov dword [esp], 3
call fcn.68c01580
jmp 0x68c01b42
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 0x68c01af4
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 0x68c01d05
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 0x68c01af4