Function at 0x1400d8910
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
mov eax, 0x2100
call fcn.1401e9500
sub rsp, rax
mov qword [rsp + 0x20e0], 0xfffffffffffffffe
mov rax, qword [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0x20f0], rax
mov rax, qword [rsp + 0x2128]
cmp dword [rax + 0x28], 0x66
jne 0x1400d8ac9
mov rax, qword [rsp + 0x2120]
cmp dword [rax + 0x220], 0
je 0x1400d8ac2
mov rcx, qword [rsp + 0x2120]
add rcx, 0x238
call fcn.14000f140
lea rcx, [rsp + 0x1060]
call fcn.1400503b0
nop
mov rdx, qword [rsp + 0x2120]
add rdx, 0x278
lea rcx, [rsp + 0x1060]
call fcn.140050bb0
mov rcx, qword [rsp + 0x2120]
add rcx, 0x278
call fcn.140050400
mov rcx, qword [rsp + 0x2120]
add rcx, 0x238
mov rax, qword [rsp + 0x2120]
mov rax, qword [rax + 0x238]
call qword [rax + 0x28]
mov qword [rsp + 0x1090], 0
jmp 0x1400d8a04
mov rax, qword [rsp + 0x1090]
add rax, 1
mov qword [rsp + 0x1090], rax
lea rcx, [rsp + 0x1060]
call fcn.140050db0
cmp qword [rsp + 0x1090], rax
jae 0x1400d8aa4
mov rdx, qword [rsp + 0x1090]
lea rcx, [rsp + 0x1060]
call fcn.140050de0
mov rsi, rax
mov rdx, qword [rsp + 0x1090]
lea rcx, [rsp + 0x1060]
call fcn.140050de0
mov rbx, rax
mov rdx, qword [rsp + 0x1090]
lea rcx, [rsp + 0x1060]
call fcn.140050de0
mov rdi, rax
mov rdx, qword [rsp + 0x1090]
lea rcx, [rsp + 0x1060]
call fcn.140050de0
mov rdx, rax
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x20], rax
mov r9, qword [rbx + 8]
mov r8d, dword [rdi + 4]
mov edx, dword [rdx]
mov rcx, qword [rsp + 0x2120]
call fcn.1400d8250
jmp 0x1400d89f0
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rcx, [rsp + 0x1060]
call fcn.140050b80
jmp 0x1400d895a
xor eax, eax
jmp 0x1400d8f64
movzx eax, byte [0x140224f0e]
mov byte [rsp + 0x50], al
lea rdi, [rsp + 0x51]
xor eax, eax
mov ecx, 0x1000
rep stosb byte [rdi], al
mov qword [rsp + 0x38], 0xffffffffffffffff
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x2120]
cmp dword [rax + 0x220], 0
je 0x1400d8d77
cmp dword [rsp + 0x34], 0
jne 0x1400d8d77
mov dword [rsp + 0x1098], 0
jmp 0x1400d8b31
mov eax, dword [rsp + 0x1098]
add eax, 1
mov dword [rsp + 0x1098], eax
cmp dword [rsp + 0x1098], 0x14
jge 0x1400d8cbf
cmp dword [rsp + 0x34], 0
jne 0x1400d8cbf
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x1400d8b6d
mov edx, 2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x38], rax
mov r8d, dword [rsp + 0x1098]
add r8d, 0x1f41
lea rdx, str.try_to_connect_to_service_control_on_port__d
xor ecx, ecx
call fcn.1400de020
mov r9d, dword [rsp + 0x1098]
add r9d, 0x1f41
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x140228ee0]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x2120]
call fcn.1400db240
test eax, eax
jne 0x1400d8be4
jmp 0x1400d8b20
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.1400d9910
test eax, eax
jne 0x1400d8bfc
jmp 0x1400d8b20
mov r9d, 0x1001
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x2120]
call fcn.1400da6e0
xor edx, edx
mov word [rsp + 0x10a0], dx
lea rdi, [rsp + 0x10a2]
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
mov r8d, 0x400
lea rdx, [rsp + 0x10a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [0x140228ef4]
lea rcx, [rsp + 0x10a0]
call fcn.1400aac14
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20d8]
call fcn.1400dea70
mov qword [rsp + 0x20e8], rax
lea rdx, [rsp + 0x10a0]
mov rcx, qword [rsp + 0x20e8]
call fcn.140006130
mov dword [rsp + 0x20d0], eax
lea rcx, [rsp + 0x20d8]
call fcn.140007060
cmp dword [rsp + 0x20d0], 0
je 0x1400d8cb0
jmp 0x1400d8b20
mov dword [rsp + 0x34], 1
jmp 0x1400d8cbf
cmp dword [rsp + 0x34], 0
je 0x1400d8cd0
jmp 0x1400d8d77
xor eax, eax
mov word [rsp + 0x18b0], ax
lea rdi, [rsp + 0x18b2]
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
mov r8d, 0x400
lea rdx, [rsp + 0x18b0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dx, 0x2e
lea rcx, [rsp + 0x18b0]
call fcn.14000b150
mov rdx, rax
xor eax, eax
mov word [rdx], ax
mov dx, VarDateFromDisp
lea rcx, [rsp + 0x18b0]
call fcn.14000b150
add rax, 2
mov qword [rsp + 0x18a0], rax
mov rcx, qword [rsp + 0x18a0]
call fcn.1400d7ab0
mov dword [rsp + 0x20], 0xa
mov r9d, 0x40
lea r8, str.Control_Service_Startup_Error
lea rdx, str.Cannot_connect_to_the_control_service.
xor ecx, ecx
call fcn.1400f2f50
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d8af3
mov rax, qword [rsp + 0x2128]
cmp dword [rax + 0x28], 0x67
jne 0x1400d8db4
lea r8, [0x140228f90]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x2120]
call fcn.1400db000
mov rdx, qword [rsp + 0x2120]
mov rax, qword [rsp + 0x38]
mov qword [rdx + 0x230], rax
jmp 0x1400d8dcd
lea r8, str.Server2Client_r_n
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x2120]
call fcn.1400db000
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x2128]
cmp dword [rax + 0x28], 0x65
jne 0x1400d8f62
mov rax, qword [rsp + 0x2120]
cmp dword [rax + 0x220], 0
je 0x1400d8f06
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.1400d9910
test eax, eax
jne 0x1400d8e11
jmp 0x1400d8de7
mov dword [rsp + 0x30], 0x1001
movsxd r9, dword [rsp + 0x30]
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x2120]
call fcn.1400da6e0
test eax, eax
jne 0x1400d8e3e
jmp 0x1400d8f06
mov dword [rsp + 0x20b0], 0
mov dword [rsp + 0x20c0], 0
mov qword [rsp + 0x20c8], 0
mov qword [rsp + 0x20b8], 0
mov rax, qword [rsp + 0x2120]
cmp dword [rax + 0x220], 0
jne 0x1400d8e82
jmp 0x1400d8f06
lea rax, [rsp + 0x20b8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x20c8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x20c0]
lea r8, [rsp + 0x20b0]
lea rdx, [0x140228fb0]
lea rcx, [rsp + 0x50]
call fcn.1400b16d4
mov rdi, qword [rsp + 0x2120]
mov rdi, qword [rdi]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20b8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x20c8]
mov r8d, dword [rsp + 0x20c0]
mov edx, dword [rsp + 0x20b0]
mov rcx, qword [rsp + 0x2120]
call qword [rdi + reloc.OLEAUT32.dll_SafeArrayGetElement]
jmp 0x1400d8de7
mov edx, 2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsp + 0x38], 0xffffffffffffffff
mov rax, qword [rsp + 0x2120]
cmp dword [rax + 0x220], 0
je 0x1400d8f5e
lea rdx, str._ERROR__serviceconrolclient_server_to_client_disconnect
mov ecx, 1
call fcn.1400de020
mov edx, 0x65
mov rcx, qword [rsp + 0x2120]
call fcn.1400e3ba0
xor eax, eax
jmp 0x1400d8f64
xor eax, eax
mov rcx, qword [rsp + 0x20f0]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x2100
pop rdi
pop rsi
pop rbx
ret