Function at 0x407680
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 ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3ac
mov eax, dword [eax + 8]
mov dword [ebp - 0x380], edx
mov dword [ebp - 0x378], ecx
add eax, 0x18
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x384], eax
call eax
mov ebx, dword [esi + 0x68]
sub esp, 4
test ebx, ebx
je 0x4076ef
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
cmp eax, 0x102
je 0x408000
mov dword [esi + 0x68], 0
sub dword [ebx + 0x10], 1
mov dword [esp], ebx
call dbg.release_process
mov dword [esi + 0x70], 0
mov edi, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [esi + 0x40]
mov dword [esp], eax
call edi
sub esp, 0xc
mov ebx, eax
lea eax, [eax + eax]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x37c], eax
call eax
mov dword [ebp - 0x374], eax
test eax, eax
je 0x407d82
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x40]
mov dword [esp], eax
call edi
lea ecx, [ebp - 0x220]
mov edx, dword [esi + 0x78]
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x36c], ecx
mov ecx, dword [sym.imp.ucrtbase.dll_free]
sub esp, 0xc
test edx, edx
mov dword [ebp - 0x370], ecx
je 0x40777a
mov edi, eax
and edi, 3
je 0x407da8
sub eax, 1
cmp eax, 1
jbe 0x407aa0
lea eax, [ebp - 0x354]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x34c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 0x34c], 0xffffffff
mov dword [esp + 0xc], eax
mov eax, dword [0x4210e0]
mov dword [ebp - 0x354], 4
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x4077ea
cmp dword [ebp - 0x220], 4
je 0x407ef1
mov eax, dword [0x4210e0]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0x421090
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [0x421090]
sub esp, 0x18
mov dword [esp + 0xc], eax
mov dword [esp + 8], str..pipe_netNtControlPipe_u
mov dword [esp + 4], 0x27
mov dword [esp], 0x421040
call dbg.swprintf
add dword [0x421090], 1
mov dword [esp + 4], 0x28
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ebx, eax
test eax, eax
je 0x408806
mov dword [eax + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [ebx + 0x1c], eax
sub esp, 0xc
test eax, eax
je 0x407f40
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [ebx + 0x24], eax
sub esp, 0x10
test eax, eax
je 0x407fd0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x2710
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x10], 0x100
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000003
mov dword [esp], 0x421040
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov dword [ebx + 0x20], eax
sub esp, 0x20
cmp eax, 0xffffffff
je 0x408130
lea edx, [ebp - 0x21c]
mov ecx, 0x10
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x220], 0x44
test byte [esi + 0x35], 1
jne 0x407952
mov dword [ebp - 0x218], str.__wineservice_winstationDefault
mov eax, dword [0x4210e4]
test eax, eax
je 0x408150
mov eax, dword [esi + 0x30]
mov dword [esi + 0x18], 2
mov dword [esi + 0x1c], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ResetEvent]
mov eax, dword [esi + 8]
sub esp, 4
lea edx, [eax + 8]
mov dword [ebx + 8], eax
mov dword [ebx], edx
mov edx, dword [eax + 0xc]
mov dword [ebx + 4], edx
mov dword [edx], ebx
mov dword [eax + 0xc], ebx
lock add dword [ebx + 0xc], 1
mov eax, dword [ebp - 0x378]
add dword [ebx + 0x10], 1
mov dword [esi + 0x68], ebx
mov dword [eax], 0
mov eax, dword [esi + 8]
mov dword [esi + 0x6c], 0
add eax, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x34c]
mov esi, dword [ebp - 0x374]
sub esp, 4
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x36c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov eax, dword [0x4210e4]
mov dword [esp + 0x14], 0x408
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
mov edi, eax
mov eax, dword [ebp - 0x370]
mov dword [esp], esi
call eax
test edi, edi
je 0x407f0f
mov eax, dword [ebp - 0x34c]
mov dword [esp + 4], eax
mov eax, dword [0x4210dc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_AssignProcessToJobObject]
sub esp, 8
test eax, eax
jne 0x407a63
test byte [global___dbch.0], 2
jne 0x4082b0
mov eax, dword [ebp - 0x344]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x34c]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x348]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x380]
xor edx, edx
sub esp, 4
mov dword [eax], ebx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp - 0x36c]
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov eax, dword [ebp - 0x374]
sub esp, 8
mov dword [esp], eax
mov eax, dword [ebp - 0x370]
call eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 0x20]
mov dword [esp], eax
mov eax, dword [ebp - 0x37c]
call eax
mov dword [ebp - 0x37c], eax
mov ecx, eax
test eax, eax
je 0x407d82
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x407af8
mov edx, dword [ebp - 0x37c]
cmp word [edx], 0
je 0x408589
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x407b20
xor eax, eax
mov ecx, 0x5c
jmp 0x407b3f
movzx ecx, word [eax + str.winedevice.exe]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407b38
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x374], ecx
lea ebx, [ecx + 0x10]
test eax, eax
je 0x407cb8
mov edi, dword [ecx + 0x10]
cmp ebx, edi
je 0x407cb8
lea esi, [esi]
mov eax, dword [edi + 0x18]
sub eax, 2
and eax, 0xfffffffd
jne 0x407ca0
mov eax, dword [edi + 0x68]
test eax, eax
je 0x407ca0
mov ebx, dword [edi + 0x78]
test ebx, ebx
jne 0x407ca0
mov eax, dword [edi + 0x40]
test eax, eax
je 0x407ca0
mov ecx, dword [ebp - 0x37c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x407c98
mov eax, dword [edi + 0x44]
test eax, eax
je 0x407c98
mov edx, dword [esi + 0x44]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x407c98
mov ebx, dword [edi + 0x68]
test ebx, ebx
je 0x40811f
lea eax, [ebx + 0xc]
mov dword [ebp - 0x36c], eax
lock add dword [ebx + 0xc], 1
mov eax, dword [ebp - 0x37c]
mov dword [esp], eax
mov eax, dword [ebp - 0x370]
call eax
mov edi, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x30]
mov dword [esi + 0x18], 2
mov dword [esi + 0x1c], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ResetEvent]
mov eax, dword [ebp - 0x36c]
sub esp, 4
lock add dword [eax], 1
mov eax, dword [ebp - 0x378]
mov dword [esi + 0x68], ebx
mov dword [eax], 1
mov dword [esi + 0x6c], 1
add dword [ebx + 0x10], 1
mov eax, dword [esi + 8]
add eax, 0x18
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp + 4], 0x7530
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov edx, eax
test eax, eax
jne 0x408335
mov eax, dword [ebp - 0x380]
mov dword [eax], ebx
jmp 0x407d99
mov ecx, dword [esi + 8]
lea esi, [esi]
nop
mov edi, dword [edi]
lea ebx, [ecx + 0x10]
cmp edi, ebx
jne 0x407b70
mov dword [ebp - 0x374], ecx
lea esi, [esi]
nop
mov eax, dword [0x4210d0]
mov dword [esp + 8], str.Winedevice_u
mov dword [esp + 4], 0x17
add eax, 1
mov dword [esp], 0x4210a0
mov dword [esp + 0xc], eax
mov dword [0x4210d0], eax
call dbg.swprintf
mov eax, dword [ebp - 0x374]
mov edi, dword [eax + 0x10]
cmp edi, ebx
je 0x407d16
lea esi, [esi]
mov eax, dword [edi + 0x10]
mov dword [esp], 0x4210a0
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x407cb8
mov edi, dword [edi]
cmp edi, ebx
jne 0x407cf8
lea eax, [ebp - 0x34c]
mov dword [esp], 0x4210a0
mov dword [esp + 4], eax
call dbg.service_create
mov edx, eax
test eax, eax
je 0x408350
mov eax, dword [ebp - 0x37c]
mov dword [ebp - 0x36c], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x370]
call eax
mov edx, dword [ebp - 0x36c]
mov eax, dword [esi + 8]
mov dword [ebp - 0x36c], edx
add eax, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x36c]
sub esp, 4
jmp 0x407d99
mov eax, dword [ebp - 0x374]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [esi + 8]
add eax, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, 0x46a
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp - 0x36c]
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
sub esp, 8
cmp word [ebp - 0x220], 0
je 0x408680
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x407dd8
sub eax, dword [ebp - 0x36c]
mov dword [ebp - 0x370], eax
sar eax, 1
mov dword [esp + 8], eax
mov ebx, dword [ebp - 0x36c]
mov eax, dword [ebp - 0x374]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x408020
mov dword [ebp - 0x36c], ebx
mov dword [esp], ebx
mov dword [esp + 4], 0x104
call dword [sym.imp.kernel32.dll_GetSystemWow64DirectoryW]
mov eax, dword [ebp - 0x374]
mov ebx, dword [sym.imp.ucrtbase.dll_wcslen]
sub esp, 8
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0x36c]
mov dword [ebp - 0x388], eax
mov dword [esp], ecx
call ebx
add eax, dword [ebp - 0x388]
add eax, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x37c]
call eax
mov ebx, eax
test eax, eax
je 0x407d73
mov ecx, dword [ebp - 0x36c]
xor eax, eax
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x407e78
mov ecx, dword [ebp - 0x370]
add ecx, dword [ebp - 0x374]
mov eax, ebx
cmp word [ebx], 0
je 0x407eb0
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x407ea0
lea esi, [esi]
movzx edx, word [ecx + edi]
mov word [eax + edi], dx
add edi, 2
test dx, dx
jne 0x407eb0
mov eax, dword [ebp - 0x374]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x370], eax
call eax
test byte [global___dbch.0], 8
jne 0x4081dc
mov dword [ebp - 0x374], ebx
mov eax, dword [esi + 0x34]
jmp 0x40777a
mov eax, dword [ebp - 0x34c]
mov edx, dword [0x421090]
add eax, 1
cmp eax, edx
cmovb eax, edx
mov dword [0x421090], eax
jmp 0x4077ea
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
mov dword [esp], ebx
mov dword [ebp - 0x36c], edx
call dbg.process_terminate
mov dword [esp], ebx
call dbg.release_process
mov edx, dword [ebp - 0x36c]
jmp 0x407d99
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x407f68
mov dword [ebp - 0x37c], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp - 0x37c]
sub esp, 4
mov dword [ebp - 0x37c], edx
mov eax, dword [ebp - 0x370]
mov dword [esp], ebx
call eax
mov edx, dword [ebp - 0x37c]
test edx, edx
je 0x407927
test byte [global___dbch.0], 2
jne 0x408034
mov eax, dword [esi + 8]
mov dword [ebp - 0x36c], edx
add eax, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x374]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x370]
call eax
mov edx, dword [ebp - 0x36c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x407f68
mov dword [ebp - 0x37c], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp - 0x37c]
sub esp, 4
jmp 0x407f49
mov eax, dword [esi + 8]
add eax, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, 0x420
sub esp, 4
jmp 0x407d99
mov ecx, dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x370], ecx
jmp 0x40777a
mov edi, dword [esi + 0x10]
test edi, edi
je 0x408691
mov eax, edi
shr eax, 0x10
je 0x4082d9
mov dword [ebp - 0x378], edx
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, dword [ebp - 0x378]
mov ebx, eax
sub esp, 8
mov eax, 0x41ac2d
test ebx, ebx
jne 0x4082f8
cmp word [edi], 0
je 0x40872c
lea esi, [esi]
nop
mov ecx, ebx
lea ebx, [ebx + 1]
cmp word [edi + ecx*2 + 2], 0
jne 0x408088
mov ebx, 0x224c
mov dword [ebp - 0x378], edx
mov word [ebp - 0x220], bx
lea ebx, [ebp - 0x21e]
jmp 0x4080eb
cmp ax, 9
je 0x408578
cmp ax, 0xa
jne 0x40850b
mov eax, 0x6e5c
add ebx, 2
mov word [ebx - 2], ax
lea eax, [ecx - 1]
test ecx, ecx
jle 0x4085f7
lea ecx, [ebp - 0xfe]
cmp ebx, ecx
ja 0x4085f7
mov ecx, eax
movzx eax, word [edi]
add edi, 2
cmp ax, 0xd
je 0x4084ed
jbe 0x4080b0
cmp ax, 0x22
je 0x408560
cmp ax, 0x5c
jne 0x4084fe
mov eax, 0x5c5c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x4080d0
mov eax, dword [esi + 8]
mov dword [ebp - 0x374], eax
lea ebx, [eax + 0x10]
jmp 0x407cb8
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x407fe0
jmp 0x407f49
lea eax, [ebp - 0x360]
mov dword [esp + 4], 0xa
mov dword [esp + 8], eax
mov dword [esp], 0xffffffff
call dword [sym.imp.advapi32.dll_OpenProcessToken]
sub esp, 0xc
test eax, eax
je 0x40795f
mov eax, dword [ebp - 0x360]
mov dword [esp + 8], 0
mov dword [esp], 0x4210e4
mov dword [esp + 4], eax
call sym._CreateEnvironmentBlock_12
lea eax, [ebp - 0x34c]
sub esp, 0xc
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
mov dword [esp], str.WINEBOOTSTRAPMODE
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
sub esp, 0xc
test eax, eax
jne 0x40878d
mov eax, dword [ebp - 0x360]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x40795f
mov eax, ebx
shr eax, 0x10
je 0x40874d
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x41ac2d
test edx, edx
jne 0x4085ca
movzx eax, word [ebx]
test ax, ax
je 0x40876f
mov ecx, edx
lea edx, [edx + 1]
cmp word [ebx + ecx*2 + 2], 0
jne 0x408216
mov edx, 0x224c
mov dword [ebp - 0x374], ebx
mov edi, ebx
mov word [ebp - 0x34c], dx
lea edx, [ebp - 0x34a]
mov ebx, edx
jmp 0x40827f
cmp ax, 9
je 0x40870a
cmp ax, 0xa
jne 0x4086a8
mov eax, 0x6e5c
add ebx, 2
mov word [ebx - 2], ax
lea edx, [ecx - 1]
test ecx, ecx
jle 0x408594
lea eax, [ebp - 0x22a]
cmp ebx, eax
ja 0x408594
movzx eax, word [edi]
mov ecx, edx
add edi, 2
cmp ax, 0xd
je 0x40871b
jbe 0x408241
cmp ax, 0x22
je 0x4086f9
cmp ax, 0x5c
jne 0x40869b
mov eax, 0x5c5c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x408261
mov dword [esp + 0xc], str.Could_not_add_object_to_job._n
mov dword [esp + 8], str.service_start_process
mov dword [esp + 4], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x407a63
movzx eax, di
mov dword [esp], 0x41ac20
mov dword [esp + 4], eax
mov dword [ebp - 0x36c], edx
call sym._wine_dbg_sprintf.constprop.0_1
mov edx, dword [ebp - 0x36c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_create_process_object_for__s__error___lu_n
mov dword [esp + 8], str.service_start_process
mov dword [esp + 4], global___dbch.0
mov dword [esp], 1
mov dword [ebp - 0x36c], edx
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x36c]
jmp 0x407f94
mov dword [esp], ebx
call dbg.release_process
mov edx, 0x41d
jmp 0x407d99
mov ecx, dword [ebp - 0x34c]
mov eax, dword [ebp - 0x37c]
mov edi, dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ecx + 0x78], 0
mov dword [ecx + 0x34], 0x10
mov dword [ecx + 0x38], 3
mov dword [ecx + 0x14], 0x10
mov dword [ebp - 0x388], ecx
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x388]
mov dword [ecx + 0x40], eax
test eax, eax
je 0x40863a
mov dword [esp], str.LocalSystem
call edi
mov ecx, dword [ebp - 0x388]
mov dword [ecx + 0x50], eax
test eax, eax
je 0x40863a
mov dword [esp], 0x4210a0
call edi
mov ecx, dword [ebp - 0x388]
mov dword [ecx + 0x54], eax
test eax, eax
je 0x40863a
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4083f1
mov dword [ebp - 0x388], ecx
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x388]
mov dword [ecx + 0x44], eax
test eax, eax
je 0x40863a
mov edx, dword [ebp - 0x374]
mov dword [ecx], ebx
mov dword [ebp - 0x374], ecx
mov ebx, dword [ebp - 0x370]
mov dword [ecx + 8], edx
mov eax, dword [edx + 0x14]
mov dword [ecx + 4], eax
mov dword [eax], ecx
mov eax, dword [ebp - 0x37c]
mov dword [edx + 0x14], ecx
mov dword [ecx + 0x74], 1
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0x374]
mov eax, dword [ecx + 0x44]
mov dword [ebp - 0x370], ecx
mov dword [esp], eax
call edi
mov edi, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x220], eax
mov eax, dword [esi + 8]
add eax, 0x18
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x36c]
sub esp, 4
mov ecx, dword [ebp - 0x370]
mov dword [esp + 8], eax
xor eax, eax
test edx, edx
setne al
mov dword [esp], ecx
mov dword [esp + 4], eax
call dbg.service_start
mov dword [ebp - 0x36c], eax
mov eax, dword [ebp - 0x220]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x36c]
mov ecx, dword [ebp - 0x370]
test edx, edx
jne 0x40865d
mov eax, dword [esi + 8]
mov dword [ebp - 0x36c], ecx
add eax, 0x18
mov dword [esp], eax
mov eax, dword [ebp - 0x384]
call eax
mov ecx, dword [ebp - 0x36c]
sub esp, 4
mov ebx, dword [ecx + 0x68]
test ebx, ebx
je 0x4087e6
lea eax, [ebx + 0xc]
mov dword [ebp - 0x36c], eax
lock add dword [ebx + 0xc], 1
mov eax, dword [ebp - 0x34c]
mov dword [esp], eax
call dbg.release_service
jmp 0x407c14
mov eax, 0x725c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x4080d0
lea edx, [eax - 0x20]
cmp dx, 0x5e
jbe 0x408676
mov edx, eax
mov byte [ebx], 0x5c
add ebx, 5
shr dx, 0xc
movzx edx, dx
movzx edx, byte [edx + str.0123456789abcdefvalidate_service_config]
mov byte [ebx - 4], dl
mov edx, eax
shr dx, 8
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdefvalidate_service_config]
mov byte [ebx - 3], dl
mov edx, eax
and eax, 0xf
shr dx, 4
movzx eax, byte [eax + str.0123456789abcdefvalidate_service_config]
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdefvalidate_service_config]
mov byte [ebx - 1], al
mov byte [ebx - 2], dl
jmp 0x4080d0
mov eax, 0x225c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x4080d0
mov eax, 0x745c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x4080d0
mov edx, dword [ebp - 0x37c]
jmp 0x407b29
mov eax, ebx
mov ebx, dword [ebp - 0x374]
mov byte [eax], 0x22
test edx, edx
jle 0x408785
mov ecx, eax
mov edx, 0x2e2e
lea eax, [eax + 4]
mov word [ecx + 1], dx
mov byte [ecx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x34c]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.redirected_to__s_n
mov dword [esp + 8], str.get_service_binary_path
mov dword [esp + 4], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x407ee3
mov byte [ebx], 0x22
mov edx, dword [ebp - 0x378]
test eax, eax
jle 0x408745
mov ecx, 0x2e2e
mov byte [ebx + 3], 0x2e
lea eax, [ebx + 4]
mov word [ebx + 1], cx
mov byte [eax], 0
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 0x378], edx
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov edx, dword [ebp - 0x378]
jmp 0x4082f8
mov dword [esp], ecx
call dbg.free_service_entry
mov eax, dword [ebp - 0x37c]
mov dword [esp], eax
mov eax, dword [ebp - 0x370]
call eax
mov edx, 0x46a
jmp 0x407d53
mov dword [esp], ecx
mov dword [ebp - 0x36c], edx
call dbg.release_service
mov edx, dword [ebp - 0x36c]
jmp 0x407d99
mov byte [ebx], al
add ebx, 1
jmp 0x4080d0
mov dword [ebp - 0x370], 0
xor eax, eax
jmp 0x407def
mov eax, 0x41ac26
jmp 0x4082f8
lea edx, [eax - 0x20]
cmp dx, 0x5e
jbe 0x408765
mov edx, eax
mov byte [ebx], 0x5c
add ebx, 5
shr dx, 0xc
movzx edx, dx
movzx edx, byte [edx + str.0123456789abcdefvalidate_service_config]
mov byte [ebx - 4], dl
mov edx, eax
shr dx, 8
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdefvalidate_service_config]
mov byte [ebx - 3], dl
mov edx, eax
and eax, 0xf
shr dx, 4
movzx eax, byte [eax + str.0123456789abcdefvalidate_service_config]
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdefvalidate_service_config]
mov byte [ebx - 1], al
mov byte [ebx - 2], dl
jmp 0x408261
mov eax, 0x225c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x408261
mov eax, 0x745c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x408261
mov eax, 0x725c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x408261
mov edi, 0x224c
mov byte [ebp - 0x21e], 0x22
lea ebx, [ebp - 0x21e]
mov word [ebp - 0x220], di
lea eax, [ebx + 1]
jmp 0x408618
movzx eax, bx
mov dword [esp], 0x41ac20
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x4085ca
mov byte [ebx], al
add ebx, 1
jmp 0x408261
mov word [ebp - 0x34c], 0x224c
lea eax, [ebp - 0x34a]
mov byte [ebp - 0x34a], 0x22
add eax, 1
jmp 0x4085b9
mov dword [ebp - 0x35c], 0x240022
lea eax, [ebp - 0x34c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x354]
mov dword [esp], eax
mov dword [ebp - 0x358], str.WINEBOOTSTRAPMODE
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x354]
sub esp, 8
mov dword [esp + 8], eax
lea eax, [ebp - 0x35c]
mov dword [esp + 4], eax
mov dword [esp], 0x4210e4
call dword [sym.imp.ntdll.dll_RtlSetEnvironmentVariable]
sub esp, 0xc
jmp 0x4081c5
mov dword [esp], ecx
call dbg.release_service
mov eax, dword [esi + 8]
add eax, 0x18
mov dword [esp], eax
call edi
mov edx, 0x41d
sub esp, 4
jmp 0x407d99
mov edx, 0x46a
jmp 0x407f87