Function at 0x140045b00
Capabilities:
Get socket status

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x4d8], rbx
mov rax, qword [0x140194020]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov qword [rsp + 0x30], r8
mov rbp, rcx
lea r13, [rcx + 0x30]
mov qword [rsp + 0x38], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x40], 1
cmp byte [rbp + 0x198], 0
jne 0x140045ed5
lea rsi, [rbp + 0x148]
mov rax, qword [rsi]
xor edi, edi
mov dword [rax], edi
mov qword [rsi + 0x10], 0xffffffffffffffff
mov rax, qword [rbp + 0x160]
mov dword [rax], edi
mov qword [rbp + 0x170], 0xffffffffffffffff
mov rax, qword [r13 + 0x148]
mov dword [rax], edi
mov qword [r13 + 0x158], 0xffffffffffffffff
mov rbx, qword [rbp + 0x58]
mov ecx, edi
mov r8, qword [rsi]
mov edx, dword [r8]
test edx, edx
je 0x140045bbf
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x140045bd8
inc ecx
cmp ecx, edx
jb 0x140045bb0
inc edx
mov rcx, rsi
call fcn.140044ee0
mov rcx, qword [rsi]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rbx
mov rax, qword [rsi]
inc dword [rax]
mov rbx, qword [rbp + 0x190]
test rbx, rbx
je 0x140045bfe
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x140045d66
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140045be4
xor bl, bl
lea r15, [rbp + 0x158]
mov r12, rsi
lea r13, [rbp + 0x68]
lea rsi, [rbp + 0x78]
mov qword [rsp + 0x58], 3
nop dword [rax + rax]
mov r14, rdi
test bl, bl
jne 0x140045c2d
cmp qword [rsi], 0
je 0x140045c2f
mov bl, 1
mov rdx, r13
mov rcx, r12
call fcn.140044cf0
mov rdi, qword [r15]
cmp rdi, r14
cmovbe rdi, r14
add r13, 0x38
add r12, 0x18
add rsi, 0x38
add r15, 0x18
sub qword [rsp + 0x58], 1
jne 0x140045c20
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x160]
call fcn.140044cf0
mov rbx, qword [rbp + 0x170]
cmp rbx, rdi
cmovbe rbx, rdi
lea rsi, [rbp + 0x178]
lea rdx, [rbp + 0x110]
mov rcx, rsi
call fcn.140044cf0
mov r15, qword [rbp + 0x188]
cmp r15, rbx
cmovbe r15, rbx
xor eax, eax
mov qword [rsp + 0x50], rax
lea ecx, [rax + 1]
mov rbx, qword [rbp + 0x190]
test rbx, rbx
je 0x140045cd6
nop word [rax + rax]
mov rax, qword [rbx]
mov edx, ecx
mov rcx, rbx
call qword [rax + Ordinal_26]
mov ecx, eax
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140045cc0
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x50], edx
imul eax, edx, 0xf4240
sub ecx, eax
mov dword [rsp + 0x54], ecx
lea r13, [rbp + 0x30]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1400e5a00
mov rbx, qword [rsi]
mov rdi, qword [rbp + 0x160]
mov r14, qword [rbp + 0x148]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test r14, r14
jne 0x140045d6d
test rdi, rdi
jne 0x140045d6d
test rbx, rbx
jne 0x140045d6d
mov eax, 0x10624dd3
imul dword [rsp + 0x54]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, dword [rsp + 0x50], 0x3e8
add ecx, eax
mov eax, 1
cmove ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400e5a00
jmp 0x140045e41
mov bl, 1
jmp 0x140045c00
cmp dword [rsp + 0x50], 0
jne 0x140045d8c
mov ecx, dword [rsp + 0x54]
lea eax, [rcx - 1]
mov edx, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, edx
mov dword [rsp + 0x54], ecx
lea ecx, [r15 + 1]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rdi
mov rdx, r14
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.1400e5a00
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
js 0x140045dc1
call fcn.1400e5a00
test ebx, ebx
jle 0x140045e41
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140045e41
lea rax, [rsp + 0x80]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], 0x400
xor eax, eax
mov qword [rsp + 0x58], rax
call fcn.1400e5a00
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x68]
mov rcx, qword [rbp + 0x58]
call fcn.140044360
cmp eax, 0x400
jne 0x140045e3f
nop dword [rax]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x68]
mov rcx, qword [rbp + 0x58]
call fcn.140044360
cmp eax, 0x400
je 0x140045e20
dec ebx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x40], 1
mov r14, qword [rsp + 0x30]
test ebx, ebx
jle 0x140045eab
mov r8, r14
lea rdx, [rbp + 0x110]
mov rcx, rsi
call fcn.140044dc0
mov r8, r14
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x160]
call fcn.140044dc0
mov ebx, 2
lea rdi, [rbp + 0xd8]
nop dword [rax]
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.140044dc0
sub rdi, 0x38
sub rsi, 0x18
sub ebx, 1
jns 0x140045e90
mov rbx, qword [rbp + 0x190]
test rbx, rbx
je 0x140045ed5
nop word [rax + rax]
mov rax, qword [rbx]
mov rdx, r14
mov rcx, rbx
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140045ec0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400acdf0
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret