Function at 0x1800149d0
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r15
lea rbp, [rax - 0x638]
sub rsp, 0x720
mov rax, qword [0x18003d030]
xor rax, rsp
mov qword [rbp + 0x610], rax
mov rdi, qword [0x18003f3e0]
and dword [rsp + 0x30], 0
and dword [rsp + 0x38], 0
mov rsi, rcx
mov dword [rsp + 0x3c], 0x64
test rdi, rdi
je 0x180014cae
mov r12d, 1
lea r15d, [r12 + 3]
cmp dword [rdi + 4], 2
jne 0x180014ca1
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_htonl]
and dword [rbp + 0x400], 0
and dword [rbp + 0x1f0], 0
and dword [rbp - 0x20], 0
mov dword [rsp + 0x30], eax
mov rax, qword [rdi + 0x20]
mov qword [rbp + 0x408], rax
mov dword [rbp + 0x400], r12d
mov rax, qword [rdi + 0x20]
mov qword [rbp + 0x1f8], rax
mov dword [rbp + 0x1f0], r12d
mov rax, qword [rdi + 0x20]
mov qword [rbp - 0x18], rax
lea rax, [rsp + 0x38]
lea r9, [rbp + 0x1f0]
lea r8, [rbp + 0x400]
lea rdx, [rbp - 0x20]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x20], r12d
call qword [sym.imp.WS2_32.dll_select]
cmp dword [rdi + 0x10], 2
mov rcx, qword [rdi + 0x20]
jne 0x180014b62
lea rdx, [rbp - 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180014ca1
mov rcx, qword [rdi + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
call fcn.18001498c
xor r9d, r9d
mov r8d, 0x2bf20
mov rcx, rbx
mov edx, eax
mov dword [rsp + 0x28], r12d
and dword [rsp + 0x20], 0
mov dword [rsp + 0x30], eax
call fcn.1800143cc
lea rcx, [rsp + 0x40]
mov edx, 0x80
call fcn.18000cf40
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.18000cf70
mov edx, dword [rdi + 0x14]
lea rcx, [rsp + 0x40]
call fcn.18000cf70
lea rcx, [rsp + 0x40]
call fcn.180014238
lea rcx, [rsp + 0x40]
mov ebx, eax
call fcn.18000d000
mov r8d, reloc.WS2_32.dll_socket
mov rcx, rax
mov edx, ebx
call rsi
lea rcx, [rsp + 0x40]
call fcn.18000cf1c
jmp 0x180014ca1
cmp dword [rdi + 0x10], 3
jne 0x180014bf9
lea rdx, [rbp - 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180014ca1
mov rcx, qword [rdi + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
lea rcx, [rbp - 0x60]
mov rdx, rax
call fcn.180013c1c
mov r8, rsi
mov rcx, qword [rax]
mov rdx, rax
mov qword [rsp + 0x60], rcx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x68], rcx
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x70], rcx
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x78], rcx
mov rcx, qword [rax + 0x20]
mov qword [rbp - 0x80], rcx
mov rcx, qword [rax + 0x28]
mov rax, qword [rax + 0x30]
mov qword [rbp - 0x70], rax
mov rax, qword [rdx + 0x38]
mov edx, dword [rdi + 0x14]
mov qword [rbp - 0x78], rcx
lea rcx, [rsp + 0x60]
or edx, 0x110000
mov qword [rbp - 0x68], rax
call fcn.1800133cc
jmp 0x180014ca1
lea rdx, [rbp + 0x1f0]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x180014c90
mov rcx, qword [rdi + 0x20]
lea rdx, [rbp + 0x400]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180014c2d
mov dword [rdi + 4], r12d
mov r8d, 6
jmp 0x180014c97
mov rcx, qword [rdi + 0x20]
lea rdx, [rbp - 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180014c82
mov rbx, qword [rdi + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov edx, r15d
lea rcx, [rsp + 0x30]
mov qword [rdi + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x180014c6b
and dword [rdi + 4], 0
mov r8d, r15d
jmp 0x180014c75
mov dword [rdi + 4], r12d
mov r8d, 6
call rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180014ca1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rdi + 0x18]
cmp eax, dword [rdi + 8]
jbe 0x180014ca1
and dword [rdi + 4], 0
mov r8d, r15d
lea rcx, [rsp + 0x30]
mov edx, r15d
call rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x180014a33
mov rcx, qword [rbp + 0x610]
xor rcx, rsp
call fcn.18001a200
lea r11, [rsp + 0x720]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r12
pop rbp
ret