Function at 0x14005ba60
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf50
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0xf40], rax
mov ebx, edx
mov rdi, rcx
mov dword [rsp + 0x40], 1
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0xe40]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x198
lea rcx, [rsp + 0xca0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0xc50
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea r13, [rsp + 0x50]
lea r14, [rdi + 0x11b18]
lea rsi, [rdi + 0x11bd0]
cmp dword [0x140199df8], 0
jne 0x14005bc27
mov ecx, 0x202
lea rdx, [rsp + 0xca0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14005bc1d
xor edx, edx
mov r8d, 0xc50
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2e3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2e3
mov rdx, r14
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, str.C:JenkinsWorkspaceBUILDGitReposiecsdk_srcenergy_server_driversesrvesrv_ipc.c
mov qword [rsp + 0x20], rax
lea r9, [0x1400e82e8]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], 0
mov dword [rsp + 0xa98], 0x139
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
lea r8, [rsp + 0x50]
mov rdx, r14
mov rcx, rdi
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x14005bc18
mov qword [rsi + 0x10], 1
xor ebx, ebx
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005bc18
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005cd35
mov dword [0x140199df8], 1
cmp dword [rdi + 0x7dab4], 0
jne 0x14005bc47
lea rcx, [rdi + 0x7dab8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rdi + 0x7dab4], 1
sub ebx, 1
je 0x14005c23f
cmp ebx, 1
jne 0x14005cd3c
cmp dword [rdi + 0x7d9fc], ebx
jne 0x14005bc77
mov dword [rdi + 0x7d9f8], ebx
lea r9, [0x1400e728c]
lea rax, [rdi + 0x7da08]
jmp 0x14005bc85
lea r9, [0x1400e71a4]
lea rax, [0x1400ea4f8]
mov qword [rsp + 0x20], rax
mov edx, socket
lea r8, [rdx - 0x15]
lea rcx, [rdi + 0x7da8c]
call fcn.140001030
mov byte [rdi + 0x7da9f], 0
cmp dword [rdi + 0x7da00], 1
jne 0x14005bcc9
mov dword [rdi + 0x7d9f8], 1
lea r9, [0x1400e709c]
lea rax, [rdi + 0x7da1c]
jmp 0x14005bcd7
lea r9, [0x1400e6e9c]
lea rax, [0x1400e6f94]
mov qword [rsp + 0x20], rax
mov edx, 0xa
lea r8, [rdx - 0xb]
lea rcx, [rdi + 0x7daaa]
call fcn.140001030
mov byte [rdi + 0x7dab3], 0
lea r8, [rdi + 0x7db20]
xorps xmm0, xmm0
movups xmmword [r8], xmm0
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
mov dword [rdi + 0x7db24], 2
mov dword [rdi + 0x7db28], 1
mov dword [rdi + 0x7db2c], 6
mov dword [r8], 1
lea r9, [rdi + 0x7dae8]
lea rdx, [rdi + 0x7daaa]
lea rcx, [rdi + 0x7da8c]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14005be77
cmp dword [rdi + 0x20888], 0
jne 0x14005be72
xor edx, edx
mov r8d, 0xc50
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2ec
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2ec
mov rdx, r14
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400ea4a0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e6da4]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], 0
mov dword [rsp + 0xa98], 0x45f
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
lea r8, [rsp + 0x50]
mov rdx, r14
mov rcx, rdi
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x14005be6d
mov qword [rsi + 0x10], 1
xor ebx, ebx
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005be6d
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005cd35
jmp 0x14005cd35
mov rbx, qword [rdi + 0x7dae8]
nop
test rbx, rbx
je 0x14005c124
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x7db58], rax
cmp rax, 0xffffffffffffffff
jne 0x14005bfc5
cmp dword [rdi + 0x20888], 0
jne 0x14005bfc0
xor edx, edx
mov r8d, 0xc50
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2ed
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2ed
mov rdx, r14
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400ea430]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e6d8c]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], 0
mov dword [rsp + 0xa98], 0x48b
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
mov r8, r13
mov rdx, r14
mov rcx, rdi
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x14005bfbb
mov qword [rsi + 0x10], 1
xor ebx, ebx
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005bfbb
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005cd35
jmp 0x14005cd35
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14005cd3c
mov rcx, qword [rdi + 0x7db58]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x14005c110
cmp dword [rdi + 0x20888], 0
jne 0x14005c10b
xor edx, edx
mov r8d, 0xc50
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2ef
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2ef
mov rdx, r14
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400ea3d0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e6d34]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], 0
mov dword [rsp + 0xa98], 0x4b5
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
mov r8, r13
mov rdx, r14
mov rcx, rdi
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x14005c106
mov qword [rsi + 0x10], 1
xor ebx, ebx
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005c106
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005cd35
jmp 0x14005cd35
mov qword [rdi + 0x7db58], 0xffffffffffffffff
mov rbx, qword [rbx + 0x28]
jmp 0x14005be80
cmp dword [rdi + 0x20888], 0
jne 0x14005c23a
xor edx, edx
mov r8d, 0xc50
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2f9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2f9
mov rdx, r14
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400ea370]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e6c6c]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], 0
mov dword [rsp + 0xa98], 0x683
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
mov r8, r13
mov rdx, r14
mov rcx, rdi
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x14005c235
mov qword [rsi + 0x10], 1
xor ebx, ebx
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005c235
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005cd35
jmp 0x14005cd35
cmp dword [rdi + 0x20898], 1
je 0x14005cc16
lea rbx, [rdi + 0x7da78]
cmp dword [rdi + 0x7d9fc], 1
jne 0x14005c276
mov dword [rdi + 0x7d9f8], 1
lea r9, [0x1400e8224]
lea rax, [rdi + 0x7da08]
jmp 0x14005c284
lea r9, [0x1400e81c8]
lea rax, [0x1400ea978]
mov qword [rsp + 0x20], rax
mov edx, socket
lea r8, [rdx - 0x15]
mov rcx, rbx
call fcn.140001030
mov byte [rdi + 0x7da8b], 0
cmp dword [rdi + 0x7da00], 1
jne 0x14005c2c4
mov dword [rdi + 0x7d9f8], 1
lea r9, [0x1400e8104]
lea rax, [rdi + 0x7da1c]
jmp 0x14005c2d2
lea r9, [0x1400e80a8]
lea rax, str.49261
mov qword [rsp + 0x20], rax
mov edx, 0xa
lea r8, [rdx - 0xb]
lea rcx, [rdi + 0x7daa0]
call fcn.140001030
mov byte [rdi + 0x7daa9], 0
lea r8, [rdi + 0x7daf0]
xorps xmm0, xmm0
movups xmmword [r8], xmm0
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
mov dword [rdi + 0x7daf4], 2
mov dword [rdi + 0x7daf8], 1
mov dword [rdi + 0x7dafc], 6
mov dword [r8], 1
lea r9, [rdi + 0x7dae0]
lea rdx, [rdi + 0x7daa0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14005c60e
cmp eax, 0x2af9
je 0x14005c467
xor edx, edx
mov r8d, 0xc50
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2ec
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2ec
mov rdx, r14
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400ea810]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e7bb4]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], 0
mov dword [rsp + 0xa98], 0x208
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
lea r8, [rsp + 0x50]
mov rdx, r14
mov rcx, rdi
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x14005c462
mov qword [rsi + 0x10], 1
xor ebx, ebx
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005c462
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005cd35
mov qword [rsp + 0x20], rbx
lea r9, str.The_Specified_Host___s__Cannot_Be_Found._Please_Check_The_Hostname._If_You_Are_Using_Variables__Did_You_Forget_Using_Surrounding____
mov edx, 0xff
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xe40]
call fcn.140001030
mov byte [rsp + 0xf3e], 0
xor edx, edx
mov r8d, 0xc50
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0xa9c], 1
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2ec
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2ec
mov rdx, r14
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400ea870]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e7f44]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], 0
mov dword [rsp + 0xa98], 0x1f8
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov qword [rsp + 0x20], rbx
lea r9, [0x1400e7ee8]
mov edx, 0xff
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xaa0]
call fcn.140001030
mov byte [rsp + 0xb9e], 0
lea rax, [rsp + 0xe40]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e7d84]
mov edx, 0xff
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xb9f]
call fcn.140001030
mov byte [rsp + 0xc9d], 0
mov r9d, 1
lea r8, [rsp + 0x50]
mov rdx, r14
mov rcx, rdi
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x14005c609
mov qword [rsi + 0x10], 1
xor ebx, ebx
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005c609
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005cd35
mov r15, qword [rdi + 0x7dae0]
xor ebx, ebx
lea r12, [0x1400ea6e0]
nop
test r15, r15
je 0x14005cb10
mov r8d, dword [r15 + 0xc]
mov edx, dword [r15 + 8]
mov ecx, dword [r15 + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x7db50], rax
cmp rax, 0xffffffffffffffff
jne 0x14005c752
xor edx, edx
mov r8d, 0xc50
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2ed
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2ed
mov rdx, r14
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400ea7b0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e7a04]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], bl
mov dword [rsp + 0xa98], 0x22d
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
mov r8, r13
mov rdx, r14
mov rcx, rdi
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x14005c74d
mov qword [rsi + 0x10], 1
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005c74d
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005cd35
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14005c882
xor edx, edx
mov r8d, 0xc50
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2ee
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2ee
mov rdx, r14
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400ea740]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e79a8]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], bl
mov dword [rsp + 0xa98], 0x255
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
mov r8, r13
mov rdx, r14
mov rcx, rdi
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x14005c87d
mov qword [rsi + 0x10], 1
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005c87d
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005cd35
mov r8d, dword [r15 + 0x10]
mov rdx, qword [r15 + 0x20]
mov rcx, qword [rdi + 0x7db50]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14005cc18
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x14005c8da
lea r8, [rdi + 0x7da2c]
mov rdx, qword [rdi + 0x7db50]
mov rcx, rdi
call fcn.14005b0a0
test eax, eax
jne 0x14005c9e0
mov dword [rdi + 0x7d9f8], 1
jmp 0x14005cc18
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
mov r8d, 0xc50
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2f2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2f2
mov rdx, r14
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 4
mov qword [rsp + 0x20], r12
lea r9, [0x1400e78b4]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], bl
mov dword [rsp + 0xa98], 0x291
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
lea r8, [rsp + 0x50]
mov rdx, r14
mov rcx, rdi
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x14005c9e0
mov qword [rsi + 0x10], 1
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005c9e0
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
mov rcx, qword [rdi + 0x7db50]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x14005cafc
xor edx, edx
mov r8d, 0xc50
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2ef
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2ef
mov rdx, r14
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400ea660]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e7784]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], bl
mov dword [rsp + 0xa98], 0x2a8
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
mov r8, r13
mov rdx, r14
mov rcx, rdi
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x14005caf7
mov qword [rsi + 0x10], 1
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005caf7
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005cd35
mov qword [rdi + 0x7db50], 0xffffffffffffffff
mov r15, qword [r15 + 0x28]
jmp 0x14005c620
xor edx, edx
mov r8d, 0xc50
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2fa
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2fa
mov rdx, r14
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400ea5e0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e7394]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], bl
mov dword [rsp + 0xa98], 0x319
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
mov r8, r13
mov rdx, r14
mov rcx, rdi
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x14005cc11
mov qword [rsi + 0x10], 1
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005cc11
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005cd35
xor ebx, ebx
mov edx, 0x7fffffff
mov rcx, qword [rdi + 0x7db50]
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x14005cd3c
xor edx, edx
mov r8d, 0xc50
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2f0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2f0
mov rdx, r14
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400ea560]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e7314]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], 0
mov dword [rsp + 0xa98], 0x330
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
mov r8, r13
mov rdx, r14
mov rcx, rdi
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x14005cd35
mov qword [rsi + 0x10], 1
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005cd35
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
mov eax, 1
jmp 0x14005cd45
xor eax, eax
jmp 0x14005cd45
mov rcx, qword [rsp + 0xf40]
xor rcx, rsp
call fcn.140001ea0
lea r11, [rsp + 0xf50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret