Function at 0x1800155c0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x18008a480]
xor rax, rsp
mov qword [rbp - 0x10], rax
movzx edi, r9w
mov r15, r8
mov r14d, edx
mov rsi, rcx
mov rcx, qword [0x18008a130]
lea rax, [0x18008a130]
cmp rcx, rax
je 0x18001560c
test byte [rcx + 0x1c], 8
jne 0x18004f510
lea r9, [rbp - 0x38]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov rcx, rsi
mov dword [rbp - 0x38], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
xor r13d, r13d
test r15, r15
jne 0x18004f53f
xor eax, eax
mov qword [rbp - 0x30], rax
mov word [rbp - 0x30], r14w
mov qword [rbp - 0x28], rax
lea ebx, [rax + 0x10]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], eax
cmp r14d, 0x17
jne 0x180015661
lea ebx, [rax + 0x1c]
movzx r12d, word [rbp - 0x2e]
test di, di
lea rdx, [rbp - 0x30]
cmovne r12w, di
mov r8d, ebx
mov rcx, rsi
mov word [rbp - 0x2e], r12w
call qword [sym.imp.WS2_32.dll_bind]
mov edi, eax
test r12w, r12w
jne 0x180031938
test eax, eax
jne 0x18004f617
mov rax, qword [0x18008a130]
lea rcx, [0x18008a130]
cmp rax, rcx
je 0x1800156b4
test byte [rax + 0x1c], 8
jne 0x18004f653
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180001000
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test eax, eax
je 0x180015697
jmp 0x18003d164
jmp 0x18004f552
mov rcx, qword [rcx + 0x10]
movzx eax, di
mov edx, 0x3f
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea r8, [0x180082740]
mov r9d, esi
mov dword [rsp + 0x20], r14d
call fcn.18005ecc8
nop
jmp 0x18001560c
lea rcx, [rbp - 0x30]
mov r8, r15
call fcn.180069324
mov ebx, eax
jmp 0x180015661
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x18008a130]
lea rax, [0x18008a130]
cmp rcx, rax
je 0x18004f5a9
test byte [rcx + 0x1c], 8
je 0x18004f5a9
mov rcx, r15
call fcn.180069264
mov dword [rsp + 0x38], edi
movzx ecx, r12w
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov rcx, qword [0x18008a130]
mov rcx, qword [rcx + 0x10]
mov edx, 0x40
mov r9d, esi
mov dword [rsp + 0x20], r14d
call fcn.1800628d8
cmp dword [rbp - 0x38], r13d
je 0x18004f60d
mov edi, 4
lea r9, [rbp - 0x38]
mov edx, 0xffff
lea r8d, [rdi - 9]
mov rcx, rsi
mov dword [rbp - 0x38], r13d
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rbp - 0x38]
mov r8d, edi
mov edx, 0xffff
mov rcx, rsi
mov dword [rbp - 0x38], 1
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rdx, [rbp - 0x30]
mov r8d, ebx
mov rcx, rsi
mov dword [rbp - 0x38], r13d
call qword [sym.imp.WS2_32.dll_bind]
mov edi, eax
jmp 0x180031938
mov edi, 0x267b
jmp 0x1800156b4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rax, qword [0x18008a130]
lea rcx, [0x18008a130]
cmp rax, rcx
je 0x1800156b4
test byte [rax + 0x1c], 8
je 0x1800156b4
mov rcx, r15
call fcn.180069264
mov edx, 0x41
mov dword [rsp + 0x30], edi
jmp 0x18004f671
movzx ecx, word [rbp - 0x2e]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, r15
movzx ebx, ax
call fcn.180069264
mov edx, 0x44
mov dword [rsp + 0x30], ebx
mov rcx, qword [0x18008a130]
mov qword [rsp + 0x28], rax
mov r9d, esi
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], r14d
call fcn.180062ab0
nop
jmp 0x1800156b4