Function at 0x100018f0
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 0x10001938
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 0x10001974
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 0x10001ad0
mov eax, dword [ebp - 0x45c]
mov edx, dword [ebp - 0x458]
test eax, eax
je 0x10001a00
test edx, edx
jne 0x10001a08
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 0x10001aa0
xor ebx, ebx
mov eax, dword [ebp - 0x458]
test eax, eax
jne 0x10001a66
jmp 0x10001a72
test edx, edx
je 0x10001927
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 0x10001aa0
mov eax, dword [ebp - 0x45c]
test eax, eax
jne 0x100019c4
mov eax, dword [ebp - 0x458]
xor ebx, ebx
test eax, eax
je 0x10001927
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0x45c]
test eax, eax
je 0x10001929
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 0x100019f0
test byte [0x100074c0], 8
jne 0x10001ba0
mov ebx, 1
jmp 0x100019f2
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 0x100019a4
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
test eax, eax
lea edx, [eax + 2]
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
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 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 0x10001b85
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 0x100019a4
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], 0x10009ccc
mov dword [esp + 4], 0x100074c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001ac6