Function at 0x1400011e0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
movsxd rsi, ecx
mov r14, rdx
lea rcx, [0x14000ee00]
call fcn.140035524
call fcn.14000bca0
call fcn.140001110
xor r15d, r15d
mov rbp, rsi
cmp esi, 2
jl 0x1400012cc
mov ebx, r15d
mov edi, 1
nop dword [rax + rax]
mov rcx, qword [r14 + rbx*8]
lea rdx, [0x14005abb4]
mov r8d, 2
call fcn.1400364fc
mov rcx, qword [r14 + rbx*8]
test eax, eax
jne 0x140001274
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str._Oallow_remote_pkcs11
call fcn.1400364fc
test eax, eax
jne 0x14000157a
mov dword [0x1400a6730], 1
jmp 0x1400012be
mov r8d, 2
lea rdx, [0x14005ac74]
call fcn.1400364fc
test eax, eax
jne 0x1400012be
cmp qword [0x1400841c0], r15
jne 0x14000161c
cmp edi, esi
jge 0x1400015e6
mov rcx, qword [r14 + rbx*8 + 8]
inc rbx
inc edi
call fcn.14000e210
mov qword [0x1400841c0], rax
test rax, rax
je 0x1400015b0
inc edi
inc rbx
cmp rbx, rbp
jl 0x140001230
cmp qword [0x1400841c0], r15
jne 0x1400012da
call fcn.140002a60
lea rcx, [0x140082c30]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140001504
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x427
jne 0x14000153d
mov edx, 2
lea rcx, [0x14005cd84]
call fcn.14000c3c0
mov ebx, eax
mov edi, eax
cmp eax, 0xffffffff
je 0x140001544
inc ebx
cmp ebx, 2
jg 0x140001366
lfence
nop dword [rax + rax]
mov edx, 1
mov ecx, ebx
call fcn.14000c8a0
cmp eax, 0xffffffff
jne 0x14000135d
call fcn.14003d440
cmp dword [rax], 9
jne 0x14000135d
mov edx, ebx
mov ecx, edi
call fcn.14000d590
cmp eax, 0xffffffff
je 0x140001652
inc ebx
cmp ebx, 2
jle 0x140001330
jmp 0x140001375
cmp edi, 2
jle 0x140001375
lfence
mov ecx, edi
call fcn.14000c6e0
cmp esi, 2
jl 0x140001459
mov rbx, r15
lea rsi, str.ssh_agent
nop dword [rax + rax]
mov rcx, qword [r14 + rbx*8]
lea rdx, str._ddd
mov r8d, 4
call fcn.1400364fc
test eax, eax
jne 0x1400013b6
mov dword [reloc.WS2_32.dll_closesocket], 7
jmp 0x140001400
mov rcx, qword [r14 + rbx*8]
lea rdx, [0x14005ad00]
mov r8d, 3
call fcn.1400364fc
test eax, eax
jne 0x1400013dc
mov dword [reloc.WS2_32.dll_closesocket], 6
jmp 0x140001400
mov rcx, qword [r14 + rbx*8]
lea rdx, [0x14005ad08]
mov r8d, 2
call fcn.1400364fc
test eax, eax
jne 0x14000141f
mov dword [reloc.WS2_32.dll_closesocket], 5
mov qword [0x1400a4c50], rsi
mov qword [0x1400a4c60], r15
mov qword [0x1400a4c58], r15
mov dword [0x140082d0c], 1
mov rcx, qword [r14 + rbx*8]
lea rdx, [0x14005ad08]
mov r8d, 2
call fcn.1400364fc
test eax, eax
je 0x14000151f
mov rcx, qword [r14 + rbx*8]
call fcn.1400360e0
movsxd rdi, eax
test eax, eax
jne 0x1400014b6
inc rbx
cmp rbx, rbp
jl 0x140001390
xor edx, edx
xor ecx, ecx
mov r8d, setsockopt
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
je 0x1400016c8
mov r8d, setsockopt
lea rdx, [0x14005aba0]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x1400016c8
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x140001504
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x140001688
jmp 0x140001504
mov qword [0x1400a4c50], rsi
mov dword [reloc.WS2_32.dll_closesocket], 3
mov qword [0x1400a4c60], r15
mov qword [0x1400a4c58], r15
mov dword [0x140082d0c], r15d
mov dword [0x140082d08], 8
mov qword [0x140084298], rsi
mov dword [0x140084290], 8
call fcn.140030c70
mov rcx, rdi
call fcn.1400027b0
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov edx, 1
lea rcx, [0x1400010f0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, 1
call fcn.140002040
jmp 0x140001504
mov eax, 0xffffffff
jmp 0x140001506
call fcn.14003d440
mov ecx, dword [rax]
call fcn.14000edb0
mov ecx, 2
mov rbx, rax
call fcn.14003e5a0
mov rcx, rax
lea rdx, str.Couldnt_open__dev_null:__s_n
mov r8, rbx
call fcn.14001aaa0
mov ecx, 1
call fcn.140040730
int3
lea rax, str.Unknown__O_option__only_allow_remote_pkcs11_is_supported
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, str.wmain
mov qword [rsp + 0x28], r15
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agent_agent_main.c
mov r8d, 0x89
mov dword [rsp + 0x20], 1
call fcn.14001aa60
int3
lea rax, str.Invalid_argument_for__P_option
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, str.wmain
mov qword [rsp + 0x28], r15
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agent_agent_main.c
mov r8d, 0x92
mov dword [rsp + 0x20], 1
call fcn.14001aa60
int3
lea rax, str.Missing_argument_for__P_option
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, str.wmain
mov qword [rsp + 0x28], r15
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agent_agent_main.c
mov r8d, 0x95
mov dword [rsp + 0x20], 1
call fcn.14001aa60
int3
lea rax, str._P_option_already_specified
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, str.wmain
mov qword [rsp + 0x28], r15
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agent_agent_main.c
mov r8d, 0x8e
mov dword [rsp + 0x20], 1
call fcn.14001aa60
int3
call fcn.14003d440
mov ecx, dword [rax]
call fcn.14000edb0
mov ecx, 2
mov rbx, rax
call fcn.14003e5a0
mov rcx, rax
lea rdx, str.dup2:__s_n
mov r8, rbx
call fcn.14001aaa0
mov ecx, 1
call fcn.140040730
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
xor r9d, r9d
mov r8d, 0xd4
lea rdx, str.wmain
lea rax, str.unable_to_start_ssh_agent_service__error_:_d
mov qword [rsp + 0x30], rax
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agent_agent_main.c
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 1
call fcn.14001aa60
int3
lea rax, str.unable_to_open_service_handle
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, str.wmain
mov qword [rsp + 0x28], r15
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agent_agent_main.c
mov r8d, 0xcf
mov dword [rsp + 0x20], 1
call fcn.14001aa60
int3