Function at 0x406f80
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, 0x284
mov eax, dword [eax + 8]
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x258], ecx
add eax, 0x18
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x260], eax
call eax
mov ebx, dword [esi + 0x68]
sub esp, 4
test ebx, ebx
je 0x406fef
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 0x407b08
mov dword [esi + 0x68], 0
sub dword [ebx + 0x10], 1
mov dword [esp], ebx
call fcn.00406970
mov dword [esi + 0x70], 0
mov edx, 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
mov dword [ebp - 0x24c], edx
call edx
mov ebx, dword [sym.imp.ucrtbase.dll_malloc]
sub esp, 0xc
mov edi, eax
lea eax, [eax + eax]
mov dword [esp], eax
call ebx
mov dword [ebp - 0x254], eax
test eax, eax
je 0x407838
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [esi + 0x40]
mov dword [esp], eax
mov edx, dword [ebp - 0x24c]
call edx
mov eax, dword [esi + 0x78]
sub esp, 0xc
test eax, eax
mov eax, dword [esi + 0x34]
jne 0x4073a0
mov ecx, dword [sym.imp.ucrtbase.dll_free]
lea edi, [ebp - 0x214]
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x250], ecx
sub eax, 1
cmp eax, 1
jbe 0x407558
mov dword [ebp - 0x234], 0xffffffff
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 4
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x234]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x4110e0]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x4070ea
cmp dword [ebp - 0x214], 4
je 0x407859
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0x411090
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [0x4110e0]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [0x411090]
sub esp, 0x18
mov dword [esp + 8], str..pipe_netNtControlPipe_u
mov dword [esp + 4], 0x27
mov dword [esp + 0xc], eax
mov dword [esp], 0x411040
call fcn.00405ab0
add dword [0x411090], 1
mov dword [esp + 4], 0x28
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ebx, eax
test eax, eax
je 0x407dfe
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]
sub esp, 0xc
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x407a70
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]
sub esp, 0x10
mov dword [ebx + 0x24], eax
test eax, eax
je 0x407ae0
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], 0x411040
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
sub esp, 0x20
mov dword [ebx + 0x20], eax
cmp eax, 0xffffffff
je 0x407bb6
lea edx, [ebp - 0x210]
mov ecx, 0x10
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x214], 0x44
test byte [esi + 0x35], 1
jne 0x407252
mov dword [ebp - 0x20c], str.__wineservice_winstationDefault
mov eax, dword [0x4110e4]
test eax, eax
je 0x407bd0
mov eax, 2
xor edx, edx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x1c], edx
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 - 0x258]
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 - 0x234]
sub esp, 4
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x24c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov eax, dword [0x4110e4]
mov dword [esp + 0x14], 0x408
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], eax
mov dword [esp + 8], 0
mov edi, dword [ebp - 0x254]
mov dword [esp], 0
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
mov esi, eax
mov dword [esp], edi
mov eax, dword [ebp - 0x250]
call eax
test esi, esi
je 0x407877
mov eax, dword [ebp - 0x234]
mov dword [esp + 4], eax
mov eax, dword [0x4110dc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_AssignProcessToJobObject]
sub esp, 8
test eax, eax
jne 0x407362
test byte [0x40b070], 2
jne 0x407cdb
mov eax, dword [ebp - 0x22c]
xor edi, edi
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x234]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x230]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x25c]
sub esp, 4
mov dword [eax], ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x214]
mov edx, eax
mov dword [ebp - 0x24c], ecx
mov ecx, dword [sym.imp.ucrtbase.dll_free]
and edx, 3
mov dword [ebp - 0x250], ecx
jne 0x40707a
mov dword [ebp - 0x250], edx
mov dword [esp + 4], 0x104
mov edi, dword [ebp - 0x24c]
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov edx, dword [ebp - 0x250]
sub esp, 8
cmp word [ebp - 0x214], 0
je 0x407d71
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x407400
mov ecx, dword [ebp - 0x24c]
sub eax, ecx
mov edi, eax
sar eax, 1
mov dword [ebp - 0x250], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x254]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x407b28
mov dword [esp + 4], 0x104
mov eax, dword [ebp - 0x24c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemWow64DirectoryW]
mov edx, dword [ebp - 0x254]
mov ecx, dword [sym.imp.ucrtbase.dll_wcslen]
sub esp, 8
mov dword [esp], edx
mov dword [ebp - 0x268], ecx
call ecx
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x264], eax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x268]
call ecx
mov ecx, dword [ebp - 0x264]
add ecx, eax
mov eax, ecx
add eax, eax
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x250]
test eax, eax
mov ecx, eax
je 0x407829
mov dword [ebp - 0x250], edi
mov edi, dword [ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x264], edx
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x4074c0
mov eax, dword [ebp - 0x254]
mov edi, dword [ebp - 0x250]
mov edx, dword [ebp - 0x264]
add edi, eax
cmp word [ecx], 0
mov eax, ecx
je 0x4074f9
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4074f0
mov dword [ebp - 0x250], ecx
nop
movzx ecx, word [edi + edx]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x407500
mov ecx, dword [ebp - 0x250]
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x264], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x250], eax
call eax
test byte [0x40b070], 8
mov ecx, dword [ebp - 0x264]
jne 0x407c5d
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x254], ecx
jmp 0x40707a
mov dword [esp + 4], 0x104
mov edi, dword [ebp - 0x24c]
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov eax, dword [ebp - 0x254]
sub esp, 8
mov dword [esp], eax
mov eax, dword [ebp - 0x250]
call eax
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 0x20]
mov dword [esp], eax
call ebx
mov ebx, eax
test eax, eax
je 0x407838
xor eax, eax
mov ecx, edi
lea esi, [esi]
nop
movzx edx, word [ecx + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x4075a8
cmp word [ebx], 0
mov edx, ebx
je 0x4075c9
add edx, 2
cmp word [edx], 0
jne 0x4075c0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str.winedevice.exe]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4075d0
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x44]
mov ecx, eax
test edi, edi
je 0x407bae
mov edi, dword [eax + 0x10]
lea edx, [eax + 0x10]
cmp edi, edx
je 0x407747
lea esi, [esi]
mov ecx, dword [edi + 0x18]
lea edx, [ecx - 2]
and edx, 0xfffffffd
jne 0x407738
mov edx, dword [edi + 0x68]
test edx, edx
je 0x407738
mov ecx, dword [edi + 0x78]
test ecx, ecx
jne 0x407738
mov edx, dword [edi + 0x40]
test edx, edx
je 0x407738
mov dword [esp + 4], ebx
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x407730
mov eax, dword [edi + 0x44]
test eax, eax
je 0x407730
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 0x407730
mov edx, dword [edi + 0x68]
test edx, edx
je 0x407bab
lock add dword [edx + 0xc], 1
mov dword [ebp - 0x24c], edx
mov dword [esp], ebx
mov eax, dword [ebp - 0x250]
xor ebx, ebx
call eax
mov eax, dword [esi + 0x30]
mov ecx, 2
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ResetEvent]
mov ebx, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x24c]
sub esp, 4
lock add dword [edx + 0xc], 1
mov eax, dword [ebp - 0x258]
mov dword [esi + 0x68], edx
mov dword [eax], 1
mov dword [esi + 0x6c], 1
add dword [edx + 0x10], 1
mov dword [ebp - 0x24c], edx
mov eax, dword [esi + 8]
add eax, 0x18
mov dword [esp], eax
call ebx
sub esp, 4
mov dword [esp + 4], 0x7530
mov edx, dword [ebp - 0x24c]
mov eax, dword [edx + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x24c]
sub esp, 8
test eax, eax
mov edi, eax
jne 0x407d19
mov eax, dword [ebp - 0x25c]
mov dword [eax], edx
jmp 0x40784f
mov eax, dword [esi + 8]
lea esi, [esi]
nop
mov edi, dword [edi]
lea edx, [eax + 0x10]
mov ecx, eax
cmp edi, edx
jne 0x407608
mov edi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [ebp - 0x264], ebx
mov ebx, edx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x268], esi
lea esi, [esi]
mov eax, dword [0x4110d0]
add eax, 1
mov dword [0x4110d0], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Winedevice_u
mov dword [esp + 4], 0x17
mov dword [esp], 0x4110a0
call fcn.00405ab0
mov eax, dword [ebp - 0x254]
mov esi, dword [eax + 0x10]
cmp esi, ebx
je 0x407d2b
lea esi, [esi]
lea esi, [esi]
mov eax, dword [esi + 0x10]
mov dword [esp], 0x4110a0
mov dword [esp + 4], eax
call edi
test eax, eax
je 0x407768
mov esi, dword [esi]
cmp esi, ebx
jne 0x4077b0
mov edx, ebx
mov ecx, dword [ebp - 0x254]
mov esi, dword [ebp - 0x268]
mov ebx, dword [ebp - 0x264]
lea eax, [ebp - 0x234]
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x254], ecx
mov dword [esp + 4], eax
mov dword [esp], 0x4110a0
call fcn.00405f60
mov edi, eax
test eax, eax
je 0x407898
mov dword [esp], ebx
mov eax, dword [ebp - 0x250]
call eax
mov eax, dword [esi + 8]
add eax, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x40784f
mov eax, dword [ebp - 0x254]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [esi + 8]
mov edi, 0x46a
add eax, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x234]
mov edx, dword [0x411090]
add eax, 1
cmp eax, edx
cmovb eax, edx
mov dword [0x411090], eax
jmp 0x4070ea
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov dword [esp], ebx
call fcn.00406ef0
mov dword [esp], ebx
call fcn.00406970
jmp 0x40784f
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x254]
mov edx, dword [ebp - 0x264]
movq xmm0, qword [0x40e7d8]
mov dword [eax + 0x78], 0
mov edi, dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x268], edx
movq qword [eax + 0x34], xmm0
mov dword [ebp - 0x254], eax
mov dword [eax + 0x14], 0x10
mov dword [esp], ebx
call edi
mov ecx, dword [ebp - 0x254]
mov dword [ecx + 0x40], eax
test eax, eax
je 0x407e08
mov dword [esp], str.LocalSystem
call edi
mov ecx, dword [ebp - 0x254]
mov dword [ecx + 0x50], eax
test eax, eax
je 0x407e08
mov dword [esp], 0x4110a0
call edi
mov ecx, dword [ebp - 0x254]
mov dword [ecx + 0x54], eax
test eax, eax
je 0x407e08
mov eax, dword [esi + 0x44]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 0x268]
test eax, eax
je 0x407968
mov dword [ebp - 0x268], edx
mov dword [ebp - 0x264], ecx
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x254]
test eax, eax
mov edx, dword [ebp - 0x268]
mov dword [ecx + 0x44], eax
mov ecx, dword [ebp - 0x264]
je 0x407e08
mov eax, dword [ebp - 0x254]
mov dword [eax], edx
mov edx, dword [ebp - 0x254]
mov dword [eax + 8], ecx
mov eax, dword [ecx + 0x14]
mov dword [edx + 4], eax
mov dword [eax], edx
mov dword [ecx + 0x14], edx
mov dword [edx + 0x74], 1
mov dword [esp], ebx
mov ecx, dword [ebp - 0x250]
call ecx
mov eax, dword [ebp - 0x254]
mov eax, dword [eax + 0x44]
mov dword [esp], eax
call edi
mov edi, dword [esi + 8]
mov dword [ebp - 0x214], eax
mov ebx, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
lea eax, [edi + 0x18]
mov dword [esp], eax
call ebx
mov edi, dword [ebp - 0x24c]
xor eax, eax
sub esp, 4
mov dword [esp + 8], edi
mov edx, dword [ebp - 0x214]
test edx, edx
setne al
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x254]
mov dword [esp], eax
call fcn.00407e30
mov edi, eax
mov eax, dword [ebp - 0x214]
mov dword [esp], eax
mov ecx, dword [ebp - 0x250]
call ecx
test edi, edi
jne 0x407d40
mov eax, dword [esi + 8]
add eax, 0x18
mov dword [esp], eax
mov eax, dword [ebp - 0x260]
call eax
mov eax, dword [ebp - 0x254]
sub esp, 4
mov edx, dword [eax + 0x68]
test edx, edx
je 0x407d53
lock add dword [edx + 0xc], 1
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x24c], edx
mov dword [esp], eax
call fcn.00406d10
mov eax, dword [esi + 0x30]
movq xmm0, qword [0x40e7d0]
movq qword [esi + 0x18], xmm0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ResetEvent]
mov edx, dword [ebp - 0x24c]
sub esp, 4
jmp 0x4076bf
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x407a8c
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp], ebx
mov eax, dword [ebp - 0x250]
call eax
test edi, edi
je 0x407227
test byte [0x40b070], 2
jne 0x407b3c
mov eax, dword [esi + 8]
add eax, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x254]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x250]
call eax
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x407a8c
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x407a79
mov eax, dword [esi + 8]
mov edi, 0x420
add eax, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x40784f
mov ecx, dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x250], ecx
jmp 0x40707a
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x407d7a
mov eax, ebx
shr eax, 0x10
test eax, eax
je 0x407d04
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x40dc6d
test edx, edx
jne 0x407b7a
mov eax, ebx
call fcn.00405c20
mov dword [esp + 0x14], edi
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], 0x40b070
mov dword [esp], 1
call fcn.00405f10
jmp 0x407aac
mov ecx, dword [esi + 8]
lea edx, [ecx + 0x10]
jmp 0x407747
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x407af0
jmp 0x407a79
lea eax, [ebp - 0x248]
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 0x40725f
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x248]
mov dword [esp], 0x4110e4
mov dword [esp + 4], eax
call dword [sym.imp.userenv.dll_CreateEnvironmentBlock]
lea eax, [ebp - 0x234]
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 0x407da5
mov eax, dword [ebp - 0x248]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x40725f
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x407d84
mov dword [esp], ecx
mov dword [esp + 4], 0xffffffff
mov dword [ebp - 0x254], ecx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, dword [ebp - 0x254]
mov edx, eax
sub esp, 8
mov eax, 0x40dc6d
test edx, edx
jne 0x407ca2
mov eax, ecx
call fcn.00405c20
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x254], ecx
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], 0x40b070
mov dword [esp], 3
call fcn.00405f10
mov ecx, dword [ebp - 0x254]
jmp 0x407545
mov dword [esp + 0xc], str.Could_not_add_object_to_job._n
mov dword [esp + 8], str.service_start_process
mov dword [esp + 4], 0x40b070
mov dword [esp], 1
call fcn.00405f10
jmp 0x407362
mov dword [esp + 4], ebx
mov dword [esp], 0x40dc60
call fcn.00405de0
jmp 0x407b7a
mov dword [esp], edx
call fcn.00406970
mov edi, 0x41d
jmp 0x40784f
mov edx, ebx
mov esi, dword [ebp - 0x268]
mov ecx, eax
mov ebx, dword [ebp - 0x264]
jmp 0x4077de
mov eax, dword [ebp - 0x254]
mov dword [esp], eax
call fcn.00406d10
jmp 0x40784f
mov eax, dword [ebp - 0x254]
mov dword [esp], eax
call fcn.00406d10
mov eax, dword [esi + 8]
add eax, 0x18
mov dword [esp], eax
call ebx
sub esp, 4
jmp 0x407d21
xor eax, eax
xor edi, edi
jmp 0x407415
mov eax, 0x40dc66
jmp 0x407b7a
mov dword [esp + 4], ecx
mov dword [ebp - 0x254], ecx
mov dword [esp], 0x40dc60
call fcn.00405de0
mov ecx, dword [ebp - 0x254]
jmp 0x407ca2
mov dword [ebp - 0x244], 0x240022
lea eax, [ebp - 0x234]
mov dword [ebp - 0x240], str.WINEBOOTSTRAPMODE
mov dword [esp + 4], eax
lea eax, [ebp - 0x23c]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x23c]
sub esp, 8
mov dword [esp + 8], eax
lea eax, [ebp - 0x244]
mov dword [esp + 4], eax
mov dword [esp], 0x4110e4
call dword [sym.imp.ntdll.dll_RtlSetEnvironmentVariable]
sub esp, 0xc
jmp 0x407c46
mov edi, 0x46a
jmp 0x407a9f
mov eax, dword [ebp - 0x254]
mov edi, 0x46a
mov dword [esp], eax
call fcn.00406a10
mov dword [esp], ebx
mov eax, dword [ebp - 0x250]
call eax
jmp 0x407815