Function at 0x1801528d0
Capabilities:
Create service

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x818]
sub rsp, 0x918
mov qword [rbp - 8], 0xfffffffffffffffe
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rbp + 0x800], rax
mov dword [rsp + 0x74], r9d
mov ebx, r8d
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x70], edx
mov r13, rcx
mov rax, qword [rbp + 0x880]
mov qword [rbp - 0x68], rax
mov rsi, qword [rbp + 0x888]
mov r14, qword [rbp + 0x890]
mov r12, qword [rbp + 0x898]
mov qword [rbp - 0x60], r12
mov r15, qword [rbp + 0x8a0]
mov rdi, qword [rbp + 0x8a8]
mov qword [rbp - 0x40], rdi
mov rax, qword [rbp + 0x8b0]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp + 0x8b8]
mov qword [rbp - 0x78], rax
call fcn.180127c10
test eax, eax
je 0x18015297c
mov dword [0x18023cf20], 0x32
jmp 0x180152bb6
cmp ebx, 4
ja 0x180152bac
test r13, r13
je 0x180152bac
cmp word [r13], 0
je 0x180152bac
test r14, r14
je 0x180152bac
cmp word [r14], 0
je 0x180152bac
xor ebx, ebx
mov dword [0x18023cf20], ebx
lea r9d, [rbx + 2]
lea r8d, [rbx + 0xa]
mov rdx, r13
lea rcx, [rbp - 0x38]
call fcn.180151460
nop
lea rcx, [rbp - 0x38]
call fcn.180151480
test rax, rax
je 0x180152b83
lea rcx, [rbp - 0x38]
call fcn.180151500
test rax, rax
jne 0x180152b2a
mov dword [rsp + 0x7c], ebx
mov r12d, ebx
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x180152a0b
lea r12, [rsp + 0x7c]
cmp word [rcx], ax
cmove r12, rbx
mov rdi, rbx
lea rcx, [rbp - 0x58]
call fcn.1800e7600
nop
test r15, r15
je 0x180152a29
mov rdx, r15
lea rcx, [rbp - 0x58]
call fcn.1800ea150
mov rdx, qword [rbp - 0x40]
test rdx, rdx
je 0x180152a3b
lea rcx, [rbp - 0x58]
call fcn.1800ea150
mov word [rbp], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 2]
call fcn.1800f8b90
mov dword [rbp - 0x80], 0x400
cmp dword [rbp - 0x50], 0
jle 0x180152a88
xor edx, edx
lea r9, [rbp - 0x80]
lea r8, [rbp]
lea rcx, [rbp - 0x58]
call fcn.1800ef760
test eax, eax
je 0x180152a7a
lea rdi, [rbp]
jmp 0x180152a88
lea rcx, [rbp - 0x58]
call fcn.1800e9fb0
jmp 0x180152b83
lea rcx, [rbp - 0x38]
call fcn.180151480
mov rcx, rax
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], r12
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov r9d, dword [rsp + 0x74]
mov dword [rsp + 0x30], r9d
mov r8d, dword [rsp + 0x78]
mov dword [rsp + 0x28], r8d
mov edx, dword [rsp + 0x70]
mov dword [rsp + 0x20], edx
mov r9d, 0xf01ff
mov r8, qword [rbp - 0x68]
mov rdx, r13
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
je 0x180152b16
mov ebx, 1
mov qword [rbp - 0x20], rax
test rsi, rsi
je 0x180152b1f
lea rcx, [rbp - 0x38]
call fcn.180151500
mov rcx, rax
mov rdx, rsi
call fcn.1801516b0
jmp 0x180152b1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x38], eax
lea rcx, [rbp - 0x58]
call fcn.1800e9fb0
jmp 0x180152b7f
lea rcx, [rbp - 0x38]
call fcn.180151500
mov rcx, rax
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x58], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rsi
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x74]
mov r8d, dword [rsp + 0x78]
mov edx, dword [rsp + 0x70]
call fcn.1801520f0
mov ebx, eax
test ebx, ebx
jne 0x180152b9f
cmp dword [0x18023cf20], 0
jne 0x180152b9f
mov eax, dword [rbp - 0x38]
test eax, eax
jne 0x180152b99
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x18023cf20], eax
lea rcx, [rbp - 0x38]
call fcn.180151560
mov eax, ebx
jmp 0x180152bb8
mov dword [0x18023cf20], 0x57
xor eax, eax
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.1800f98f0
add rsp, 0x918
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret