Function at 0x1400033b0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push rbp
mov rbp, rsp
sub rsp, 0xd00
lea rdx, [rbp]
sub rdx, rsp
sub rsp, 0x20
lea rcx, [rsp + 0x20]
call fcn.1400045aa
add rsp, 0x20
sub rsp, 0x20
mov rcx, 0
mov rdx, 0x10000
mov r8, 0x3000
mov r9, 4
call qword [sym.imp.kernel32.dll_VirtualAlloc]
add rsp, 0x20
mov qword [rbp - 0x670], rax
sub rsp, 0x20
mov rcx, 0
mov rdx, 0x10000
mov r8, 0x3000
mov r9, 4
call qword [sym.imp.kernel32.dll_VirtualAlloc]
add rsp, 0x20
mov qword [rbp - 0x678], rax
mov r12, qword [rbp + 0x18]
mov eax, dword [r12]
lea rcx, [0x14050633c]
sub rsp, 0x20
lea rcx, [rcx + rax*8]
lea rdx, [rbp - 0x668]
mov r8, 8
call fcn.140004a64
add rsp, 0x20
mov rdx, qword [rbp - 0x668]
lea rdx, [rdx + 0x600]
mov qword [rbp - 0xcd8], rdx
sub rsp, 0x20
mov rcx, qword [rbp - 0x668]
lea rdx, [rbp - 8]
mov r8, 4
call fcn.140004a64
add rsp, 0x20
mov dword [rbp - 0xce8], 1
mov dword [rbp - 0xce4], 0xea60
mov dword [rbp - 0xce0], 0xea60
sub rsp, 0x50
mov rcx, qword [rbp - 8]
movabs rdx, 0x98000004
lea r8, [rbp - 0xce8]
mov r9, 0xc
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea rax, [rbp - 0xcf0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
call qword [sym.imp.ws2_32.dll_WSAIoctl]
add rsp, 0x50
cmp byte [r12 + 0x6c], 1
jne 0x14000358e
mov qword [rbp - 0xcf8], 1
mov rbx, qword [rbp - 0x678]
mov byte [rbx], 0xff
mov byte [rbx + 1], 0xfe
mov word [rbx + 2], 0
sub rsp, 0x20
mov rcx, qword [rbp - 0xcd8]
mov rdx, qword [rbp + 0x10]
mov r8, rbx
mov r9, 4
call fcn.140003f48
add rsp, 0x20
lea rax, [0x1405b692c]
mov r10d, dword [r12 + 0x2c]
sub rsp, 0x20
mov rcx, qword [rbp - 8]
mov rdx, rbx
mov r8, 4
mov r9, qword [rax + r10*8]
call fcn.1400041fb
add rsp, 0x20
mov edx, dword [r12 + 0x24]
and edx, 0x7fffffff
cmp dword [0x140006490], 0
je 0x1400036a4
cmp edx, dword [0x140006490]
je 0x1400036a4
sub rsp, 0x20
lea rcx, [0x140006494]
call fcn.140004aa5
add rsp, 0x20
lea r14, [rax + 4]
mov rbx, qword [rbp - 0x678]
sub rsp, 0x20
lea rcx, [0x140006490]
lea rdx, [rbx + 4]
mov r8, r14
call fcn.140004a64
add rsp, 0x20
mov byte [rbx], 0xff
mov byte [rbx + 1], 0xff
mov word [rbx + 2], r14w
sub rsp, 0x20
mov rcx, qword [rbp - 0xcd8]
mov rdx, qword [rbp + 0x10]
mov r8, rbx
mov r9, 4
call fcn.140003f48
add rsp, 0x20
sub rsp, 0x20
mov rcx, qword [rbp - 0xcd8]
mov rdx, qword [rbp + 0x10]
lea r8, [rbx + 4]
mov r9, r14
call fcn.140003f48
add rsp, 0x20
lea rax, [0x1405b692c]
mov r10d, dword [r12 + 0x2c]
sub rsp, 0x20
mov rcx, qword [rbp - 8]
mov rdx, rbx
lea r8, [r14 + 4]
mov r9, qword [rax + r10*8]
call fcn.1400041fb
add rsp, 0x20
mov edx, dword [0x140006490]
or edx, 0x80000000
mov dword [r12 + 0x24], edx
sub rsp, 0x30
lea rcx, str.settings.dat
lea rdx, [0x140006290]
mov r8, 0x5000ac
mov r9, 2
mov qword [rsp + 0x20], 0
call fcn.14000474c
add rsp, 0x30
lea rdi, [rbp - 0x658]
mov rsi, qword [rbp - 0x668]
mov rcx, 0xc7
mov qword [rbp - 0x660], 1
mov rax, qword [rbp - 8]
stosq qword [rdi], rax
add rsi, 5
cmp dword [rsi], 0
je 0x1400036e4
cmp byte [rsi + 4], 2
je 0x1400036e4
inc qword [rbp - 0x660]
mov eax, dword [rsi]
stosq qword [rdi], rax
dec rcx
jne 0x1400036ca
mov dword [rdi], 0
mov dword [rdi + 4], 0x64
sub rsp, 0x20
mov rcx, 0xa
call qword [sym.imp.kernel32.dll_Sleep]
add rsp, 0x20
sub rsp, 0x30
mov rcx, 0
lea rdx, [rbp - 0x660]
mov r8, 0
mov r9, 0
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ws2_32.dll_select]
add rsp, 0x30
test eax, eax
js 0x140003e47
je 0x14000351a
lea rsi, [rbp - 0x658]
jmp 0x140003e34
dec qword [rbp - 0x660]
lodsq rax, qword [rsi]
test rax, rax
je 0x14000374f
cmp rax, qword [rbp - 8]
jne 0x140003a9e
mov rdi, qword [rbp - 0x670]
cmp qword [rbp - 0xcc0], 0
je 0x1400037ba
movzx rax, word [rdi + 1]
sub rax, qword [rbp - 0xcc0]
sub rsp, 0x20
mov rcx, qword [rbp - 8]
lea rdx, [rax + rdi + 3]
mov r8, qword [rbp - 0xcc0]
call fcn.14000431c
add rsp, 0x20
test eax, eax
jle 0x140003e47
sub qword [rbp - 0xcc0], rax
jmp 0x140003912
mov rdx, qword [rbp - 0xcc8]
mov r8, 3
sub r8, qword [rbp - 0xcc8]
sub rsp, 0x20
mov rcx, qword [rbp - 8]
lea rdx, [rdx + rdi]
call fcn.14000431c
add rsp, 0x20
test eax, eax
jle 0x140003e47
add qword [rbp - 0xcc8], rax
cmp qword [rbp - 0xcc8], 3
jne 0x140003912
mov qword [rbp - 0xcc8], 0
sub rsp, 0x20
mov rcx, qword [rbp - 0xcd8]
mov rdx, qword [rbp + 0x10]
mov r8, rdi
mov r9, 3
call fcn.140003f48
add rsp, 0x20
cmp word [rdi + 1], 0
je 0x14000386e
movzx rbx, word [rdi + 1]
sub rsp, 0x20
mov rcx, qword [rbp - 8]
lea rdx, [rdi + 3]
mov r8, rbx
call fcn.14000431c
add rsp, 0x20
test eax, eax
jle 0x140003e47
cmp rax, rbx
je 0x140003869
sub rbx, rax
mov qword [rbp - 0xcc0], rbx
jmp 0x140003912
cmp word [rdi + 1], 0
jne 0x140003912
cmp byte [rdi], 0
jne 0x1400038d4
mov qword [rdi], 0
sub rsp, 0x20
mov rcx, qword [rbp - 0xcd8]
mov rdx, qword [rbp + 0x10]
mov r8, rdi
mov r9, 4
call fcn.140003f48
add rsp, 0x20
lea rax, [0x1405b692c]
mov r10d, dword [r12 + 0x2c]
sub rsp, 0x20
mov rcx, qword [rbp - 8]
mov rdx, rdi
mov r8, 4
mov r9, qword [rax + r10*8]
call fcn.1400041fb
add rsp, 0x20
jmp 0x140003912
movzx rcx, byte [rdi]
mov rbx, qword [rbp - 0x668]
imul rcx, rcx, 5
lea rbx, [rcx + rbx]
sub rsp, 0x20
mov ecx, dword [rbx]
call fcn.1400043d2
add rsp, 0x20
sub rsp, 0x20
lea rcx, [rbp - 0x660]
mov edx, dword [rbx]
call fcn.140004426
add rsp, 0x20
mov dword [rbx], 0
cmp qword [rbp - 0xcc0], 0
jne 0x140003a99
cmp qword [rbp - 0xcc8], 0
jne 0x140003a99
cmp word [rdi + 1], 0
je 0x140003a99
movzx rax, word [rdi + 1]
sub rsp, 0x20
mov rcx, qword [rbp - 0xcd8]
mov rdx, qword [rbp + 0x10]
lea r8, [rdi + 3]
mov r9, rax
call fcn.140003f48
add rsp, 0x20
cmp byte [rdi], 0xff
jne 0x140003a64
cmp qword [0x14060ec24], 0
je 0x140003a13
xor r10, r10
jmp 0x140003a06
lea rax, [0x14060ec2c]
sub rsp, 0x20
lea rcx, [r10 + rax]
call fcn.140004aa5
add rsp, 0x20
add r10, rax
lea rax, [0x14060ec2c]
sub rsp, 0x20
lea rcx, [rdi + 3]
lea rdx, [r10 + rax + 5]
mov r8, 4
call fcn.140004b4b
add rsp, 0x20
cmp rax, 0
je 0x140003a02
lea rax, [0x14060ec2c]
mov byte [r10 + rax + 0xe], 2
sub rsp, 0x30
lea rcx, str._loader.dat
lea rdx, [0x14060ec2c]
mov r8, qword [0x14060ec24]
mov r9, 2
mov qword [rsp + 0x20], 0
call fcn.14000474c
add rsp, 0x30
jmp 0x140003a62
add r10, 0x11
cmp r10, qword [0x14060ec24]
jl 0x14000397c
sub rsp, 0x20
lea rcx, [rdi + 3]
lea rdx, [r12 + 0x24]
mov r8, 4
call fcn.140004a64
add rsp, 0x20
sub rsp, 0x30
lea rcx, str.settings.dat
lea rdx, [0x140006290]
mov r8, 0x5000ac
mov r9, 2
mov qword [rsp + 0x20], 0
call fcn.14000474c
add rsp, 0x30
jmp 0x140003a99
movzx rcx, byte [rdi]
mov rbx, qword [rbp - 0x668]
imul rcx, rcx, 5
lea rbx, [rcx + rbx]
movzx rax, word [rdi + 1]
sub rsp, 0x20
mov ecx, dword [rbx]
lea rdx, [rdi + 3]
mov r8, rax
mov r9, 0
call fcn.1400041fb
add rsp, 0x20
jmp 0x140003e34
mov rdi, qword [rbp - 0x668]
mov rcx, 0xc7
mov rbx, 1
add rdi, 5
cmp dword [rdi], eax
je 0x140003ac3
inc rbx
dec rcx
jne 0x140003ab3
mov edx, dword [rbp + rbx*4 - 0xcb8]
mov r8d, dword [rbp + rbx*4 - 0xcb4]
test r8, r8
jne 0x140003ade
mov r8, 0xfffa
mov qword [rbp - 0xcd0], rbx
mov rbx, qword [rbp - 0x678]
sub rsp, 0x20
mov ecx, dword [rdi]
lea rdx, [rdx + rbx + 4]
call fcn.14000431c
add rsp, 0x20
cmp eax, 0
je 0x140003d75
cmp eax, 0xffffffff
je 0x140003d75
cmp byte [rdi + 4], 0xff
jne 0x140003c26
mov rcx, qword [rbp - 0xcd0]
add eax, dword [rbp + rcx*4 - 0xcb8]
cmp rax, 2
jae 0x140003b4f
mov rdx, 2
sub rdx, rax
mov dword [rbp + rcx*4 - 0xcb8], eax
mov dword [rbp + rcx*4 - 0xcb4], edx
jmp 0x140003c21
movzx rdx, byte [rbx + 5]
add rdx, 3
cmp rax, rdx
jae 0x140003b73
sub rdx, rax
mov dword [rbp + rcx*4 - 0xcb8], eax
mov dword [rbp + rcx*4 - 0xcb4], edx
jmp 0x140003c21
add dl, byte [rdx + rbx + 3]
cmp rdx, rax
je 0x140003b92
sub rdx, rax
mov dword [rbp + rcx*4 - 0xcb8], eax
mov dword [rbp + rcx*4 - 0xcb4], edx
jmp 0x140003c21
mov dword [rbp + rcx*4 - 0xcb8], 0
mov dword [rbp + rcx*4 - 0xcb4], 0
mov byte [rdi + 4], 0
movzx r8, byte [r12 + 0xc]
sub rsp, 0x20
lea rcx, [r12 + 0xd]
lea rdx, [rbx + 6]
call fcn.140004b4b
add rsp, 0x20
test rax, rax
je 0x140003d9e
movzx rdx, byte [rbx + 5]
movzx r8, byte [r12 + 0x14]
sub rsp, 0x20
lea rcx, [r12 + 0x15]
lea rdx, [rdx + rbx + 7]
call fcn.140004b4b
add rsp, 0x20
test rax, rax
je 0x140003d9e
mov byte [rbx + 5], 0
sub rsp, 0x20
mov ecx, dword [rdi]
lea rdx, [rbx + 4]
mov r8, 2
mov r9, 0
call fcn.1400041fb
add rsp, 0x20
jmp 0x140003d70
cmp byte [rdi + 4], 0
jne 0x140003cd6
mov rcx, qword [rbp - 0xcd0]
add eax, dword [rbp + rcx*4 - 0xcb8]
cmp eax, 0xa
jae 0x140003c62
mov rdx, 0xa
sub rdx, rax
mov dword [rbp + rcx*4 - 0xcb8], eax
mov dword [rbp + rcx*4 - 0xcb4], edx
jmp 0x140003d70
cmp byte [rbx + 7], 3
jne 0x140003c93
movzx rdx, byte [rbx + 8]
add rdx, 7
cmp rdx, rax
je 0x140003c91
cmp rax, rdx
jae 0x140003c91
sub rdx, rax
mov dword [rbp + rcx*4 - 0xcb8], eax
mov dword [rbp + rcx*4 - 0xcb4], edx
jmp 0x140003d70
jmp 0x140003cc0
cmp byte [rbx + 7], 4
jne 0x140003cc0
mov rdx, 0x16
cmp rdx, rax
je 0x140003cc0
cmp rax, rdx
jae 0x140003cc0
sub rdx, rax
mov dword [rbp + rcx*4 - 0xcb8], eax
mov dword [rbp + rcx*4 - 0xcb4], edx
jmp 0x140003d70
mov dword [rbp + rcx*4 - 0xcb8], 0
mov dword [rbp + rcx*4 - 0xcb4], 0
mov dl, byte [rdi + 4]
mov byte [rbx], dl
sub rsp, 0x20
lea rcx, [rbp - 0xcd0]
lea rdx, [rbx + 1]
mov r8, 1
call fcn.140004a64
add rsp, 0x20
mov word [rbx + 2], ax
mov byte [rdi + 4], 1
movzx r14, word [rbx + 2]
sub rsp, 0x20
mov rcx, qword [rbp - 0xcd8]
mov rdx, qword [rbp + 0x10]
mov r8, rbx
mov r9, 4
call fcn.140003f48
add rsp, 0x20
sub rsp, 0x20
mov rcx, qword [rbp - 0xcd8]
mov rdx, qword [rbp + 0x10]
lea r8, [rbx + 4]
mov r9, r14
call fcn.140003f48
add rsp, 0x20
lea rax, [0x1405b692c]
mov r10d, dword [r12 + 0x2c]
sub rsp, 0x20
mov rcx, qword [rbp - 8]
mov rdx, rbx
lea r8, [r14 + 4]
mov r9, qword [rax + r10*8]
call fcn.1400041fb
add rsp, 0x20
jmp 0x140003e34
mov rcx, qword [rbp - 0xcd0]
mov dword [rbp + rcx*4 - 0xcb8], 0
mov dword [rbp + rcx*4 - 0xcb4], 0
cmp byte [rdi + 4], 0xff
je 0x140003d9e
cmp byte [rdi + 4], 0
jne 0x140003db5
sub rsp, 0x20
mov ecx, dword [rdi]
call fcn.1400043d2
add rsp, 0x20
mov dword [rdi], 0
jmp 0x140003e34
cmp byte [rdi + 4], 2
je 0x140003e34
mov byte [rdi + 4], 2
mov byte [rbx], 1
sub rsp, 0x20
lea rcx, [rbp - 0xcd0]
lea rdx, [rbx + 1]
mov r8, 1
call fcn.140004a64
add rsp, 0x20
mov word [rbx + 2], 0
sub rsp, 0x20
mov rcx, qword [rbp - 0xcd8]
mov rdx, qword [rbp + 0x10]
mov r8, rbx
mov r9, 4
call fcn.140003f48
add rsp, 0x20
lea rax, [0x1405b692c]
mov r10d, dword [r12 + 0x2c]
sub rsp, 0x20
mov rcx, qword [rbp - 8]
mov rdx, rbx
mov r8, 4
mov r9, qword [rax + r10*8]
call fcn.1400041fb
add rsp, 0x20
cmp qword [rbp - 0x660], 0
jne 0x140003754
jmp 0x14000351a
mov rsi, qword [rbp - 0x668]
mov rbx, 0xc8
cmp dword [rsi], 0
je 0x140003e6f
sub rsp, 0x20
mov ecx, dword [rsi]
call fcn.1400043d2
add rsp, 0x20
mov dword [rsi], 0
add rsi, 5
dec rbx
jne 0x140003e55
sub rsp, 0x20
call fcn.1400040cc
add rsp, 0x20
mov dword [r12 + 0x28], eax
mov dword [r12], 0xffffffff
cmp qword [rbp - 0xcf8], 1
jne 0x140003ea2
mov byte [r12 + 0x6c], 0
mov edx, dword [r12 + 0x2c]
lea rax, [0x1405b692c]
sub rsp, 0x20
mov rcx, qword [rax + rdx*8]
call qword [sym.imp.kernel32.dll_CloseHandle]
add rsp, 0x20
sub rsp, 0x30
lea rcx, str.settings.dat
lea rdx, [0x140006290]
mov r8, 0x5000ac
mov r9, 2
mov qword [rsp + 0x20], 0
call fcn.14000474c
add rsp, 0x30
sub rsp, 0x20
mov rcx, qword [rbp - 0x670]
mov rdx, 0
mov r8, 0x8000
call qword [sym.imp.kernel32.dll_VirtualFree]
add rsp, 0x20
sub rsp, 0x20
mov rcx, qword [rbp - 0x678]
mov rdx, 0
mov r8, 0x8000
call qword [sym.imp.kernel32.dll_VirtualFree]
add rsp, 0x20
mov rax, 0
add rsp, 0xd00
pop rbp
ret