Function at 0x1400458f0
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 [0x1400b1008]
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 [0x14019b5d4], 0
jne 0x140045ab7
mov ecx, 0x202
lea rdx, [rsp + 0xca0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140045aad
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], 0x2e2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2e2
mov rdx, r14
mov rcx, rdi
call fcn.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, str.C:JenkinsWorkspaceBUILD_2GitReposiecsdk_srcenergy_server_driversesrvesrv_ipc.c
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd7bc]
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.1400056d0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x140045aa8
mov qword [rsi + 0x10], 1
xor ebx, ebx
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x140045aa8
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140046bc5
mov dword [0x14019b5d4], 1
cmp dword [rdi + 0x7da9c], 0
jne 0x140045ad7
lea rcx, [rdi + 0x7daa0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rdi + 0x7da9c], 1
sub ebx, 1
je 0x1400460cf
cmp ebx, 1
jne 0x140046bcc
cmp dword [rdi + 0x7d9e4], ebx
jne 0x140045b07
mov dword [rdi + 0x7d9e0], ebx
lea r9, [0x1400cd53c]
lea rax, [rdi + 0x7d9f0]
jmp 0x140045b15
lea r9, [0x1400cd494]
lea rax, [0x1400dd5b0]
mov qword [rsp + 0x20], rax
mov edx, setsockopt
lea r8, [rdx - 0x15]
lea rcx, [rdi + 0x7da74]
call fcn.140001030
mov byte [rdi + 0x7da87], 0
cmp dword [rdi + 0x7d9e8], 1
jne 0x140045b59
mov dword [rdi + 0x7d9e0], 1
lea r9, [0x1400cd46c]
lea rax, [rdi + 0x7da04]
jmp 0x140045b67
lea r9, [0x1400cd44c]
lea rax, [0x1400cd464]
mov qword [rsp + 0x20], rax
mov edx, 0xa
lea r8, [rdx - 0xb]
lea rcx, [rdi + 0x7da92]
call fcn.140001030
mov byte [rdi + 0x7da9b], 0
lea r8, [rdi + 0x7db08]
xorps xmm0, xmm0
movups xmmword [r8], xmm0
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
mov dword [rdi + 0x7db0c], 2
mov dword [rdi + 0x7db10], 1
mov dword [rdi + 0x7db14], 6
mov dword [r8], 1
lea r9, [rdi + 0x7dad0]
lea rdx, [rdi + 0x7da92]
lea rcx, [rdi + 0x7da74]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140045d07
cmp dword [rdi + 0x20888], 0
jne 0x140045d02
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], 0x2eb
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2eb
mov rdx, r14
mov rcx, rdi
call fcn.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd550]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd434]
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.1400056d0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x140045cfd
mov qword [rsi + 0x10], 1
xor ebx, ebx
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x140045cfd
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140046bc5
jmp 0x140046bc5
mov rbx, qword [rdi + 0x7dad0]
nop
test rbx, rbx
je 0x140045fb4
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 + 0x7db40], rax
cmp rax, 0xffffffffffffffff
jne 0x140045e55
cmp dword [rdi + 0x20888], 0
jne 0x140045e50
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], 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.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd4f0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd404]
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.1400056d0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x140045e4b
mov qword [rsi + 0x10], 1
xor ebx, ebx
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x140045e4b
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140046bc5
jmp 0x140046bc5
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 0x140046bcc
mov rcx, qword [rdi + 0x7db40]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x140045fa0
cmp dword [rdi + 0x20888], 0
jne 0x140045f9b
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.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd490]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd3d4]
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.1400056d0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x140045f96
mov qword [rsi + 0x10], 1
xor ebx, ebx
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x140045f96
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140046bc5
jmp 0x140046bc5
mov qword [rdi + 0x7db40], 0xffffffffffffffff
mov rbx, qword [rbx + 0x28]
jmp 0x140045d10
cmp dword [rdi + 0x20888], 0
jne 0x1400460ca
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], 0x2f8
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2f8
mov rdx, r14
mov rcx, rdi
call fcn.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd430]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd3bc]
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.1400056d0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x1400460c5
mov qword [rsi + 0x10], 1
xor ebx, ebx
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x1400460c5
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140046bc5
jmp 0x140046bc5
cmp dword [rdi + 0x20898], 1
je 0x140046aa6
lea rbx, [rdi + 0x7da60]
cmp dword [rdi + 0x7d9e4], 1
jne 0x140046106
mov dword [rdi + 0x7d9e0], 1
lea r9, [0x1400cd73c]
lea rax, [rdi + 0x7d9f0]
jmp 0x140046114
lea r9, [0x1400cd72c]
lea rax, [0x1400dd948]
mov qword [rsp + 0x20], rax
mov edx, setsockopt
lea r8, [rdx - 0x15]
mov rcx, rbx
call fcn.140001030
mov byte [rdi + 0x7da73], 0
cmp dword [rdi + 0x7d9e8], 1
jne 0x140046154
mov dword [rdi + 0x7d9e0], 1
lea r9, [0x1400cd6ec]
lea rax, [rdi + 0x7da04]
jmp 0x140046162
lea r9, [0x1400cd6bc]
lea rax, str.49260
mov qword [rsp + 0x20], rax
mov edx, 0xa
lea r8, [rdx - 0xb]
lea rcx, [rdi + 0x7da88]
call fcn.140001030
mov byte [rdi + 0x7da91], 0
lea r8, [rdi + 0x7dad8]
xorps xmm0, xmm0
movups xmmword [r8], xmm0
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
mov dword [rdi + 0x7dadc], 2
mov dword [rdi + 0x7dae0], 1
mov dword [rdi + 0x7dae4], 6
mov dword [r8], 1
lea r9, [rdi + 0x7dac8]
lea rdx, [rdi + 0x7da88]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14004649e
cmp eax, 0x2af9
je 0x1400462f7
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], 0x2eb
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2eb
mov rdx, r14
mov rcx, rdi
call fcn.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd800]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd62c]
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.1400056d0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x1400462f2
mov qword [rsi + 0x10], 1
xor ebx, ebx
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x1400462f2
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140046bc5
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], 0x2eb
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2eb
mov rdx, r14
mov rcx, rdi
call fcn.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd860]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd6a4]
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, [0x1400cd674]
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, [0x1400cd65c]
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.1400056d0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x140046499
mov qword [rsi + 0x10], 1
xor ebx, ebx
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x140046499
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140046bc5
mov r15, qword [rdi + 0x7dac8]
xor ebx, ebx
lea r12, [0x1400dd6e0]
nop
test r15, r15
je 0x1400469a0
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 + 0x7db38], rax
cmp rax, 0xffffffffffffffff
jne 0x1400465e2
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], 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.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd7a0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd61c]
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.1400056d0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x1400465dd
mov qword [rsi + 0x10], 1
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x1400465dd
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140046bc5
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 0x140046712
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.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd740]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd5e4]
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.1400056d0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x14004670d
mov qword [rsi + 0x10], 1
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14004670d
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140046bc5
mov r8d, dword [r15 + 0x10]
mov rdx, qword [r15 + 0x20]
mov rcx, qword [rdi + 0x7db38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140046aa8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x14004676a
lea r8, [rdi + 0x7da14]
mov rdx, qword [rdi + 0x7db38]
mov rcx, rdi
call fcn.140044f30
test eax, eax
jne 0x140046870
mov dword [rdi + 0x7d9e0], 1
jmp 0x140046aa8
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], 0x2f1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2f1
mov rdx, r14
mov rcx, rdi
call fcn.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 4
mov qword [rsp + 0x20], r12
lea r9, [0x1400cd5cc]
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.1400056d0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x140046870
mov qword [rsi + 0x10], 1
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x140046870
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
mov rcx, qword [rdi + 0x7db38]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x14004698c
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.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd680]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd594]
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.1400056d0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x140046987
mov qword [rsi + 0x10], 1
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x140046987
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140046bc5
mov qword [rdi + 0x7db38], 0xffffffffffffffff
mov r15, qword [r15 + 0x28]
jmp 0x1400464b0
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.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd620]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd57c]
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.1400056d0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x140046aa1
mov qword [rsi + 0x10], 1
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x140046aa1
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140046bc5
xor ebx, ebx
mov edx, 0x7fffffff
mov rcx, qword [rdi + 0x7db38]
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x140046bcc
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.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd5c0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd554]
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.1400056d0
mov dword [r14 + 0x50], eax
test rsi, rsi
je 0x140046bc5
mov qword [rsi + 0x10], 1
mov dword [rsi + 0xc], ebx
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x140046bc5
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
mov eax, 1
jmp 0x140046bd5
xor eax, eax
jmp 0x140046bd5
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