Function at 0x1400091a0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Read .ini file
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc40]
sub rsp, 0xd40
mov rax, qword [0x14002a018]
xor rax, rsp
mov qword [rbp + 0xc30], rax
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r8d, 0x104
lea rdx, [rbp + 0x810]
xor ecx, ecx
mov qword [0x14002b028], rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp + 0x810]
call qword [0x14001d3b0]
lea rcx, [rbp + 0x810]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.140005cc0
mov eax, 4
lea rdx, [r14 + 0x270]
xchg dword [r14 + 0x274], eax
mov rcx, qword [r14 + 0x268]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor edx, edx
mov byte [0x14002b020], 0
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.14000cb30
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, 0x104
lea rcx, [rbp - 0x20]
lea r8, [rax + 2]
call fcn.14000f104
lea rcx, [rbp - 0x20]
call qword [0x14001d3b0]
xor edx, edx
lea rcx, [rbp + 0x400]
mov r8d, 0x208
call fcn.14000cb30
lea r8, [rbp - 0x20]
mov edx, 0x104
lea rcx, [rbp + 0x400]
call fcn.14000f084
lea r8, str.conf_appmgr.ini
mov edx, 0x104
lea rcx, [rbp + 0x400]
call fcn.14000f084
lea rdx, [rbp + 0x400]
mov rcx, r14
call fcn.140006580
movzx eax, byte [0x14002b020]
test al, al
jne 0x140009529
xor r13d, r13d
lea r12, str.true
nop
mov rbx, qword [r14 + 0x298]
mov rsi, qword [r14 + 0x2a0]
cmp rbx, rsi
je 0x140009490
nop word [rax + rax]
movzx eax, byte [0x14002b020]
test al, al
jne 0x140009480
mov rax, r13
movzx ecx, word [rbx + rax*2 + 0x1000]
inc rax
cmp cx, word [r12 + rax*2 - 2]
jne 0x140009480
cmp rax, 5
jne 0x140009312
mov rcx, qword [rbx + 0x1400]
cmp rcx, 0xffffffffffffffff
jne 0x140009456
xor edx, edx
lea rcx, [rbp + 0x1f0]
mov r8d, 0x208
call fcn.14000cb30
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
lea r8, [rax + 2]
call fcn.14000f104
lea rcx, [rbp + 0x1f0]
call qword [0x14001d3b0]
lea rdx, [rbx + 0x400]
lea rcx, [rbp + 0x1f0]
call qword [0x14001d3b8]
xor edx, edx
lea rcx, [rbp + 0xa20]
mov r8d, 0x208
call fcn.14000cb30
lea r8, [rbx + 0x800]
mov edx, 0x104
lea rcx, [rbp + 0xa20]
call fcn.14000f104
xor edx, edx
lea rcx, [rsp + 0x74]
lea r8d, [rdx + 0x64]
call fcn.14000cb30
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0xa20]
mov qword [rsp + 0x58], rax
lea rcx, [rbp + 0x1f0]
mov qword [rsp + 0x60], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000957b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x50]
cmp rax, 0xffffffffffffffff
je 0x14000957b
mov qword [rbx + 0x1400], rax
jmp 0x140009480
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140009480
mov rcx, qword [rbx + 0x1400]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x1400], 0xffffffffffffffff
add rbx, 0x1408
cmp rbx, rsi
jne 0x140009300
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, qword [r14 + 0x2a0]
mov rbx, qword [r14 + 0x298]
cmp rbx, rdi
je 0x14000951a
nop
xor edx, edx
lea rcx, [rbp + 0x610]
mov r8d, 0x200
call fcn.14000cb30
lea rax, [rbp + 0x400]
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x610]
lea r8, str.false
mov dword [rsp + 0x20], 0x100
lea rdx, str.autostart
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbx + 0x1000]
mov edx, 0x100
lea r8, [rbp + 0x610]
call fcn.14000f104
add rbx, 0x1408
cmp rbx, rdi
jne 0x1400094b0
movzx eax, byte [0x14002b020]
test al, al
je 0x1400092e0
mov eax, 1
lea rdx, [r14 + 0x270]
xchg dword [r14 + 0x274], eax
mov rcx, qword [r14 + 0x268]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor eax, eax
mov rcx, qword [rbp + 0xc30]
xor rcx, rsp
call fcn.14000b3c0
lea r11, [rsp + 0xd40]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 1
jmp 0x14000954b