Function at 0x140085540
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
sub rsp, 0x528
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xde
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1401a7008]
xor rax, rbp
mov qword [rbp + 0x4e8], rax
lea rcx, [0x1401b9255]
call fcn.14007a304
lea rax, [0x1401aab30]
mov qword [rbp + 8], rax
lea rax, [0x1401aa3a0]
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x84], 1
mov rax, qword [rbp + 0x68]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x2e4], ax
mov byte [rbp + 0x304], 0
mov byte [rbp + 0x324], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [0x1401aa420]
mov r8d, 0xffffffff
mov edx, 0xffffffff
mov ecx, 0xffffffff
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [0x1401aa6c8], rax
cmp qword [0x1401aa6c8], 0xffffffffffffffff
jne 0x14008563b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [rbp + 8]
mov r8d, eax
mov edx, 0xc0054036
lea rcx, [rbp + 0xd0]
call fcn.14007907b
movzx eax, al
test eax, eax
je 0x140085634
lea rdx, [rbp + 0xd0]
mov ecx, 0xc0054023
call fcn.14007826b
mov al, 1
jmp 0x140085bbb
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x84]
mov r8d, 0xffffff7f
mov edx, 0xffff
mov rcx, qword [0x1401aa6c8]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 0xa4], eax
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x84]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [0x1401aa6c8]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 0xa4], eax
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x84]
mov r8d, 1
mov edx, 6
mov rcx, qword [0x1401aa6c8]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 0xa4], eax
movzx eax, word [rbp + 0x2e4]
mov r9d, eax
lea r8, [0x140173d7c]
mov edx, 6
lea rcx, [0x1401aa76a]
call fcn.140078009
mov rax, qword [rbp + 0x68]
add rax, 4
mov r9d, 0x2e
lea r8, [0x1401aa70e]
mov rdx, rax
mov ecx, 2
call fcn.140077f5a
test rax, rax
jne 0x140085748
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [rbp + 8]
mov r8d, eax
mov edx, 0xc005402a
lea rcx, [rbp + 0xd0]
call fcn.14007907b
movzx eax, al
test eax, eax
je 0x140085741
lea rdx, [rbp + 0xd0]
mov ecx, 0xc0054023
call fcn.14007826b
mov al, 1
jmp 0x140085bbb
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov qword [0x1401aa6c0], rax
cmp qword [0x1401aa6c0], 0
jne 0x14008579e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [rbp + 8]
mov r8d, eax
mov edx, 0xc0054010
lea rcx, [rbp + 0xd0]
call fcn.14007907b
movzx eax, al
test eax, eax
je 0x140085795
lea rdx, [rbp + 0xd0]
mov ecx, 0xc0054023
call fcn.14007826b
mov al, 1
jmp 0x140085bbb
lea rcx, [0x1401aa6f8]
call fcn.1400780bd
xor r8d, r8d
xor edx, edx
mov cx, 1
call fcn.14007821b
mov eax, 8
imul rax, rax, 0
mov rcx, qword [0x1401aa798]
mov qword [rbp + rax + 0x28], rcx
mov eax, 8
imul rax, rax, 1
mov rcx, qword [0x1401aa790]
mov qword [rbp + rax + 0x28], rcx
mov eax, 8
imul rax, rax, 2
mov rcx, qword [0x1401aaa28]
mov qword [rbp + rax + 0x28], rcx
mov eax, 8
imul rax, rax, 3
mov rcx, qword [0x1401aa6c0]
mov qword [rbp + rax + 0x28], rcx
mov r8d, 0x21
mov rdx, qword [0x1401aa6c0]
mov rcx, qword [0x1401aa6c8]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x14008588b
lea rax, [0x1401aa70e]
mov qword [rbp + 0x348], rax
lea rax, [0x1401aa76a]
mov qword [rbp + 0x350], rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [rbp + 0x348]
mov r8d, eax
mov edx, 0xc0054015
lea rcx, [rbp + 0xd0]
call fcn.14007907b
movzx eax, al
test eax, eax
je 0x14008587f
lea rdx, [rbp + 0xd0]
mov ecx, 0xc0054023
call fcn.14007826b
mov byte [rbp + 0x304], 1
jmp 0x140085b08
mov dword [rsp + 0x20], 0
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp + 0x28]
mov ecx, 4
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov dword [rbp + 0x84], eax
mov eax, dword [rbp + 0x84]
mov dword [rbp + 0x4e4], eax
cmp dword [rbp + 0x4e4], 0
je 0x1400858ee
cmp dword [rbp + 0x4e4], 1
je 0x14008592a
cmp dword [rbp + 0x4e4], 2
je 0x140085966
cmp dword [rbp + 0x4e4], 3
je 0x140085972
jmp 0x140085ab1
lea r9, [rbp + 8]
xor r8d, r8d
mov edx, 0xc0054040
lea rcx, [rbp + 0xd0]
call fcn.14007907b
movzx eax, al
test eax, eax
je 0x14008591e
lea rdx, [rbp + 0xd0]
mov ecx, 0xc0054023
call fcn.14007826b
mov byte [rbp + 0x304], 1
jmp 0x140085aee
lea r9, [rbp + 8]
xor r8d, r8d
mov edx, 0xc005403e
lea rcx, [rbp + 0xd0]
call fcn.14007907b
movzx eax, al
test eax, eax
je 0x14008595a
lea rdx, [rbp + 0xd0]
mov ecx, 0xc0054023
call fcn.14007826b
mov byte [rbp + 0x304], 1
jmp 0x140085aee
mov byte [rbp + 0x324], 1
jmp 0x140085aee
lea r8, [0x1401aa694]
mov rdx, qword [0x1401aa6c0]
mov rcx, qword [0x1401aa6c8]
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
je 0x1400859d3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [rbp + 8]
mov r8d, eax
mov edx, 0xc0054045
lea rcx, [rbp + 0xd0]
call fcn.14007907b
movzx eax, al
test eax, eax
je 0x1400859c7
lea rdx, [rbp + 0xd0]
mov ecx, 0xc0054023
call fcn.14007826b
mov byte [rbp + 0x304], 1
jmp 0x140085aaf
mov rcx, qword [0x1401aa6c0]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
test eax, eax
jne 0x140085a26
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [rbp + 8]
mov r8d, eax
mov edx, 0xc0054046
lea rcx, [rbp + 0xd0]
call fcn.14007907b
movzx eax, al
test eax, eax
je 0x140085a1a
lea rdx, [rbp + 0xd0]
mov ecx, 0xc0054023
call fcn.14007826b
mov byte [rbp + 0x304], 1
jmp 0x140085aaf
cmp dword [0x1401aa694], 0
jne 0x140085a36
jmp 0x140085aee
cmp dword [0x1401aa694], 0x20
jne 0x140085a48
mov byte [rbp + 0x324], 1
jmp 0x140085aaf
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1401aa698]
cmp dword [rcx + rax], 0
jne 0x140085a72
lea rcx, [rbp + 0x324]
call fcn.140086e20
mov byte [rbp + 0x304], al
jmp 0x140085aaf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [rbp + 8]
mov r8d, eax
mov edx, 0xc0054046
lea rcx, [rbp + 0xd0]
call fcn.14007907b
movzx eax, al
test eax, eax
je 0x140085aa8
lea rdx, [rbp + 0xd0]
mov ecx, 0xc0054023
call fcn.14007826b
mov byte [rbp + 0x304], 1
jmp 0x140085aee
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [rbp + 8]
mov r8d, eax
mov edx, 0xc0054044
lea rcx, [rbp + 0xd0]
call fcn.14007907b
movzx eax, al
test eax, eax
je 0x140085ae7
lea rdx, [rbp + 0xd0]
mov ecx, 0xc0054023
call fcn.14007826b
mov byte [rbp + 0x304], 1
movzx eax, byte [rbp + 0x324]
test eax, eax
jne 0x140085b08
movzx eax, byte [rbp + 0x304]
test eax, eax
je 0x14008580c
movzx eax, byte [0x1401aa77f]
test eax, eax
je 0x140085b21
xor r8d, r8d
xor edx, edx
mov cx, 2
call fcn.14007821b
movzx eax, byte [rbp + 0x304]
test eax, eax
je 0x140085b38
mov dword [rbp + 0x4e4], 3
jmp 0x140085b42
mov dword [rbp + 0x4e4], 4
xor r8d, r8d
xor edx, edx
movzx ecx, word [rbp + 0x4e4]
call fcn.14007821b
cmp qword [0x1401aa6c8], 0xffffffffffffffff
je 0x140085b9d
cmp qword [0x1401aa6c0], 0
je 0x140085b7e
xor r8d, r8d
mov rdx, qword [0x1401aa6c0]
mov rcx, qword [0x1401aa6c8]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov edx, 2
mov rcx, qword [0x1401aa6c8]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [0x1401aa6c8]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp qword [0x1401aa6c0], 0
je 0x140085bb4
mov rcx, qword [0x1401aa6c0]
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
movzx eax, byte [rbp + 0x304]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140172ab0]
call fcn.140079a35
mov rax, rdi
mov rcx, qword [rbp + 0x4e8]
xor rcx, rbp
call fcn.140078919
lea rsp, [rbp + 0x4f8]
pop rdi
pop rbp
ret