Function at 0x10002870
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 sym._HidD_GetProductString_12
sub esp, 0xc
test al, al
jne 0x100028b8
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x45c]
mov dword [esp + 4], str.SoftwareWineDirectInputJoysticks
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x458], 0
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call edi
sub esp, 0xc
test eax, eax
je 0x100028f4
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]
dec eax
sub esp, 0xc
cmp eax, 0x102
jbe 0x10002a80
mov eax, dword [ebp - 0x45c]
mov edx, dword [ebp - 0x458]
test eax, eax
je 0x10002980
test edx, edx
jne 0x10002988
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 0x10002a20
xor esi, esi
mov eax, dword [ebp - 0x458]
test eax, eax
jne 0x100029e6
jmp 0x100029f2
test edx, edx
je 0x100028a7
mov dword [esp], edx
mov edx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
lea edi, [ebp - 0x460]
mov dword [esp + 0x14], edi
mov dword [ebp - 0x464], 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 - 0x464]
sub esp, 0x18
test eax, eax
je 0x10002a20
mov eax, dword [ebp - 0x45c]
test eax, eax
jne 0x10002942
mov eax, dword [ebp - 0x458]
xor esi, esi
test eax, eax
je 0x100028a7
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0x45c]
test eax, eax
je 0x100028a9
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 0x1000296e
mov esi, 1
test byte [0x10006048], 8
je 0x10002970
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], 0x10006048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002970
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 0x10002922
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
mov ecx, dword [ebp - 0x468]
test eax, eax
lea edx, [eax + 2]
cmove edx, esi
mov dword [esp], edx
mov dword [ebp - 0x464], edx
call ecx
mov edx, dword [ebp - 0x464]
mov dword [esp + 4], str.DirectInputJoysticks
test eax, eax
lea ecx, [eax + 2]
cmovne edx, ecx
mov dword [esp], edx
mov dword [ebp - 0x464], edx
call dword [sym.imp.ucrtbase.dll_wcscat]
lea eax, [ebp - 0x458]
mov edx, dword [ebp - 0x464]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x454]
mov dword [esp + 4], edx
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
je 0x10002b35
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 0x10002922