Function at 0x140044220
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
and qword [rbp + 0x67], 0
or r13d, 0xffffffff
movsxd rax, dword [rcx + 0x6098]
mov esi, 1
mov dword [rbp + 0x77], 0x10000
mov rdi, rdx
mov dword [rbp + 0x7f], esi
mov rbx, rcx
cmp eax, r13d
je 0x14004427a
mov rdx, rax
call qword [rcx + 0x5fb0]
mov dword [rbx + 0x6098], r13d
mov rcx, rbx
mov dword [rbx + 0x609c], r13d
mov dword [rbx + 0x191c8], esi
call fcn.14004385c
test eax, eax
je 0x1400442bb
mov rcx, rbx
call fcn.140043ac4
lea r8, str.TCP_init_failed_in_soap_bind__
mov rdx, rax
mov r9d, reloc.WS2_32.dll_socket
mov rcx, rbx
call fcn.14004d928
mov eax, r13d
jmp 0x140044605
xor edx, edx
lea rcx, [rbp - 9]
lea r8d, [rdx + 0x30]
call fcn.1400bbca0
mov al, byte [rbx + 0xc]
mov edx, 0xe76
and dword [rbp - 5], 0
and al, 4
neg al
mov dword [rbp - 9], esi
mov rcx, rbx
mov dword [rbx + 0x191c8], 2
sbb eax, eax
neg eax
add eax, esi
mov dword [rbp - 1], eax
call fcn.140048f18
mov rsi, rax
mov rax, qword [0x140184818]
test rax, rax
jne 0x140044315
xor ecx, ecx
call fcn.14003885c
mov qword [0x140184818], rax
lea r9, [rbp + 0x67]
mov rdx, rsi
lea r8, [rbp - 9]
mov rcx, rdi
call rax
mov ecx, eax
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rbp + 0x67]
test rdi, rdi
je 0x140044383
movups xmm0, xmmword [rdi]
mov r8, qword [rdi + 0x10]
lea r14, [rbx + 0x1b2c8]
mov rdx, qword [rdi + 0x20]
mov rcx, r14
movups xmmword [rbp - 0x39], xmm0
call fcn.1400bb850
mov rax, qword [0x140184810]
mov r15, qword [rdi + 0x10]
mov qword [rbx + 0x1b348], r15
test rax, rax
jne 0x14004437c
lea ecx, [rax + 2]
call fcn.14003885c
mov qword [0x140184810], rax
mov rcx, rdi
call rax
jmp 0x14004438b
mov r14, qword [rbp - 0x19]
mov r15, qword [rbp - 0x29]
test esi, esi
je 0x1400443cb
and qword [rsp + 0x30], 0
lea rdi, [0x140184820]
mov r9d, 0x400
mov r8d, esi
mov dword [rsp + 0x28], r9d
xor edx, edx
mov ecx, 0x12ff
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea r8, str.getaddrinfo_failed_in_soap_bind__
mov rdx, rdi
jmp 0x1400442a5
mov r8d, dword [rbp - 0x2d]
mov edx, dword [rbp - 0x31]
mov ecx, dword [rbp - 0x35]
call qword [sym.imp.WS2_32.dll_socket]
and dword [rbx + 0x191c8], 0
mov dword [rbx + 0x6098], eax
cmp eax, r13d
jne 0x14004440d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov dword [rbx + 0x191cc], eax
call fcn.140043ac4
lea r8, str.socket_failed_in_soap_bind__
jmp 0x1400442a2
mov edi, 4
test byte [rbx + 0xc], dil
je 0x14004441e
mov dword [rbx + 0x609c], eax
mov r8d, dword [rbx + 0x60]
mov esi, 0xffff
test r8d, r8d
je 0x140044463
movsxd rcx, eax
lea r9, [rbp + 0x7f]
mov edx, esi
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140044463
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov dword [rbx + 0x191cc], eax
call fcn.140043ac4
lea r8, str.setsockopt_failed_in_soap_bind__
jmp 0x1400442a2
mov eax, dword [rbx + 8]
or eax, dword [rbx + 0xc]
test al, 0x10
je 0x1400444ae
movsxd rcx, dword [rbx + 0x6098]
lea r9, [rbp + 0x7f]
mov r8d, 8
mov dword [rsp + 0x20], edi
mov edx, esi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400444ae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov dword [rbx + 0x191cc], eax
call fcn.140043ac4
lea r8, str.setsockopt_SO_KEEPALIVE_failed_in_soap_bind__
jmp 0x1400442a2
movsxd rcx, dword [rbx + 0x6098]
lea r9, [rbp + 0x77]
mov r8d, 0x1001
mov dword [rsp + 0x20], edi
mov edx, esi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400444ef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov dword [rbx + 0x191cc], eax
call fcn.140043ac4
lea r8, str.setsockopt_SO_SNDBUF_failed_in_soap_bind__
jmp 0x1400442a2
movsxd rcx, dword [rbx + 0x6098]
lea r9, [rbp + 0x77]
mov r8d, 0x1002
mov dword [rsp + 0x20], edi
mov edx, esi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140044530
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov dword [rbx + 0x191cc], eax
call fcn.140043ac4
lea r8, str.setsockopt_SO_RCVBUF_failed_in_soap_bind__
jmp 0x1400442a2
test byte [rbx + 0xc], dil
jne 0x140044578
movsxd rcx, dword [rbx + 0x6098]
lea r9, [rbp + 0x7f]
mov edx, 6
mov dword [rsp + 0x20], edi
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140044578
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov dword [rbx + 0x191cc], eax
call fcn.140043ac4
lea r8, str.setsockopt_TCP_NODELAY_failed_in_soap_bind__
jmp 0x1400442a2
movsxd rcx, dword [rbx + 0x6098]
mov r8d, r15d
and dword [rbx + 0x191c8], 0
mov rdx, r14
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1400445be
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov dword [rbx + 0x191cc], eax
call fcn.1400448b0
mov rcx, rbx
call fcn.140043ac4
lea r8, str.bind_failed_in_soap_bind__
jmp 0x1400442a2
test byte [rbx + 0xc], dil
jne 0x1400445ff
movsxd rcx, dword [rbx + 0x6098]
xor edx, edx
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1400445ff
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov dword [rbx + 0x191cc], eax
call fcn.1400448b0
mov rcx, rbx
call fcn.140043ac4
lea r8, str.listen_failed_in_soap_bind__
jmp 0x1400442a2
mov eax, dword [rbx + 0x6098]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret