Function at 0x170067f10
Capabilities:
Check if process is running under wine

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3a8
mov r14, qword gs:[0x30]
mov rax, qword [r14 + 0x60]
mov rax, qword [rax + 0x20]
mov rsi, qword [rax + 0x68]
lea rdx, [0x170090ef0]
mov ecx, 0x3e8
mov r8d, 0x100
xor r9d, r9d
call sym.ntdll.dll_NtQuerySystemInformation
lea rax, [0x17007c404]
mov qword [0x170090ff0], rax
lea rdx, [rsp + 0xe0]
mov ecx, 0xf003f
call sym.ntdll.dll_RtlOpenCurrentUser
mov dword [rsp + 0x130], 0x30
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x138], rax
lea rcx, [rsp + 0x160]
mov qword [rsp + 0x140], rcx
mov dword [rsp + 0x148], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x150], xmm0
lea rdx, str.SoftwareWine
call sym.ntdll.dll_RtlInitUnicodeString
lea rcx, [rsp + 0x70]
lea r8, [rsp + 0x130]
mov edx, 0xf003f
call sym.ntdll.dll_NtOpenKey
test eax, eax
je 0x170067fdf
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0xe0]
call sym.ntdll.dll_NtClose
cmp qword [rsp + 0x70], 0
je 0x1700680c6
mov rcx, rsi
mov dx, 0x2f
call sym.ntdll.dll_wcsrchr
lea rdi, [rax + 2]
test rax, rax
cmove rdi, rsi
mov rcx, rdi
mov dx, 0x5c
call sym.ntdll.dll_wcsrchr
lea rsi, [rax + 2]
test rax, rax
cmove rsi, rdi
lea rdx, str.AppDefaults_
lea rdi, [rsp + 0x170]
mov rcx, rdi
call sym.ntdll.dll_wcscpy
mov rcx, rdi
mov rdx, rsi
call sym.ntdll.dll_wcscat
lea rcx, [rsp + 0x160]
mov rdx, rdi
call sym.ntdll.dll_RtlInitUnicodeString
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x138], rax
lea rcx, [rsp + 0xd8]
lea r8, [rsp + 0x130]
mov edx, 0xf003f
call sym.ntdll.dll_NtOpenKey
test eax, eax
je 0x17006815d
test byte [0x17008dc90], 8
je 0x1700680a8
lea r8, str.version_init
lea r9, str.getting_default_version_n
mov ecx, 3
call fcn.170068860
mov rcx, qword [rsp + 0x70]
call fcn.170068b00
mov esi, eax
mov rcx, qword [rsp + 0x70]
call sym.ntdll.dll_NtClose
test esi, esi
jne 0x17006879d
test byte [0x17008dc90], 8
je 0x1700680e7
lea r8, str.version_init
lea r9, str.getting_registry_version_n
mov ecx, 3
call fcn.170068860
mov dword [rsp + 0xe8], 0x30
mov qword [rsp + 0xf0], 0
lea rsi, [rsp + 0x120]
mov qword [rsp + 0xf8], rsi
mov dword [rsp + 0x100], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x108], xmm0
lea rdx, str.RegistryMachineSoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, rsi
call sym.ntdll.dll_RtlInitUnicodeString
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0xe8]
mov edx, 0xf003f
call sym.ntdll.dll_NtOpenKey
xor ebx, ebx
test eax, eax
je 0x1700681c3
test ebx, ebx
jne 0x17006878f
jmp 0x170068542
test byte [0x17008dc90], 8
je 0x170068190
lea rcx, [rsp + 0x170]
call fcn.1700688e0
mov qword [rsp + 0x20], rax
lea r8, str.version_init
lea r9, str.getting_version_from__s_n
mov ecx, 3
call fcn.170068860
mov rcx, qword [rsp + 0xd8]
call fcn.170068b00
mov esi, eax
mov rcx, qword [rsp + 0xd8]
call sym.ntdll.dll_NtClose
test esi, esi
je 0x170068087
mov rcx, qword [rsp + 0x70]
call sym.ntdll.dll_NtClose
jmp 0x17006879d
lea rdi, [0x170090ff8]
mov r8d, 0x11c
mov rcx, rdi
xor edx, edx
call sym.ntdll.dll_memset
lea rdx, str.CurrentVersion
lea rbx, [rsp + 0x80]
mov rcx, rbx
call sym.ntdll.dll_RtlInitUnicodeString
mov rcx, qword [rsp + 0x68]
lea r15, [rsp + 0x11c]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x3f
lea r9, [rsp + 0x90]
mov rdx, rbx
mov r8d, 2
call sym.ntdll.dll_NtQueryValueKey
test eax, eax
je 0x1700684ac
mov eax, dword [0x170090ffc]
test eax, eax
je 0x170068516
mov dword [0x170091008], 2
lea rdx, str.CurrentBuildNumber
lea rbx, [rsp + 0x80]
mov rcx, rbx
call sym.ntdll.dll_RtlInitUnicodeString
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x3f
lea r9, [rsp + 0x90]
mov rdx, rbx
mov r8d, 2
call sym.ntdll.dll_NtQueryValueKey
test eax, eax
jne 0x1700682b3
lea rcx, [rsp + 0x9c]
mov eax, dword [rsp + 0x98]
and eax, 0xfffffffe
mov word [rsp + rax + 0x9c], 0
xor edx, edx
mov r8d, 0xa
call sym.ntdll.dll_wcstoul
mov dword [0x170091004], eax
lea rdx, str.CSDVersion
lea rbx, [rsp + 0x80]
mov rcx, rbx
call sym.ntdll.dll_RtlInitUnicodeString
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x3f
lea r9, [rsp + 0x90]
mov rdx, rbx
mov r8d, 2
call sym.ntdll.dll_NtQueryValueKey
test eax, eax
jne 0x17006832b
mov eax, dword [rsp + 0x98]
cmp eax, 0xfe
mov ebx, 0xfe
cmovb ebx, eax
lea rdx, [rsp + 0x9c]
lea rcx, [0x17009100c]
mov r8, rbx
call sym.ntdll.dll_memcpy
and ebx, 0xfffffffe
mov word [rbx + rdi + 0x14], 0
lea rdx, str.RegistryMachineSystemCurrentControlSetControlWindows
lea rcx, [rsp + 0x120]
call sym.ntdll.dll_RtlInitUnicodeString
lea rcx, [rsp + 0x78]
lea r8, [rsp + 0xe8]
mov edx, 0xf003f
call sym.ntdll.dll_NtOpenKey
test eax, eax
jne 0x1700683cc
lea rdx, str.CSDVersion
lea rdi, [rsp + 0x80]
mov rcx, rdi
call sym.ntdll.dll_RtlInitUnicodeString
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x40
lea r9, [rsp + 0x90]
mov rdx, rdi
mov r8d, 2
call sym.ntdll.dll_NtQueryValueKey
test eax, eax
jne 0x1700683c2
cmp dword [rsp + 0x98], 4
jb 0x1700683c2
mov eax, dword [rsp + 0x9c]
movzx ecx, ah
mov word [0x17009110c], cx
movzx eax, al
mov word [0x17009110e], ax
mov rcx, qword [rsp + 0x78]
call sym.ntdll.dll_NtClose
lea rdx, str.RegistryMachineSystemCurrentControlSetControlProductOptions
lea rcx, [rsp + 0x120]
call sym.ntdll.dll_RtlInitUnicodeString
lea rcx, [rsp + 0x78]
lea r8, [rsp + 0xe8]
mov edx, 0xf003f
call sym.ntdll.dll_NtOpenKey
mov ebx, 1
test eax, eax
jne 0x170068530
lea rdx, str.ProductType
lea rdi, [rsp + 0x80]
mov rcx, rdi
call sym.ntdll.dll_RtlInitUnicodeString
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x3f
lea r9, [rsp + 0x90]
mov rdx, rdi
mov r8d, 2
call sym.ntdll.dll_NtQueryValueKey
test eax, eax
jne 0x170068526
lea rdi, [rsp + 0x9c]
mov eax, dword [rsp + 0x98]
and eax, 0xfffffffe
mov word [rsp + rax + 0x9c], 0
lea rdx, str.WinNT
mov rcx, rdi
call sym.ntdll.dll__wcsicmp
test eax, eax
je 0x17006851a
lea rdx, str.LanmanNT
mov rcx, rdi
call sym.ntdll.dll__wcsicmp
test eax, eax
je 0x17006851e
lea rdx, str.ServerNT
mov rcx, rdi
call sym.ntdll.dll__wcsicmp
test eax, eax
jne 0x170068526
mov al, 3
jmp 0x170068520
lea rbx, [rsp + 0x9c]
mov eax, dword [rsp + 0x98]
and eax, 0xfffffffe
mov word [rsp + rax + 0x9c], 0
mov rcx, rbx
mov dx, 0x2e
call sym.ntdll.dll_wcschr
test rax, rax
je 0x1700684f8
mov rcx, rax
add rcx, 2
mov word [rax], 0
xor edx, edx
mov r8d, 0xa
call sym.ntdll.dll_wcstoul
mov dword [0x170091000], eax
mov rcx, rbx
xor edx, edx
mov r8d, 0xa
call sym.ntdll.dll_wcstoul
mov dword [0x170090ffc], eax
test eax, eax
jne 0x170068237
xor ebx, ebx
jmp 0x170068530
mov al, 1
jmp 0x170068520
mov al, 2
mov byte [0x170091112], al
mov rcx, qword [rsp + 0x78]
call sym.ntdll.dll_NtClose
mov rcx, qword [rsp + 0x68]
call sym.ntdll.dll_NtClose
test ebx, ebx
jne 0x17006878f
mov dword [rsp + 0xe8], 0x30
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], rsi
mov dword [rsp + 0x100], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x108], xmm0
lea rdx, str.RegistryMachineSoftwareMicrosoftWindowsCurrentVersion
mov rcx, rsi
call sym.ntdll.dll_RtlInitUnicodeString
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0xe8]
mov edx, 0xf003f
call sym.ntdll.dll_NtOpenKey
xor esi, esi
test eax, eax
jne 0x17006878b
lea r15, [0x170090ff8]
mov r8d, 0x11c
mov rcx, r15
xor edx, edx
call sym.ntdll.dll_memset
lea rdx, str.VersionNumber
lea rdi, [rsp + 0x80]
mov rcx, rdi
call sym.ntdll.dll_RtlInitUnicodeString
mov rcx, qword [rsp + 0x68]
lea rsi, [rsp + 0x78]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x3f
lea r9, [rsp + 0x90]
mov rdx, rdi
mov r8d, 2
call sym.ntdll.dll_NtQueryValueKey
test eax, eax
je 0x1700686a9
mov eax, dword [0x170090ffc]
test eax, eax
je 0x17006877f
mov dword [0x170091008], 1
lea rdx, str.SubVersionNumber
lea rdi, [rsp + 0x80]
mov rcx, rdi
call sym.ntdll.dll_RtlInitUnicodeString
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x3f
lea r9, [rsp + 0x90]
mov rdx, rdi
mov r8d, 2
call sym.ntdll.dll_NtQueryValueKey
mov esi, 1
test eax, eax
jne 0x170068781
mov eax, dword [rsp + 0x98]
cmp eax, 0xfe
mov edi, 0xfe
cmovb edi, eax
lea rdx, [rsp + 0x9c]
lea rcx, [0x17009100c]
mov r8, rdi
call sym.ntdll.dll_memcpy
and edi, 0xfffffffe
mov word [rdi + r15 + 0x14], 0
jmp 0x170068781
lea rbx, [rsp + 0x9c]
mov eax, dword [rsp + 0x98]
and eax, 0xfffffffe
mov word [rsp + rax + 0x9c], 0
mov rcx, rbx
mov dx, 0x2e
call sym.ntdll.dll_wcschr
test rax, rax
je 0x170068748
mov rdi, rax
add rdi, 2
mov word [rax], 0
mov rcx, rbx
xor edx, edx
mov r8d, 0xa
call sym.ntdll.dll_wcstoul
mov dword [0x170090ffc], eax
mov rcx, rdi
mov dx, 0x2e
call sym.ntdll.dll_wcschr
test rax, rax
je 0x170068728
mov rcx, rax
add rcx, 2
mov word [rax], 0
xor edx, edx
mov r8d, 0xa
call sym.ntdll.dll_wcstoul
mov dword [0x170091004], eax
mov rcx, rdi
xor edx, edx
mov r8d, 0xa
call sym.ntdll.dll_wcstoul
mov ecx, eax
mov dword [0x170091000], eax
mov eax, dword [0x170090ffc]
jmp 0x170068764
mov rcx, rbx
xor edx, edx
mov r8d, 0xa
call sym.ntdll.dll_wcstoul
mov dword [0x170090ffc], eax
mov ecx, dword [0x170091000]
mov edx, eax
shl edx, 0x18
movzx ecx, cl
shl ecx, 0x10
or ecx, edx
or dword [0x170091004], ecx
test eax, eax
jne 0x170068618
xor esi, esi
mov rcx, qword [rsp + 0x68]
call sym.ntdll.dll_NtClose
test esi, esi
je 0x17006879d
lea rax, [0x170090ff8]
mov qword [0x170090ff0], rax
mov rcx, qword [0x170090ff0]
mov eax, dword [rcx + 4]
mov rdx, qword [r14 + 0x60]
mov dword [rdx + 0x118], eax
mov eax, dword [rcx + 8]
mov rdx, qword [r14 + 0x60]
mov dword [rdx + 0x11c], eax
mov eax, dword [rcx + 0xc]
mov rdx, qword [r14 + 0x60]
mov dword [rdx + 0x120], eax
mov eax, dword [rcx + 0x10]
mov rdx, qword [r14 + 0x60]
mov dword [rdx + 0x124], eax
test byte [0x17008dc90], 8
je 0x17006884d
mov r14d, dword [rcx + 4]
mov edi, dword [rcx + 8]
mov ebx, dword [rcx + 0x10]
mov ebp, dword [rcx + 0xc]
add rcx, 0x14
call fcn.1700688e0
mov rcx, qword [0x170090ff0]
movzx edx, word [rcx + 0x114]
movzx esi, word [rcx + 0x116]
movzx ecx, byte [rcx + 0x11a]
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x48], edx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r14d
lea r8, str.version_init
lea r9, str.got__d._d_platform__d_build__x_name__s_service_pack__d._d_product__d_n
mov ecx, 3
call fcn.170068860
nop
add rsp, 0x3a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret