Function at 0x140062410
Capabilities:
Create service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xa90
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rsp + 0xa80], rax
call fcn.14006273c
xor r14d, r14d
test eax, eax
je 0x140062454
mov eax, 1
jmp 0x140062586
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x140062584
cmp eax, 0x104
je 0x140062584
lea ecx, [rax + 1]
mov r15d, 0x22
mov word [rsp + 0x70], r15w
mov word [rsp + rcx*2 + 0x70], r15w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x1400626ec
mov word [rsp + rcx + 0x70], r14w
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400625b5
xor edx, edx
call fcn.1400876d4
lea ebp, [rdi + 1]
mov esi, r14d
mov edi, 0x400
test rax, rax
je 0x14006251e
test esi, esi
jne 0x140062564
mov r9d, edi
lea r8, [rsp + 0x280]
mov edx, 0xd80a
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
mov edx, ebp
mov esi, eax
call fcn.1400876d4
inc ebp
test rax, rax
jne 0x1400624e7
test esi, esi
jne 0x140062564
lea r8, str.Could_not_open_Service_Manager
mov rdx, rdi
lea rcx, [rsp + 0x280]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
test eax, eax
je 0x140062564
cmp eax, 0xc
je 0x140062708
cmp eax, 0x16
je 0x1400626fd
cmp eax, r15d
je 0x1400626fd
cmp eax, 0x50
jne 0x1400626f2
xor r9d, r9d
lea r8, [0x14017c3f8]
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.14014bb60
lea r11, [rsp + 0xa90]
mov rbp, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
mov qword [rsp + 0x60], r14
lea rax, str.RPCSS
mov qword [rsp + 0x58], r14
lea r8, [0x14017c3f8]
mov qword [rsp + 0x50], rax
lea rdx, [0x14017c3f8]
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], r14
mov r9d, 0xf01ff
mov qword [rsp + 0x38], rax
mov rcx, rdi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
nop dword [rax + rax]
test rax, rax
jne 0x1400626c9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
xor edx, edx
call fcn.1400876d4
mov esi, r14d
mov ebp, 1
mov edi, 0x400
test rax, rax
je 0x14006268a
test esi, esi
jne 0x140062564
mov r9d, edi
lea r8, [rsp + 0x280]
mov edx, 0xd80b
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
mov edx, ebp
mov esi, eax
call fcn.1400876d4
inc ebp
test rax, rax
jne 0x14006264b
test esi, esi
jne 0x140062564
lea r8, str.Could_not_start_service
mov rdx, rdi
lea rcx, [rsp + 0x280]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
test eax, eax
je 0x140062564
cmp eax, 0xc
je 0x140062729
cmp eax, 0x16
je 0x14006271e
cmp eax, r15d
je 0x14006271e
cmp eax, 0x50
jne 0x140062713
jmp 0x140062564
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
jmp 0x14006244a
call fcn.14014bd38
int3
mov ecx, 0x80004005
call fcn.140001950
int3
mov ecx, 0x80070057
call fcn.140001950
int3
mov ecx, 0x8007000e
call fcn.140001950
int3
mov ecx, 0x80004005
call fcn.140001950
int3
mov ecx, 0x80070057
call fcn.140001950
int3
mov ecx, 0x8007000e
call fcn.140001950
int3