Function at 0x140006460
Capabilities:
Check mutex on windows
Create pipe
Create process on windows
Create process suspended
Get common file path
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x3f8
lea rbp, [rsp + 0x80]
mov rax, qword [rcx + 0x10]
mov rbx, rcx
lea rcx, [rax + 0x30]
mov rax, qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov qword [rbp + 0x3c8], rdx
mov qword [rbp + 0x3d0], r8
mov qword [rbp - 0x20], rax
call rax
mov r12, qword [rbx + 0xb0]
test r12, r12
je 0x1400064dd
xor edx, edx
mov rcx, qword [r12 + 0x28]
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140006cb0
mov qword [rbx + 0xb0], 0
mov rcx, r12
dec dword [r12 + 0x1c]
call sym.release_process
mov rcx, qword [rbx + 0x60]
xor r8d, r8d
xor edx, edx
mov r12, qword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [rbx + 0xbc], 0
call r12
mov rsi, qword [sym.imp.ucrtbase.dll_malloc]
mov ecx, eax
mov rdi, rcx
add rcx, rcx
call rsi
mov r15, rax
test rax, rax
je 0x140006af9
mov rcx, qword [rbx + 0x60]
mov r8d, edi
mov rdx, rax
lea r13, [rbp + 0x160]
call r12
mov r9d, dword [rbx + 0xc4]
mov eax, dword [rbx + 0x50]
test r9d, r9d
jne 0x1400067f0
mov rdi, qword [sym.imp.ucrtbase.dll_free]
mov qword [rbp - 0x10], rdi
lea rdi, [rbp + 0x30]
mov qword [rbp - 8], rdi
dec eax
cmp eax, 1
jbe 0x140006910
mov rax, qword [rbp - 8]
lea rsi, [rbp + 0x20]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rsi
mov rcx, qword [0x14001a3d0]
mov r9, r13
mov dword [rbp + 0x30], 0xffffffff
mov dword [rbp + 0x20], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400065a2
cmp dword [rbp + 0x160], 4
je 0x140006b3c
lea rax, [0x14001a3c0]
mov rcx, qword [0x14001a3d0]
xor r8d, r8d
xor edx, edx
mov r9d, 4
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov r9d, dword [0x14001a3c0]
lea r8, str..pipe_netNtControlPipe_u
mov edx, 0x27
lea rcx, [0x14001a2a0]
call sym.swprintf
inc dword [0x14001a3c0]
mov edx, 0x48
mov ecx, 1
call qword [sym.imp.ucrtbase.dll_calloc]
mov r12, rax
test rax, rax
je 0x1400073fd
mov dword [rax + 0x18], 1
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.kernel32.dll_CreateMutexW]
mov qword [r12 + 0x30], rax
test rax, rax
je 0x140006c30
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.kernel32.dll_CreateEventW]
mov qword [r12 + 0x40], rax
test rax, rax
je 0x140006c90
mov dword [rsp + 0x30], 0x2710
xor r8d, r8d
mov r9d, 1
mov edx, 0x40000003
mov qword [rsp + 0x38], 0
lea rcx, [0x14001a2a0]
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov qword [r12 + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x140006e53
mov ecx, 0xd
xor eax, eax
mov rdi, r13
rep stosq qword [rdi], rax
mov dword [rbp + 0x160], 0x68
test byte [rbx + 0x51], 1
jne 0x1400066cb
lea rax, str.__wineservice_winstationDefault
mov qword [rbp + 0x170], rax
cmp qword [0x14001a140], 0
je 0x140006e78
mov qword [rbx + 0x2c], 2
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.kernel32.dll_ResetEvent]
mov rax, qword [rbx + 0x10]
lea rdx, [rax + 0x10]
mov qword [r12 + 0x10], rax
mov qword [r12], rdx
mov rdx, qword [rax + 0x18]
mov qword [r12 + 8], rdx
mov qword [rdx], r12
mov qword [rax + 0x18], r12
lock inc dword [r12 + 0x18]
mov rax, qword [rbp + 0x3d0]
inc dword [r12 + 0x1c]
mov qword [rbx + 0xb0], r12
mov dword [rax], 0
mov rcx, qword [rbx + 0x10]
mov dword [rbx + 0xb8], 0
add rcx, 0x30
call qword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov rax, qword [rbp - 8]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], r13
mov rdx, r15
mov qword [rsp + 0x48], rax
mov rax, qword [0x14001a140]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x408
mov dword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_CreateProcessW]
mov rcx, r15
mov ebx, eax
mov rax, qword [rbp - 0x10]
call rax
test ebx, ebx
je 0x140006b57
mov rdx, qword [rbp + 0x30]
mov rcx, qword [0x14001a180]
call qword [sym.imp.kernel32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x1400067bc
test byte [0x14001a030], 2
jne 0x140006fbe
mov eax, dword [rbp + 0x40]
mov rcx, qword [rbp + 0x38]
xor edi, edi
mov dword [r12 + 0x20], eax
mov rax, qword [rbp + 0x30]
mov qword [r12 + 0x28], rax
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rax, qword [rbp + 0x3c8]
mov qword [rax], r12
jmp 0x140006b0c
test al, 3
jne 0x14000653e
mov edx, 0x104
mov rcx, r13
call qword [sym.imp.kernel32.dll_GetSystemDirectoryW]
cmp word [rbp + 0x160], 0
je 0x140007290
mov rax, r13
nop word [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x140006820
sub rax, r13
sar rax, 1
mov r12d, eax
mov r8, r12
mov rdx, r15
mov rcx, r13
call qword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x140006cd0
mov edx, 0x104
mov rcx, r13
call qword [sym.imp.kernel32.dll_GetSystemWow64DirectoryW]
mov r14, qword [sym.imp.ucrtbase.dll_wcslen]
mov rcx, r15
call r14
mov rcx, r13
mov rdi, rax
call r14
lea rcx, [rdi + rax]
add rcx, rcx
call rsi
mov rdi, rax
test rax, rax
je 0x140006af0
mov rdx, rax
mov rax, r13
nop dword [rax]
movzx ecx, word [rax]
add rax, 2
add rdx, 2
mov word [rdx - 2], cx
test cx, cx
jne 0x140006890
cmp word [rdi], 0
lea r8, [r15 + r12*2]
mov rdx, rdi
je 0x1400068c2
nop dword [rax]
add rdx, 2
cmp word [rdx], 0
jne 0x1400068b8
xor eax, eax
nop dword [rax]
movzx ecx, word [r8 + rax]
mov word [rdx + rax], cx
add rax, 2
test cx, cx
jne 0x1400068c8
mov rax, qword [sym.imp.ucrtbase.dll_free]
mov rcx, r15
mov qword [rbp - 0x10], rax
call rax
lea rax, [rbp + 0x30]
mov qword [rbp - 8], rax
test byte [0x14001a030], 8
jne 0x140006ed8
mov eax, dword [rbx + 0x50]
mov r15, rdi
jmp 0x140006551
mov rdx, qword [rbp - 8]
mov rcx, r15
call qword [sym.imp.kernel32.dll_GetBinaryTypeW]
test eax, eax
jne 0x140006b28
mov eax, dword [rbx + 0xc4]
mov dword [rbp - 0x24], eax
mov edx, 0x104
mov rcx, r13
call qword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov rax, qword [rbp - 0x10]
mov rcx, r15
call rax
mov rcx, r13
call qword [sym.imp.ucrtbase.dll_wcslen]
lea rcx, [rax + rax + 0x20]
call rsi
mov qword [rbp - 0x18], rax
mov rdx, rax
test rax, rax
je 0x140006af9
mov rax, r13
nop dword [rax + rax]
movzx ecx, word [rax]
add rax, 2
add rdx, 2
mov word [rdx - 2], cx
test cx, cx
jne 0x140006970
mov rax, qword [rbp - 0x18]
cmp word [rax], 0
je 0x140007210
nop word [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x140006998
mov ecx, 0x5c
lea rdx, str.winedevice.exe
jmp 0x1400069b3
movzx ecx, word [rdx]
add rax, 2
add rdx, 2
mov word [rax - 2], cx
test cx, cx
jne 0x1400069b0
mov rdx, qword [rbx + 0x10]
cmp qword [rbx + 0x68], 0
mov r15, rdx
lea rsi, [rdx + 0x20]
je 0x140006b94
mov r12, qword [rdx + 0x20]
cmp r12, rsi
je 0x140006b94
mov rdi, qword [sym.imp.kernel32.dll_lstrcmpW]
mov r14d, dword [rbp - 0x24]
nop word [rax + rax]
mov eax, dword [r12 + 0x2c]
sub eax, 2
and eax, 0xfffffffd
jne 0x140006b80
cmp qword [r12 + 0xb0], 0
je 0x140006b80
cmp dword [r12 + 0xc4], r14d
jne 0x140006b80
mov rcx, qword [r12 + 0x60]
test rcx, rcx
je 0x140006b80
mov rdx, qword [rbp - 0x18]
call rdi
test eax, eax
jne 0x140006b78
mov rcx, qword [r12 + 0x68]
test rcx, rcx
je 0x140006b78
mov rdx, qword [rbx + 0x68]
call rdi
test eax, eax
jne 0x140006b78
mov r12, qword [r12 + 0xb0]
test r12, r12
je 0x140006e46
lea rdi, [r12 + 0x18]
lock inc dword [rdi]
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
call rax
mov rsi, qword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x48]
mov qword [rbx + 0x2c], 2
call qword [sym.imp.kernel32.dll_ResetEvent]
lock inc dword [rdi]
mov rax, qword [rbp + 0x3d0]
mov qword [rbx + 0xb0], r12
mov dword [rax], 1
mov dword [rbx + 0xb8], 1
inc dword [r12 + 0x1c]
mov rcx, qword [rbx + 0x10]
add rcx, 0x30
call rsi
mov rcx, qword [r12 + 0x30]
mov edx, 0x7530
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov edi, eax
test eax, eax
jne 0x140006ff9
mov rax, qword [rbp + 0x3c8]
mov qword [rax], r12
jmp 0x140006b0c
mov rcx, r15
call qword [sym.imp.ucrtbase.dll_free]
mov rcx, qword [rbx + 0x10]
mov edi, 0x46a
add rcx, 0x30
call qword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, edi
add rsp, 0x3f8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r8d, dword [rbp + 0x30]
xor eax, eax
test r8d, r8d
sete al
mov dword [rbp - 0x24], eax
jmp 0x14000692e
mov eax, dword [rbp + 0x30]
mov edx, dword [0x14001a3c0]
inc eax
cmp eax, edx
cmovb eax, edx
mov dword [0x14001a3c0], eax
jmp 0x1400065a2
mov rcx, r12
mov rax, qword gs:[0x30]
mov edi, dword [rax + 0x68]
call sym.process_terminate
mov rcx, r12
call sym.release_process
jmp 0x140006b0c
mov rdx, qword [rbx + 0x10]
nop dword [rax]
mov r12, qword [r12]
lea rsi, [rdx + 0x20]
mov r15, rdx
cmp r12, rsi
jne 0x1400069f8
mov r12, qword [sym.imp.ucrtbase.dll__wcsicmp]
lea rdi, [0x14001a300]
nop word [rax + rax]
mov eax, dword [0x14001a090]
lea r8, str.Winedevice_u
mov edx, 0x17
mov rcx, rdi
lea r9d, [rax + 1]
mov dword [0x14001a090], r9d
call sym.swprintf
mov r14, qword [r15 + 0x20]
cmp r14, rsi
je 0x140006bf6
nop word cs:[rax + rax]
mov rdx, qword [r14 + 0x20]
mov rcx, rdi
call r12
test eax, eax
je 0x140006ba8
mov r14, qword [r14]
cmp r14, rsi
jne 0x140006be0
mov rdx, qword [rbp - 8]
lea rcx, [0x14001a300]
call sym.service_create
mov edi, eax
test eax, eax
je 0x140007010
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
call rax
mov rcx, qword [rbx + 0x10]
add rcx, 0x30
call qword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x140006b0c
mov rax, qword gs:[0x30]
mov edi, dword [rax + 0x68]
mov rcx, qword [r12 + 0x40]
test rcx, rcx
je 0x140006c4c
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rax, qword [rbp - 0x10]
mov rcx, r12
call rax
test edi, edi
je 0x1400066a0
test byte [0x14001a030], 2
jne 0x140006ceb
mov rcx, qword [rbx + 0x10]
add rcx, 0x30
call qword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov rax, qword [rbp - 0x10]
mov rcx, r15
call rax
jmp 0x140006b0c
mov rcx, qword [r12 + 0x30]
mov rax, qword gs:[0x30]
mov edi, dword [rax + 0x68]
test rcx, rcx
je 0x140006c4c
call qword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x140006c3c
mov rcx, qword [rbx + 0x10]
mov edi, 0x420
add rcx, 0x30
call qword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x140006b0c
mov rdi, qword [sym.imp.ucrtbase.dll_free]
mov eax, dword [rbx + 0x50]
mov qword [rbp - 0x10], rdi
lea rdi, [rbp + 0x30]
mov qword [rbp - 8], rdi
jmp 0x140006551
mov rsi, qword [rbx + 0x20]
lea rdx, [0x14001b596]
test rsi, rsi
je 0x140006e19
mov rax, rsi
shr rax, 0x10
je 0x140006fe2
mov rdx, 0xffffffffffffffff
mov rcx, rsi
call qword [sym.imp.kernel32.dll_IsBadStringPtrW]
lea rdx, [0x14001b59d]
test eax, eax
jne 0x140006e19
cmp word [rsi], 0
je 0x140007337
nop dword [rax]
mov edx, eax
lea eax, [rax + 1]
movsxd rcx, eax
cmp word [rsi + rcx*2], 0
jne 0x140006d38
mov ecx, 0x224c
mov word [rbp + 0x160], cx
test eax, eax
jle 0x140006de6
lea rcx, [rbp + 0x162]
lea r9, [0x14001d630]
lea r8, [rbp + 0x282]
jmp 0x140006dae
cmp ax, 9
je 0x1400071e8
cmp ax, 0xa
jne 0x140007170
mov eax, 0x6e5c
add rcx, 2
mov word [rcx - 2], ax
nop dword [rax]
lea eax, [rdx - 1]
test edx, edx
jle 0x140006def
cmp rcx, r8
ja 0x140006def
mov edx, eax
movzx eax, word [rsi]
add rsi, 2
cmp ax, 0xd
je 0x1400071fc
jbe 0x140006d78
cmp ax, 0x22
je 0x1400071d0
cmp ax, 0x5c
jne 0x140007161
mov r10d, 0x5c5c
add rcx, 2
mov word [rcx - 2], r10w
jmp 0x140006da0
mov eax, edx
lea rcx, [rbp + 0x162]
mov byte [rcx], 0x22
test eax, eax
jle 0x140007351
mov edx, 0x2e2e
mov byte [rcx + 3], 0x2e
lea rax, [rcx + 4]
mov word [rcx + 1], dx
mov byte [rax], 0
mov rcx, r13
call sym.__wine_dbg_strdup
mov rdx, rax
mov dword [rsp + 0x28], edi
lea r9, str.failed_to_create_process_object_for__s__error___lu_n
lea r8, str.service_start_process
mov ecx, 1
mov qword [rsp + 0x20], rdx
lea rdx, [0x14001a030]
call sym.wine_dbg_log.constprop.0_1
jmp 0x140006c6a
mov r15, qword [rbx + 0x10]
lea rsi, [r15 + 0x20]
jmp 0x140006b94
mov rcx, qword [r12 + 0x30]
mov rax, qword gs:[0x30]
mov edi, dword [rax + 0x68]
test rcx, rcx
jne 0x140006ca6
jmp 0x140006c3c
lea r8, [rbp + 8]
mov edx, 0xa
mov rcx, 0xffffffffffffffff
call qword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x1400066d9
xor r8d, r8d
mov rdx, qword [rbp + 8]
lea rcx, [0x14001a140]
call qword [sym.imp.userenv.dll_CreateEnvironmentBlock]
mov rdx, qword [rbp - 8]
mov r8d, 0x10
lea rcx, str.WINEBOOTSTRAPMODE
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140007378
mov rcx, qword [rbp + 8]
call qword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x1400066d9
mov rax, rdi
shr rax, 0x10
je 0x14000735a
mov rcx, rdi
mov rdx, 0xffffffffffffffff
call qword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
lea rax, [0x14001b59d]
test ecx, ecx
jne 0x14000724f
movzx eax, word [rdi]
test ax, ax
je 0x1400073b0
mov edx, ecx
lea ecx, [rcx + 1]
movsxd r8, ecx
cmp word [rdi + r8*2], 0
jne 0x140006f12
mov r8d, 0x224c
mov word [rbp + 0x30], r8w
test ecx, ecx
jle 0x140007219
mov r8, rdi
lea rcx, [rbp + 0x32]
lea r11, [rbp + 0x152]
lea r10, [0x14001d630]
jmp 0x140006f89
cmp ax, 9
je 0x1400072aa
cmp ax, 0xa
jne 0x1400072cd
mov eax, 0x6e5c
add rcx, 2
mov word [rcx - 2], ax
lea r9d, [rdx - 1]
cmp rcx, r11
ja 0x140007220
test edx, edx
jle 0x140007220
movzx eax, word [r8]
mov edx, r9d
add r8, 2
cmp ax, 0xd
je 0x140007298
jbe 0x140006f4c
cmp ax, 0x22
je 0x140007323
cmp ax, 0x5c
jne 0x1400072be
mov r12d, 0x5c5c
add rcx, 2
mov word [rcx - 2], r12w
jmp 0x140006f6d
lea r9, str.Could_not_add_object_to_job._n
lea r8, str.service_start_process
mov ecx, 1
lea rdx, [0x14001a030]
call sym.wine_dbg_log.constprop.0_1
jmp 0x1400067bc
movzx edx, si
lea rcx, [0x14001b590]
call sym.wine_dbg_sprintf.constprop.0_1
mov rdx, rax
jmp 0x140006e19
mov rcx, r12
mov edi, 0x41d
call sym.release_process
jmp 0x140006b0c
mov r12, qword [rbp + 0x30]
mov eax, dword [rbp - 0x24]
mov rcx, qword [rbp - 0x18]
mov rdi, qword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [r12 + 0xc4], eax
movabs rax, 0x300000010
mov qword [r12 + 0x50], rax
mov dword [r12 + 0x28], 0x10
call rdi
mov qword [r12 + 0x60], rax
test rax, rax
je 0x1400073e0
mov r12, qword [rbp + 0x30]
lea rcx, str.LocalSystem
call rdi
mov qword [r12 + 0x80], rax
test rax, rax
je 0x1400073e0
mov r12, qword [rbp + 0x30]
lea rcx, [0x14001a300]
call rdi
mov qword [r12 + 0x88], rax
test rax, rax
je 0x1400073e0
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x1400070ab
mov r12, qword [rbp + 0x30]
call rdi
mov qword [r12 + 0x68], rax
test rax, rax
je 0x1400073e0
mov rax, qword [rbp + 0x30]
mov rcx, qword [rbp - 0x18]
mov qword [rax + 0x10], r15
mov qword [rax], rsi
mov rdx, qword [r15 + 0x28]
mov qword [rax + 8], rdx
mov qword [rdx], rax
mov qword [r15 + 0x28], rax
mov rsi, qword [rbp + 0x30]
mov r15, qword [rbp - 0x10]
mov dword [rsi + 0xc0], 1
call r15
mov rcx, qword [rsi + 0x68]
call rdi
mov rsi, qword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov qword [rbp + 0x160], rax
mov rax, qword [rbx + 0x10]
lea rcx, [rax + 0x30]
call rsi
mov rcx, qword [rbp + 0x30]
xor edx, edx
cmp qword [rbp + 0x160], 0
setne dl
mov r8, r13
call sym.service_start
mov rcx, qword [rbp + 0x160]
mov edi, eax
call r15
test edi, edi
jne 0x140007278
mov rax, qword [rbx + 0x10]
lea rcx, [rax + 0x30]
mov rax, qword [rbp - 0x20]
call rax
mov rcx, qword [rbp + 0x30]
mov r12, qword [rcx + 0xb0]
test r12, r12
je 0x1400073c7
lea rdi, [r12 + 0x18]
lock inc dword [rdi]
mov rcx, qword [rbp + 0x30]
call sym.release_service
jmp 0x140006a88
lea r10d, [rax - 0x20]
cmp r10w, 0x5e
jbe 0x140007286
mov r10d, eax
mov byte [rcx], 0x5c
add rcx, 5
shr r10w, 0xc
and r10d, 0xf
movzx r10d, byte [r9 + r10]
mov byte [rcx - 4], r10b
mov r10d, eax
shr r10w, 8
and r10d, 0xf
movzx r10d, byte [r9 + r10]
mov byte [rcx - 3], r10b
mov r10d, eax
and eax, 0xf
shr r10w, 4
movzx eax, byte [r9 + rax]
and r10d, 0xf
movzx r10d, byte [r9 + r10]
mov byte [rcx - 1], al
mov byte [rcx - 2], r10b
jmp 0x140006da0
mov r11d, 0x225c
add rcx, 2
mov word [rcx - 2], r11w
jmp 0x140006da0
mov r12d, 0x745c
add rcx, 2
mov word [rcx - 2], r12w
jmp 0x140006da0
mov r14d, 0x725c
add rcx, 2
mov word [rcx - 2], r14w
jmp 0x140006da0
mov rax, qword [rbp - 0x18]
jmp 0x1400069a2
mov r9d, edx
lea rcx, [rbp + 0x32]
mov byte [rcx], 0x22
test r9d, r9d
jle 0x1400073be
mov r9d, 0x2e2e
mov byte [rcx + 3], 0x2e
lea rax, [rcx + 4]
mov word [rcx + 1], r9w
mov byte [rax], 0
lea rcx, [rbp + 0x30]
mov qword [rbp - 8], rcx
call sym.__wine_dbg_strdup
mov qword [rsp + 0x20], rax
lea r9, str.redirected_to__s_n
lea r8, str.get_service_binary_path
mov ecx, 3
lea rdx, [0x14001a030]
call sym.wine_dbg_log.constprop.0_1
jmp 0x1400068ff
mov rcx, qword [rbp + 0x30]
call sym.release_service
jmp 0x140006b0c
mov byte [rcx], al
inc rcx
jmp 0x140006da0
xor r12d, r12d
jmp 0x140006833
mov eax, 0x725c
add rcx, 2
mov word [rcx - 2], ax
jmp 0x140006f6d
mov r15d, 0x745c
add rcx, 2
mov word [rcx - 2], r15w
jmp 0x140006f6d
lea r9d, [rax - 0x20]
cmp r9w, 0x5e
jbe 0x14000736e
mov r9d, eax
mov byte [rcx], 0x5c
add rcx, 5
shr r9w, 0xc
and r9d, 0xf
movzx r9d, byte [r10 + r9]
mov byte [rcx - 4], r9b
mov r9d, eax
shr r9w, 8
and r9d, 0xf
movzx r9d, byte [r10 + r9]
mov byte [rcx - 3], r9b
mov r9d, eax
and eax, 0xf
shr r9w, 4
movzx eax, byte [r10 + rax]
and r9d, 0xf
movzx r9d, byte [r10 + r9]
mov byte [rcx - 1], al
mov byte [rcx - 2], r9b
jmp 0x140006f6d
mov r14d, 0x225c
add rcx, 2
mov word [rcx - 2], r14w
jmp 0x140006f6d
mov eax, 0x224c
mov byte [rbp + 0x162], 0x22
lea rcx, [rbp + 0x162]
mov word [rbp + 0x160], ax
lea rax, [rcx + 1]
jmp 0x140006e0b
movzx edx, di
lea rcx, [0x14001b590]
call sym.wine_dbg_sprintf.constprop.0_1
jmp 0x14000724f
mov byte [rcx], al
inc rcx
jmp 0x140006f6d
lea rax, str.WINEBOOTSTRAPMODE
mov rdx, qword [rbp - 8]
mov rcx, rsi
mov dword [rbp + 0x10], 0x240022
mov qword [rbp + 0x18], rax
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rdx, [rbp + 0x10]
mov r8, rsi
lea rcx, [0x14001a140]
call qword [sym.imp.ntdll.dll_RtlSetEnvironmentVariable]
jmp 0x140006ec9
mov word [rbp + 0x30], 0x224c
lea rcx, [rbp + 0x32]
mov byte [rbp + 0x32], 0x22
lea rax, [rcx + 1]
jmp 0x14000723f
call sym.release_service
mov rcx, qword [rbx + 0x10]
mov edi, 0x41d
add rcx, 0x30
call rsi
jmp 0x140006b0c
mov rcx, qword [rbp + 0x30]
mov edi, 0x46a
call sym.free_service_entry
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
call rax
jmp 0x140006c1a
mov edi, 0x46a
jmp 0x140006c5d