Function at 0x180069540
Capabilities:
Create service

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x418]
sub rsp, 0x518
mov qword [rbp - 8], 0xfffffffffffffffe
mov rax, qword [0x1801003f0]
xor rax, rsp
mov qword [rbp + 0x400], 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 + 0x480]
mov qword [rbp - 0x68], rax
mov rsi, qword [rbp + 0x488]
mov r14, qword [rbp + 0x490]
mov r12, qword [rbp + 0x498]
mov qword [rbp - 0x60], r12
mov r15, qword [rbp + 0x4a0]
mov rdi, qword [rbp + 0x4a8]
mov qword [rbp - 0x40], rdi
mov rax, qword [rbp + 0x4b0]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp + 0x4b8]
mov qword [rbp - 0x78], rax
call fcn.18002c2b0
test eax, eax
je 0x1800695ec
mov dword [0x180122748], 0x32
jmp 0x180069823
cmp ebx, 4
ja 0x180069819
test r13, r13
je 0x180069819
cmp byte [r13], 0
je 0x180069819
test r14, r14
je 0x180069819
cmp byte [r14], 0
je 0x180069819
xor ebx, ebx
mov dword [0x180122748], ebx
lea r9d, [rbx + 2]
lea r8d, [rbx + 0xa]
mov rdx, r13
lea rcx, [rbp - 0x38]
call fcn.180068190
nop
lea rcx, [rbp - 0x38]
call fcn.1800681b0
test rax, rax
je 0x1800697f0
lea rcx, [rbp - 0x38]
call fcn.180068230
test rax, rax
jne 0x180069797
mov dword [rsp + 0x7c], ebx
mov r12d, ebx
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x180069678
lea r12, [rsp + 0x7c]
cmp byte [rcx], al
cmove r12, rbx
mov rdi, rbx
lea rcx, [rbp - 0x58]
call fcn.18001cc20
nop
test r15, r15
je 0x180069696
mov rdx, r15
lea rcx, [rbp - 0x58]
call fcn.180022550
mov rdx, qword [rbp - 0x40]
test rdx, rdx
je 0x1800696a8
lea rcx, [rbp - 0x58]
call fcn.180022550
mov byte [rbp], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rbp + 1]
call fcn.1800369b0
mov dword [rbp - 0x80], 0x400
cmp dword [rbp - 0x50], 0
jle 0x1800696f5
lea r9, [rbp - 0x80]
lea r8, [rbp]
xor edx, edx
lea rcx, [rbp - 0x58]
call fcn.1800255d0
test eax, eax
je 0x1800696e7
lea rdi, [rbp]
jmp 0x1800696f5
lea rcx, [rbp - 0x58]
call fcn.1800223b0
jmp 0x1800697f0
lea rcx, [rbp - 0x38]
call fcn.1800681b0
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_CreateServiceA]
test rax, rax
je 0x180069783
mov ebx, 1
mov qword [rbp - 0x20], rax
test rsi, rsi
je 0x18006978c
lea rcx, [rbp - 0x38]
call fcn.180068230
mov rcx, rax
mov rdx, rsi
call fcn.1800683e0
jmp 0x18006978c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x38], eax
lea rcx, [rbp - 0x58]
call fcn.1800223b0
jmp 0x1800697ec
lea rcx, [rbp - 0x38]
call fcn.180068230
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.180068e10
mov ebx, eax
test ebx, ebx
jne 0x18006980c
cmp dword [0x180122748], 0
jne 0x18006980c
mov eax, dword [rbp - 0x38]
test eax, eax
jne 0x180069806
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x180122748], eax
lea rcx, [rbp - 0x38]
call fcn.180068290
mov eax, ebx
jmp 0x180069825
mov dword [0x180122748], 0x57
xor eax, eax
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.180036980
add rsp, 0x518
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret