Function at 0x1400d78b0
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.1401da720
sub rsp, rax
mov qword [rsp + 0x20e0], 0xfffffffffffffffe
mov rax, qword [0x1402aa5c0]
xor rax, rsp
mov qword [rsp + 0x20f8], rax
mov rax, qword [rsp + 0x2128]
cmp dword [rax + 0x28], 0x66
jne 0x1400d7a69
mov rax, qword [rsp + 0x2120]
cmp dword [rax + 0x220], 0
je 0x1400d7a62
mov rcx, qword [rsp + 0x2120]
add rcx, 0x238
call fcn.14000e350
lea rcx, [rsp + 0x1060]
call fcn.14004ef90
nop
mov rdx, qword [rsp + 0x2120]
add rdx, 0x278
lea rcx, [rsp + 0x1060]
call fcn.14004fd70
mov rcx, qword [rsp + 0x2120]
add rcx, 0x278
call fcn.14004fff0
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 0x1400d79a4
mov rax, qword [rsp + 0x1090]
add rax, 1
mov qword [rsp + 0x1090], rax
lea rcx, [rsp + 0x1060]
call fcn.14004ff70
cmp qword [rsp + 0x1090], rax
jae 0x1400d7a44
mov rdx, qword [rsp + 0x1090]
lea rcx, [rsp + 0x1060]
call fcn.14004ffa0
mov rsi, rax
mov rdx, qword [rsp + 0x1090]
lea rcx, [rsp + 0x1060]
call fcn.14004ffa0
mov rbx, rax
mov rdx, qword [rsp + 0x1090]
lea rcx, [rsp + 0x1060]
call fcn.14004ffa0
mov rdi, rax
mov rdx, qword [rsp + 0x1090]
lea rcx, [rsp + 0x1060]
call fcn.14004ffa0
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.1400d71f0
jmp 0x1400d7990
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rcx, [rsp + 0x1060]
call fcn.14004fd40
jmp 0x1400d78fa
xor eax, eax
jmp 0x1400d7f14
movzx eax, byte [0x140214c1e]
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 0x1400d7d27
cmp dword [rsp + 0x34], 0
jne 0x1400d7d27
mov dword [rsp + 0x1098], 0
jmp 0x1400d7ad1
mov eax, dword [rsp + 0x1098]
add eax, 1
mov dword [rsp + 0x1098], eax
cmp dword [rsp + 0x1098], 0x14
jge 0x1400d7c6f
cmp dword [rsp + 0x34], 0
jne 0x1400d7c6f
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x1400d7b0d
mov edx, 2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WSOCK32.dll_shutdown]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WSOCK32.dll_closesocket]
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WSOCK32.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.1400dcf70
mov r9d, dword [rsp + 0x1098]
add r9d, 0x1f41
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x140218bf0]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x2120]
call fcn.1400da1f0
test eax, eax
jne 0x1400d7b84
jmp 0x1400d7ac0
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.1400d88c0
test eax, eax
jne 0x1400d7b9c
jmp 0x1400d7ac0
mov r9d, 0x1001
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x2120]
call fcn.1400d9690
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, [0x140218c04]
lea rcx, [rsp + 0x10a0]
call fcn.1400a99b0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20d8]
call fcn.1400dd9c0
mov qword [rsp + 0x20e8], rax
mov rax, qword [rsp + 0x20e8]
mov qword [rsp + 0x20f0], rax
lea rdx, [rsp + 0x10a0]
mov rcx, qword [rsp + 0x20f0]
call fcn.140006180
mov dword [rsp + 0x20d0], eax
lea rcx, [rsp + 0x20d8]
call fcn.140001490
cmp dword [rsp + 0x20d0], 0
je 0x1400d7c60
jmp 0x1400d7ac0
mov dword [rsp + 0x34], 1
jmp 0x1400d7c6f
cmp dword [rsp + 0x34], 0
je 0x1400d7c80
jmp 0x1400d7d27
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.140001460
mov rdx, rax
xor eax, eax
mov word [rdx], ax
mov dx, VarDateFromDisp
lea rcx, [rsp + 0x18b0]
call fcn.140001460
add rax, 2
mov qword [rsp + 0x18a0], rax
mov rcx, qword [rsp + 0x18a0]
call fcn.1400d6a50
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.1400f1cb0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d7a93
mov rax, qword [rsp + 0x2128]
cmp dword [rax + 0x28], 0x67
jne 0x1400d7d64
lea r8, [0x140218ca0]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x2120]
call fcn.1400d9fb0
mov rdx, qword [rsp + 0x2120]
mov rax, qword [rsp + 0x38]
mov qword [rdx + 0x230], rax
jmp 0x1400d7d7d
lea r8, str.Server2Client_r_n
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x2120]
call fcn.1400d9fb0
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x2128]
cmp dword [rax + 0x28], 0x65
jne 0x1400d7f12
mov rax, qword [rsp + 0x2120]
cmp dword [rax + 0x220], 0
je 0x1400d7eb6
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.1400d88c0
test eax, eax
jne 0x1400d7dc1
jmp 0x1400d7d97
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.1400d9690
test eax, eax
jne 0x1400d7dee
jmp 0x1400d7eb6
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 0x1400d7e32
jmp 0x1400d7eb6
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, [0x140218cc0]
lea rcx, [rsp + 0x50]
call fcn.1400b0594
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 0x1400d7d97
mov edx, 2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WSOCK32.dll_shutdown]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [rsp + 0x38], 0xffffffffffffffff
mov rax, qword [rsp + 0x2120]
cmp dword [rax + 0x220], 0
je 0x1400d7f0e
lea rdx, str._ERROR__serviceconrolclient_server_to_client_disconnect
mov ecx, 1
call fcn.1400dcf70
mov edx, 0x65
mov rcx, qword [rsp + 0x2120]
call fcn.1400e2940
xor eax, eax
jmp 0x1400d7f14
xor eax, eax
mov rcx, qword [rsp + 0x20f8]
xor rcx, rsp
call fcn.1400a8790
add rsp, 0x2100
pop rdi
pop rsi
pop rbx
ret