Function at 0x401380
Capabilities:
Create service
Delete service
Get process heap flags
Modify service
Start service
Stop service
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xa8
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x5c], eax
cmp eax, 2
jle 0x4022d4
mov eax, dword [esi + 8]
cmp word [eax], 0x5c
jne 0x4013bc
cmp word [eax + 2], 0x5c
je 0x4017b0
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
mov dword [ebp - 0x64], eax
sub esp, 0xc
test eax, eax
je 0x401700
mov dword [esp + 4], str.create
mov eax, dword [esi + 4]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [ebp - 0x68], eax
call eax
mov dword [ebp - 0x60], eax
test eax, eax
jne 0x401610
cmp dword [ebp - 0x5c], 3
je 0x4022c7
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x40], 0
lea edi, [esi + 0xc]
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], 3
lea ebx, [eax - 3]
xor eax, eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x54], 0
lea esi, [esi]
mov dword [esp + 8], 0xc
mov dword [esp + 4], str.displayname
mov eax, dword [edi + eax*4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x4014b6
mov eax, dword [ebp - 0x54]
mov edx, dword [edi + eax*4]
lea ecx, [eax*4]
cmp word [edx + 0x18], 0
jne 0x4016e0
mov edx, dword [ebp - 0x5c]
sub edx, 4
cmp eax, edx
jb 0x4016f0
lea eax, [ebp - 0x3c]
mov dword [esp + 4], 8
lea ecx, [ebp - 0x54]
mov edx, edi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.binpath
call fcn.00401000
test eax, eax
jne 0x401558
lea eax, [ebp - 0x38]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x54]
mov edx, edi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.group
call fcn.00401000
test eax, eax
jne 0x401558
lea eax, [ebp - 0x34]
mov dword [esp + 4], 7
lea ecx, [ebp - 0x54]
mov edx, edi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.depend
call fcn.00401000
test eax, eax
jne 0x401558
lea eax, [ebp - 0x30]
mov dword [esp + 4], 4
lea ecx, [ebp - 0x54]
mov edx, edi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.obj
call fcn.00401000
test eax, eax
je 0x4017f0
lea esi, [esi]
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
cmp eax, ebx
jb 0x401470
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x401728
mov dword [esp + 0x1c], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp - 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x28], edx
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], 0xf01ff
mov dword [esp + 8], eax
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CreateServiceW]
sub esp, 0x34
test eax, eax
je 0x401760
mov dword [esp], eax
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call esi
sub esp, 4
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x60]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 4], str.description
mov eax, dword [esi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x4018f8
mov dword [esp + 8], 2
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401ac0
xor eax, eax
cmp dword [ebp - 0x5c], 3
je 0x40165e
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_ChangeServiceConfig2W]
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x4016c0
test byte [section..data], 2
je 0x4016c0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_set_service_description__lu_n
mov dword [esp + 8], str.wmain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call fcn.00401150
lea esi, [esi]
mov dword [esp], ebx
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call esi
xor eax, eax
sub esp, 4
test edi, edi
sete al
mov dword [ebp - 0x60], eax
jmp 0x4015ec
add edx, 0x18
mov dword [ebp - 0x40], edx
jmp 0x40155b
mov edx, dword [edi + ecx + 4]
add eax, 1
mov dword [ebp - 0x40], edx
jmp 0x40155b
test byte [section..data], 2
jne 0x401a60
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 0x60]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
test byte [section..data], 2
jne 0x401a90
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 0x60]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [ebp - 0x60], 1
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test byte [section..data], 2
je 0x4015ec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_create_service__lu_n
mov dword [esp + 8], str.wmain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call fcn.00401150
jmp 0x4015ec
test byte [section..data], 1
je 0x40170d
mov dword [esp + 0xc], str.server_argument_not_supported_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404000
mov dword [esp], 0
call fcn.00401150
mov dword [ebp - 0x60], 1
jmp 0x401714
lea eax, [ebp - 0x2c]
mov dword [esp + 4], 9
lea ecx, [ebp - 0x54]
mov edx, edi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.password
call fcn.00401000
test eax, eax
jne 0x401558
lea eax, [ebp - 0x50]
mov dword [esp + 4], 4
lea ecx, [ebp - 0x54]
mov edx, edi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.tag
call fcn.00401000
test eax, eax
jne 0x401c0c
lea eax, [ebp - 0x4c]
mov dword [esp + 4], 5
lea ecx, [ebp - 0x54]
mov edx, edi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.type
call fcn.00401000
test eax, eax
jne 0x401ff8
lea eax, [ebp - 0x48]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x54]
mov edx, edi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], 0x405308
call fcn.00401000
test eax, eax
jne 0x402022
lea eax, [ebp - 0x44]
mov dword [esp + 4], 6
mov edx, edi
lea ecx, [ebp - 0x54]
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.error
call fcn.00401000
mov edx, eax
mov eax, dword [ebp - 0x54]
test edx, edx
je 0x40155b
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], str.normal
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x402263
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov dword [esp + 4], str.failure
mov eax, dword [esi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x401ae0
mov dword [esp + 8], 2
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
mov dword [ebp - 0x6c], eax
sub esp, 0xc
test eax, eax
je 0x401ac0
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x40], 0
add esi, 0xc
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x4c], 0
sub edi, 3
jne 0x401a11
jmp 0x401c86
lea eax, [ebp - 0x3c]
mov dword [esp + 4], 7
lea ecx, [ebp - 0x4c]
mov edx, esi
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp], 0x405446
call fcn.00401000
test eax, eax
jne 0x401a00
lea eax, [ebp - 0x38]
mov dword [esp + 4], 8
lea ecx, [ebp - 0x4c]
mov edx, esi
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp], str.command
call fcn.00401000
test eax, eax
jne 0x401a00
lea eax, [ebp - 0x44]
mov dword [esp + 4], 8
lea ecx, [ebp - 0x4c]
mov edx, esi
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp], str.actions
call fcn.00401000
test eax, eax
jne 0x401cf0
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
cmp edi, eax
jbe 0x401c86
lea eax, [ebp - 0x48]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x4c]
mov edx, esi
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp], str.reset
call fcn.00401000
test eax, eax
je 0x401980
mov eax, dword [ebp - 0x48]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x40], eax
jmp 0x401a00
mov dword [esp + 0xc], str.failed_to_open_service_manager_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call fcn.00401150
jmp 0x40170d
mov dword [esp + 0xc], str.failed_to_parse_create_parameters_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call fcn.00401150
jmp 0x401735
test byte [section..data], 2
jne 0x401c43
mov dword [ebp - 0x60], 1
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x4015ec
mov dword [esp + 4], str.delete
mov eax, dword [esi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
je 0x401b8b
mov dword [esp + 4], str.start
mov eax, dword [esi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x401f48
mov dword [esp + 8], 0x10
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x401ac0
lea eax, [esi + 0xc]
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5c]
sub eax, 3
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_StartServiceW]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x402196
test byte [section..data], 2
jne 0x4021c1
mov dword [esp], edi
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call esi
xor eax, eax
sub esp, 4
test ebx, ebx
sete al
mov dword [ebp - 0x60], eax
jmp 0x4015ec
mov dword [esp + 8], 0x10000
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401ac0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_DeleteService]
sub esp, 4
mov edi, eax
test eax, eax
jne 0x4016c0
test byte [section..data], 2
je 0x4016c0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_delete_service__lu_n
mov dword [esp + 8], str.wmain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call fcn.00401150
jmp 0x4016c0
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], 0x40528c
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x401558
test byte [section..data], 1
jne 0x402143
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_open_service__lu_n
mov dword [esp + 8], str.wmain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call fcn.00401150
mov dword [ebp - 0x60], 1
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x4015ec
lea eax, [ebp - 0x40]
mov dword [esp + 4], 2
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_ChangeServiceConfig2W]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x401cb7
test byte [section..data], 2
jne 0x4021f7
mov edx, dword [ebp - 0x30]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
sub esp, 0xc
test ebx, ebx
sete al
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x6c]
jmp 0x4015de
mov ebx, dword [ebp - 0x44]
cmp word [ebx], 0
je 0x4021b7
mov eax, ebx
nop
add eax, 2
cmp word [eax], 0
jne 0x401d00
sub eax, ebx
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x70], eax
call eax
mov dword [ebp - 0x60], eax
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x401ef4
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x401d50
mov eax, dword [ebp - 0x60]
movzx edx, word [eax]
test dx, dx
je 0x4021a6
xor ecx, ecx
lea esi, [esi]
cmp dx, 0x2f
jne 0x401d86
xor edx, edx
add ecx, 1
mov word [eax], dx
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x401d78
shr ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x5c], eax
shl eax, 3
mov ebx, dword [ebp - 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [ebp - 0x34], ebx
mov ebx, dword fs:[0x18]
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x70]
call eax
mov dword [ebp - 0x30], eax
sub esp, 0xc
test eax, eax
je 0x401ed3
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x70], esi
xor ebx, ebx
mov dword [ebp - 0x74], edi
mov edi, edx
nop
mov dword [esp], edi
mov eax, dword [ebp - 0x68]
lea esi, [ebx*8]
mov dword [esp + 4], 0x40547a
call eax
test eax, eax
jne 0x401eb0
mov eax, dword [ebp - 0x30]
mov dword [eax + ebx*8], 3
cmp word [edi], 0
je 0x401f3e
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401e18
sub eax, edi
add eax, 2
add edi, eax
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcstol]
mov edx, dword [ebp - 0x30]
mov dword [edx + esi + 4], eax
cmp word [edi], 0
je 0x401f0d
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401e58
sub eax, edi
add eax, 2
add edi, eax
add ebx, 1
cmp ebx, dword [ebp - 0x5c]
jne 0x401de0
mov ebx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x70]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
mov edi, dword [ebp - 0x74]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x401a00
mov dword [esp + 4], str.restart
mov eax, dword [ebp - 0x68]
mov dword [esp], edi
call eax
test eax, eax
jne 0x401f17
mov eax, dword [ebp - 0x30]
mov dword [eax + esi], 1
jmp 0x401e09
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test byte [section..data], 2
jne 0x402090
mov dword [ebp - 0x60], 1
jmp 0x401ce8
mov eax, 2
jmp 0x401e66
mov dword [esp + 4], str.reboot
mov eax, dword [ebp - 0x68]
mov dword [esp], edi
call eax
test eax, eax
mov eax, dword [ebp - 0x30]
jne 0x40204c
mov dword [eax + esi], 2
jmp 0x401e09
mov eax, 2
jmp 0x401e26
mov dword [esp + 4], str.stop
mov eax, dword [esi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x402058
mov dword [esp + 8], 0x20
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401ac0
lea eax, [ebp - 0x40]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_ControlService]
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x40228d
test byte [section..data], 2
je 0x4016c0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_stop_service__lu_n
mov dword [esp + 8], str.wmain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call fcn.00401150
jmp 0x4016c0
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], 0x4052bc
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x4020b9
mov dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.boot
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x40216c
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov dword [eax + esi], 0
jmp 0x401e09
mov dword [esp + 4], str.query
mov eax, dword [esi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x4020e3
mov edx, dword [esi + 8]
mov eax, dword [ebp - 0x64]
call fcn.004011a0
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x60], eax
jmp 0x4015ec
mov dword [esp + 0xc], str.failed_to_parse_failure_parameters_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call fcn.00401150
jmp 0x401f01
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], str.share
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x40229d
mov dword [ebp - 0x28], 0x20
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov dword [esp + 4], str.sdset
mov eax, dword [esi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
mov dword [ebp - 0x60], eax
test eax, eax
jne 0x40222d
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test byte [section..data], 1
je 0x4015ec
mov dword [esp + 0xc], str.SdSet_command_not_supported__faking_success_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404000
mov dword [esp], 0
call fcn.00401150
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x4015ec
mov dword [esp + 0xc], str.tag_argument_not_supported_n
mov dword [esp + 8], str.parse_create_params
mov dword [esp + 4], 0x404000
mov dword [esp], 0
call fcn.00401150
jmp 0x401c34
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.system
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x4022ed
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov edx, dword [esi + 8]
mov eax, dword [ebp - 0x64]
call fcn.004011a0
jmp 0x401b6e
mov dword [ebp - 0x5c], 1
mov eax, 8
jmp 0x401d9d
mov eax, 2
jmp 0x401d0e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_start_service__lu_n
mov dword [esp + 8], str.wmain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call fcn.00401150
jmp 0x401b6e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_set_service_failure_actions__lu_n
mov dword [esp + 8], str.wmain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call fcn.00401150
jmp 0x401cb7
test byte [section..data], 1
je 0x401acd
mov dword [esp + 0xc], str.command_not_supported_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404000
mov dword [esp], 0
call fcn.00401150
jmp 0x401acd
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], str.severe
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x402313
mov dword [ebp - 0x20], 2
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov edx, dword [esi + 8]
mov eax, dword [ebp - 0x64]
call fcn.004011a0
jmp 0x4016c0
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], str.kernel
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x40233d
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
push ecx
mov dword [esp], str.Usage:_sc_command_servicename__parameter_value_...__n
call fcn.00401360
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.auto
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x402363
mov dword [ebp - 0x24], 2
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], str.critical
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x4023af
mov dword [ebp - 0x20], 3
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], str.filesys
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x402389
mov dword [ebp - 0x28], 2
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.demand
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x4023d9
mov dword [ebp - 0x24], 3
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], 0x4052ee
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x402403
mov dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], str.ignore
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x401558
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.disabled
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x401558
mov dword [ebp - 0x24], 4
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], str.interact
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x401558
or dword [ebp - 0x28], 0x100
mov eax, dword [ebp - 0x54]
jmp 0x40155b