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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x49c
lea ebx, [esp + 0x4c]
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 0x3c], 0x208
call sub.hid.dll_HidD_GetProductString
sub esp, 0xc
test al, al
jne 0x68c015b0
xor ebx, ebx
add esp, 0x49c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x40]
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp + 0x44], 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 0x68c015e6
mov dword [esp + 0x40], 0
lea esi, [esp + 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 0x68c01730
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
test eax, eax
je 0x68c01670
test edx, edx
jne 0x68c01678
mov edi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
lea ebp, [esp + 0x3c]
mov dword [esp + 0x14], ebp
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 edi
sub esp, 0x18
test eax, eax
je 0x68c016f8
xor ebx, ebx
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x68c016c4
jmp 0x68c016d0
test edx, edx
je 0x68c015a1
lea ebp, [esp + 0x3c]
mov edi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], edx
call edi
sub esp, 0x18
test eax, eax
je 0x68c016f8
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x68c01631
mov eax, dword [esp + 0x44]
xor ebx, ebx
test eax, eax
je 0x68c015a1
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x68c015a3
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
add esp, 0x49c
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 0x68c0165d
test byte [0x68c074c0], 8
jne 0x68c017e0
mov ebx, 1
jmp 0x68c0165f
lea eax, [esp + 0x48]
mov dword [esp + 4], str.SoftwareWineAppDefaults
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call edi
sub esp, 0xc
test eax, eax
jne 0x68c01617
mov edx, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp + 4], 0x2f
mov dword [esp], esi
mov dword [esp + 0x2c], edx
call edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], 0x5c
lea ebp, [eax + 2]
test eax, eax
cmove ebp, esi
mov dword [esp], ebp
call edx
mov dword [esp + 4], str.DirectInputJoysticks
lea edx, [eax + 2]
test eax, eax
cmovne ebp, edx
mov dword [esp], ebp
call dword [sym.imp.ucrtbase.dll_wcscat]
lea eax, [esp + 0x44]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
je 0x68c017c1
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x68c01617
mov eax, ebx
call fcn.68c012a0
mov dword [esp + 0xc], str.Disabling_gamepad__s_based_on_registry_key._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x68c09cbc
mov dword [esp + 4], 0x68c074c0
mov dword [esp], 3
call fcn.68c01520
jmp 0x68c0171e