Function at 0x1400546e0
Capabilities:
Connect socket

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r12, rcx
lea r13, [0x1403d4c88]
mov r8, r13
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140054eee
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x28], 1
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea edx, [r14 + 1]
lea ecx, [rdx + 1]
lea r8d, [r14 + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
call fcn.140046d00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], rbx
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov rsi, 0xffffffffffffffff
cmp rdi, rsi
jne 0x14005479f
mov rdi, rsi
jmp 0x1400547ce
mov dword [rbp - 0x29], r14d
mov r8, r13
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140054ef4
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp + 7], rdi
cmp rdi, 0xffffffffffffffff
jne 0x1400547e2
cmp dword [rbp - 0x29], 0
jne 0x140054efa
mov dword [rbp - 0x15], 1
cmp rdi, 0xffffffffffffffff
jne 0x14005483e
call fcn.140046d00
mov r15d, setsockopt
mov qword [rbp + 0x1f], r14
mov eax, 2
mov word [rbp + 0x17], ax
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x1b], eax
mov word [rbp + 0x19], r14w
cmp rdi, 0xffffffffffffffff
jne 0x14005489e
call fcn.140046d00
mov dword [rbp - 0x29], 0x2719
mov qword [rbp - 0x21], rax
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x140054902
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x15]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.140046d00
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x1400547f4
mov r8, r13
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140054ec4
jmp 0x1400547f4
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, r15d
lea rdx, [rbp + 0x17]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
mov r14d, eax
call fcn.140046d00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], rbx
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
test r14d, r14d
jne 0x1400548fc
mov r8, r13
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140054eca
jmp 0x14005490c
cmp r14d, 0xffffffff
jne 0x14005490c
cmp dword [rbp - 0x29], 0
jne 0x140054f0b
cmp rdi, 0xffffffffffffffff
jne 0x14005492d
call fcn.140046d00
mov dword [rbp - 0x29], 0x2719
mov qword [rbp - 0x21], rax
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x14005499a
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rbp - 9], r15d
lea r8, [rbp - 9]
lea rdx, [rbp + 0x17]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
mov r14d, eax
movsxd r15, dword [rbp - 9]
call fcn.140046d00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], rbx
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
test r14d, r14d
jne 0x140054994
mov r8, r13
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140054ed0
jmp 0x1400549a4
cmp r14d, 0xffffffff
jne 0x1400549a4
cmp dword [rbp - 0x29], 0
jne 0x140054f1c
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp + 0x1b], eax
jne 0x1400549bf
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x1b], eax
cmp rdi, 0xffffffffffffffff
jne 0x1400549e0
call fcn.140046d00
mov dword [rbp - 0x29], 0x2719
mov qword [rbp - 0x21], rax
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x140054a42
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, 0x7fffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
mov r14d, eax
call fcn.140046d00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], rbx
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
test r14d, r14d
jne 0x140054a3c
mov r8, r13
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140054ed6
jmp 0x140054a4c
cmp r14d, 0xffffffff
jne 0x140054a4c
cmp dword [rbp - 0x29], 0
jne 0x140054f2d
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 1]
lea ecx, [rdx + 1]
lea r8d, [r9 + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r14, rax
call fcn.140046d00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], rbx
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
cmp r14, 0xffffffffffffffff
jne 0x140054aa4
mov r14, rsi
jmp 0x140054ad6
mov dword [rbp - 0x29], 0
mov r8, r13
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140054f3e
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 9], r14
cmp r14, 0xffffffffffffffff
jne 0x140054b05
cmp dword [rbp - 0x29], 0
jne 0x140054f44
call fcn.140046d00
mov dword [rbp - 0x29], 0x2719
mov qword [rbp - 0x21], rax
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x140054b69
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, r15d
lea rdx, [rbp + 0x17]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
mov r15d, eax
call fcn.140046d00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], rbx
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
test r15d, r15d
jne 0x140054b63
mov r8, r13
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140054edc
jmp 0x140054b73
cmp r15d, 0xffffffff
jne 0x140054b73
cmp dword [rbp - 0x29], 0
jne 0x140054f55
cmp rdi, 0xffffffffffffffff
jne 0x140054b8b
call fcn.140046d00
mov dword [rbp - 0x29], 0x2719
mov qword [rbp - 0x21], rax
jmp 0x140054bf4
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov r15, rax
call fcn.140046d00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], rbx
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
cmp r15, 0xffffffffffffffff
je 0x140054bfd
mov dword [rbp - 0x29], 0
mov r8, r13
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140054f66
mov qword [rbp - 0x21], r13
mov rsi, r15
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp + 0xf], rsi
cmp rsi, 0xffffffffffffffff
jne 0x140054c11
cmp dword [rbp - 0x29], 0
jne 0x140054f6c
mov dword [rbp - 0x11], 1
cmp r14, 0xffffffffffffffff
jne 0x140054c39
call fcn.140046d00
mov dword [rbp - 0x29], 0x2719
mov qword [rbp - 0x21], rax
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x140054cb0
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r8, [rbp - 0x11]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r15d, eax
call fcn.140046d00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], rbx
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
test r15d, r15d
js 0x140054cae
mov dword [rbp - 0x29], 0
mov r8, r13
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140054f7d
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
test r15d, r15d
je 0x140054cba
cmp dword [rbp - 0x29], 0
jne 0x140054f83
mov dword [rbp - 0x15], 1
cmp r14, 0xffffffffffffffff
jne 0x140054cf7
call fcn.140046d00
mov dword [rbp - 0x11], 1
cmp rsi, 0xffffffffffffffff
jne 0x140054d51
call fcn.140046d00
mov dword [rbp - 0x29], 0x2719
mov qword [rbp - 0x21], rax
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x140054dc8
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x15]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.140046d00
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140054ccc
mov r8, r13
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140054ee2
jmp 0x140054ccc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r8, [rbp - 0x11]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r15d, eax
call fcn.140046d00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], rbx
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
test r15d, r15d
js 0x140054dc6
mov dword [rbp - 0x29], 0
mov r8, r13
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140054f94
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
test r15d, r15d
je 0x140054dd2
cmp dword [rbp - 0x29], 0
jne 0x140054f9a
mov dword [rbp - 0x15], 1
cmp rsi, 0xffffffffffffffff
jne 0x140054e64
call fcn.140046d00
mov qword [r12], rsi
mov qword [r12 + 8], r14
cmp rdi, 0xffffffffffffffff
je 0x140054e37
mov dword [rbp - 0x29], 0
mov r8, r13
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140054ebe
mov qword [rbp - 0x21], r13
mov byte [rbp - 0x19], 0
lea r9, [rbp - 0x29]
mov r8b, 1
lea rdx, [rbp - 0x19]
mov rcx, rdi
call fcn.140039920
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140172190
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x15]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.140046d00
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140054de8
mov r8, r13
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140054ee8
jmp 0x140054de8
call fcn.14028ff34
nop
call fcn.14028ff34
int3
call fcn.14028ff34
int3
call fcn.14028ff34
int3
call fcn.14028ff34
nop
call fcn.14028ff34
nop
call fcn.14028ff34
int3
call fcn.14028ff34
nop
call fcn.14028ff34
int3
call fcn.14028ff34
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140043bf0
int3
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140043bf0
int3
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140043bf0
int3
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140043bf0
int3
call fcn.14028ff34
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140043bf0
int3
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140043bf0
int3
call fcn.14028ff34
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140043bf0
int3
call fcn.14028ff34
int3
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140043bf0
int3
call fcn.14028ff34
int3
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140043bf0
int3