Function at 0x180014430
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rdi
push r13
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x18008a480]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor r15d, r15d
mov rbx, rcx
mov dword [rsp + 0x68], 0xf689d7c8
xor r13d, r13d
mov dword [rsp + 0x6c], 0x436b6f1f
mov dword [rsp + 0x70], 0x4fe5538a
mov dword [rsp + 0x74], 0x22c351e3
mov dword [rsp + 0x54], 1
mov r10, qword [0x18008a130]
lea rdi, [0x18008a130]
cmp r10, rdi
je 0x1800144a7
test byte [r10 + 0x1c], 0x80
jne 0x18004fc5e
mov edx, dword [rbx + 0x23c]
test edx, edx
je 0x18004fc96
mov rax, qword [rbx + 0x10]
xor ecx, ecx
mov dword [rbp - 0x80], ecx
test rax, rax
jne 0x180027be4
mov r9, qword [rbx + 0x18]
test r9, r9
je 0x1800144f2
xor r8d, r8d
test ecx, ecx
jne 0x18004fcc1
cmp r8d, ecx
jne 0x1800144f2
cmp ecx, 0x40
jae 0x1800144f2
mov qword [rbp + r8*8 - 0x78], r9
mov ecx, dword [rbp - 0x80]
inc ecx
mov dword [rbp - 0x80], ecx
test ecx, ecx
je 0x18004fcd9
mov qword [rsp + 0x2e0], r12
cmp edx, 0x7530
ja 0x18004fd0b
mov eax, dword [rbx + 0x21c]
lea r12, [rbx + 0x274]
cmp eax, 0x5c0
jb 0x18004fd21
mov qword [rsp + 0x2d8], rsi
mov qword [rsp + 0x2e8], r14
cmp qword [rbx + 0x118], r13
je 0x18002768e
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.18001476c
mov r14d, eax
test eax, eax
je 0x18003d1f5
mov rcx, qword [rbx + 0x110]
mov rsi, qword [rcx + 0x30]
cmp eax, 2
je 0x18004fdcc
mov rax, qword [rsi + 0x1b8]
lea r15, [rsi + 0x120]
mov qword [rsi + 0x1c0], rax
mov r8d, dword [rbx + 0x23c]
mov rdx, qword [rbx + 0xb8]
lea rax, [rsp + 0x54]
mov r13d, 1
mov r9d, r13d
mov qword [rsp + 0x20], rax
call fcn.1800147fc
mov edi, eax
test eax, eax
jne 0x18004fddf
mov rax, qword [rsi + 0x1c0]
cmp r14d, 2
je 0x18004fe21
mov qword [rsi + 0x1b8], rax
cmp dword [rsp + 0x54], 0
je 0x18001471b
lea rdi, [0x18008a130]
cmp dword [rbx + 0x20c], 0
je 0x1800145ef
lea rcx, [rbx + 0x2c]
call fcn.1800124b0
mov rcx, qword [0x18008a130]
cmp rcx, rdi
je 0x180014608
test dword [rcx + 0x1c], 0x400
jne 0x18004fe2d
mov eax, dword [rbx + 0x21c]
mov dword [rbx + 0x1a0], r14d
mov qword [rbx + 0x108], r12
lea rsi, [rbx + 0xc8]
mov qword [rsp + 0x40], 0
lea rcx, [rbx + 0x100]
mov dword [rcx], eax
lea rax, [rbx + 0x2c]
mov qword [rsi + 0x10], rcx
mov qword [rsi], rax
mov dword [rsi + 0x18], 1
mov eax, dword [rbx + 0x4c]
mov dword [rsi + 8], eax
mov qword [rsp + 0x38], 0
lea rax, [rbx + 0x160]
mov qword [rsi + 0x28], rax
lea rax, [rsp + 0x50]
mov dword [rsi + 0x20], 0x40
mov qword [rsp + 0x30], rax
mov dword [rsi + 0x30], 0
mov rcx, qword [rbx + 0xb8]
lea rax, [rsp + 0x60]
lea r8, [rsp + 0x68]
mov r9d, send
mov edx, 0xc8000006
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x18004fe5d
mov rcx, qword [0x18008a130]
cmp rcx, rdi
je 0x1800146ca
test dword [rcx + 0x1c], 0x400
jne 0x18004fea7
mov rdi, qword [rsp + 0x60]
mov dword [rsp + 0x50], 0
mov rcx, rdi
call qword [sym.DNSAPI.dll_DnsNotifyResolverClusterIp]
mov rcx, qword [rbx + 0xb8]
lea r8, [rsp + 0x50]
mov r9, r15
mov rdx, rsi
mov qword [rsp + 0x20], 0
call rdi
cmp eax, 0xffffffff
jne 0x180024261
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
test eax, eax
je 0x180024263
test r13d, r13d
je 0x18001472b
mov rcx, qword [rbx + 0x110]
mov edx, edi
call fcn.1800149f0
mov edi, eax
mov eax, edi
mov rsi, qword [rsp + 0x2d8]
mov r14, qword [rsp + 0x2e8]
mov r12, qword [rsp + 0x2e0]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.180001000
add rsp, 0x2a0
pop r15
pop r13
pop rdi
pop rbx
pop rbp
ret
xor edi, edi
test r15, r15
jne 0x180014716
movzx eax, word [rsp + 0x50]
mov rcx, rbx
mov word [rbx + 0x272], ax
call fcn.180016020
jmp 0x180014716
mov ecx, dword [rbx + 0x23c]
mov eax, 0x10624dd3
xor r9d, r9d
xor r8d, r8d
mul ecx
shr edx, 6
mov dword [rsp + 0x58], edx
imul eax, edx, 0x3e8
sub ecx, eax
lea rdx, [rbp - 0x80]
imul eax, ecx, 0x3e8
mov dword [rsp + 0x5c], eax
lea rax, [rsp + 0x58]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x18004fd57
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.18001476c
mov r14d, eax
test eax, eax
jne 0x1800145dd
jmp 0x18003d1f5
mov ecx, 1
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x80], ecx
jmp 0x1800144c7
mov eax, 0x5b4
jmp 0x18001472d
mov eax, dword [rcx + 0x23c]
mov r9, rcx
lea r8, [0x180021620]
mov dword [rsp + 0x28], eax
mov eax, dword [rcx + 0x21c]
mov rcx, qword [r10 + 0x10]
mov edx, 0x4d
mov dword [rsp + 0x20], eax
call fcn.18005c408
mov r10, qword [0x18008a130]
jmp 0x1800144a7
cmp r10, rdi
je 0x18004fcb7
test byte [r10 + 0x1c], 0x80
je 0x18004fcb7
mov rcx, qword [r10 + 0x10]
lea r8, [0x180021620]
mov edx, 0x4e
call fcn.180058818
mov eax, 0x5b4
jmp 0x180014745
cmp qword [rbp + r8*8 - 0x78], r9
je 0x1800144db
inc r8d
cmp r8d, ecx
jb 0x18004fcc1
jmp 0x1800144db
cmp r10, rdi
je 0x18004fd00
test dword [r10 + 0x1c], 0x10000000
je 0x18004fd00
mov rcx, qword [r10 + 0x10]
lea r8, [0x180021620]
mov edx, 0x4f
mov r9, rbx
call fcn.18005b42c
mov eax, 0x57
jmp 0x180014745
mov dword [rbx + 0x23c], 0x7530
mov r10, qword [0x18008a130]
jmp 0x18001450e
cmp r10, rdi
je 0x18004fd4c
test dword [r10 + 0x1c], 0x10000000
je 0x18004fd4c
mov rcx, qword [r10 + 0x10]
lea r8, [0x180021620]
mov edx, 0x50
mov r9, rbx
mov dword [rsp + 0x20], eax
call fcn.180058cf4
mov eax, 0x57
jmp 0x18001473d
jns 0x18004fd95
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rcx, qword [0x18008a130]
cmp rcx, rdi
je 0x18004fd8e
test dword [rcx + 0x1c], 0x400
je 0x18004fd8e
mov rcx, qword [rcx + 0x10]
lea r8, [0x180021620]
mov edx, 0x51
mov r9d, eax
call fcn.180058fb0
mov eax, ebx
jmp 0x18001472d
mov rcx, qword [0x18008a130]
cmp rcx, rdi
je 0x18004fdc2
test dword [rcx + 0x1c], 0x400
je 0x18004fdc2
mov rcx, qword [rcx + 0x10]
lea r8, [0x180021620]
mov edx, 0x52
mov r9, rbx
call fcn.18005b42c
mov edi, 0x5b4
jmp 0x18001472b
mov rax, qword [rsi + 0x1b0]
lea r15, [rsi + 0x140]
jmp 0x18001457c
mov rcx, qword [0x18008a130]
lea rax, [0x18008a130]
cmp rcx, rax
je 0x18001471b
test dword [rcx + 0x1c], 0x400
je 0x18001471b
mov rcx, qword [rcx + 0x10]
lea r8, [0x180021620]
mov edx, 0x53
mov r9d, edi
call fcn.180058fb0
nop
jmp 0x18001471b
mov qword [rsi + 0x1b0], rax
jmp 0x1800145cb
mov eax, dword [rbx + 0x18]
mov r9d, dword [rbx + 0x20c]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x10]
lea r8, [0x180021620]
mov edx, 0x54
mov dword [rsp + 0x20], eax
call fcn.18005b3d8
nop
jmp 0x180014608
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 0x180014716
test dword [rcx + 0x1c], 0x400
je 0x180014716
mov rcx, qword [rcx + 0x10]
lea r8, [0x180021620]
mov edx, 0x55
mov r9d, edi
call fcn.180058fb0
nop
jmp 0x180014716
mov rcx, qword [rcx + 0x10]
lea r8, [0x180021620]
mov edx, 0x56
mov r9, rbx
call fcn.18005b42c
nop
jmp 0x1800146ca