Function at 0x1400c59f0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x9b8
mov rdi, qword [0x140207460]
mov rax, qword [rdi]
mov qword [rsp + 0x9a8], rax
xor eax, eax
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0xa08], edx
mov dword [rsp + 0xa10], r8d
cmp r8d, 0xffffffff
jl 0x1400c616a
jne 0x1400c6102
mov rax, qword [0x140242fe8]
mov dword [rsp + 0x74], 0
mov qword [rsp + 0x78], 0
test rax, rax
je 0x1400c6128
mov edx, dword [rsp + 0xa08]
mov rdi, qword [rsp + 0x58]
mov dword [rsp + 0x3c], 0
mov r15, qword [sym.imp.USER32.dll_TranslateMessage]
lea rbx, [rdi + rdx*8]
nop dword [rax + rax]
mov r10d, dword [rsp + 0xa08]
mov qword [rsp + 0x750], rax
mov dword [rsp + 0x120], 0
mov dword [rsp + 0x330], 0
mov dword [rsp + 0x540], 0
test r10d, r10d
je 0x1400c60f8
mov r13, qword [rsp + 0x58]
mov rsi, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ebp, 1
mov rdi, qword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x1400c5b45
xor edx, edx
lea r8, [rsp + 0xf0]
mov rcx, r12
mov dword [rsp + 0xf0], 0xdeadbeef
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp dword [rsp + 0xf0], 0xdeadbeef
je 0x1400c5b82
mov r8d, 0x20
test r14b, 0x41
jne 0x1400c5d70
test r14w, 0x304
jne 0x1400c5d10
and r14d, 0x82
jne 0x1400c5cb0
mov rdx, qword [0x140242fe8]
mov rcx, r12
call rdi
add r13, 8
cmp r13, rbx
je 0x1400c5bd8
movsx eax, word [r13 + 4]
mov ecx, dword [r13]
xor r9d, r9d
mov word [r13 + 6], r9w
mov dword [rsp + 0x8c], eax
mov r14d, eax
test ecx, ecx
js 0x1400c5b38
test ax, 0x3c7
je 0x1400c5b38
call rsi
mov r12, rax
test rax, rax
je 0x1400c6150
not eax
test al, 3
jne 0x1400c5ad8
lea rdx, [rsp + 0x8c]
mov rcx, r12
call fcn.1400c5800
mov r8d, dword [rsp + 0x8c]
mov word [r13 + 6], ax
test r8d, r8d
je 0x1400c5bb1
mov edx, ebp
add ebp, 1
mov qword [rsp + rdx*8 + 0x750], r12
test ax, ax
mov eax, 0
cmove eax, dword [rsp + 0xa10]
add r13, 8
mov dword [rsp + 0xa10], eax
cmp r13, rbx
jne 0x1400c5b45
nop dword [rax]
lea rax, [rsp + 0x120]
lea rdi, [0x140242fe0]
xor ecx, ecx
xor r12d, r12d
lea r9, [rsp + 0x540]
lea r8, [rsp + 0x330]
mov qword [rsp + 0x20], rdi
mov rdx, rax
mov rdi, qword [sym.imp.WS2_32.dll_select]
mov qword [rsp + 0x40], r9
lea r14, [rsp + 0x750]
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x50], rax
call rdi
mov qword [rsp + 0x60], rbx
mov r13, qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
mov qword [rsp + 0x68], rdi
mov rsi, qword [sym.imp.USER32.dll_PeekMessageA]
cmovle r12d, dword [rsp + 0xa10]
setle al
movzx eax, al
mov dword [rsp + 0x70], eax
nop dword [rax]
xor r8d, r8d
mov dword [rsp + 0x20], 0x4ff
mov r9d, r12d
mov ecx, ebp
mov rdx, r14
call r13
cmp eax, ebp
jne 0x1400c5dc0
mov rdi, qword [sym.imp.USER32.dll_DispatchMessageA]
lea rbx, [rsp + 0x90]
nop dword [rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 1
mov rcx, rbx
call rsi
test eax, eax
je 0x1400c5c58
mov rcx, rbx
call r15
mov rcx, rbx
call rdi
jmp 0x1400c5c88
mov ecx, dword [rsp + 0x540]
or r8d, 4
test ecx, ecx
je 0x1400c60d7
lea rdx, [rsp + 0x548]
xor eax, eax
jmp 0x1400c5cdb
add eax, 1
add rdx, 8
cmp ecx, eax
je 0x1400c5ce0
cmp qword [rdx], r12
jne 0x1400c5cd0
cmp ecx, 0x40
je 0x1400c5b2c
cmp ecx, eax
jne 0x1400c5b2c
add ecx, 1
mov qword [rsp + rax*8 + 0x548], r12
mov dword [rsp + 0x540], ecx
jmp 0x1400c5b2c
mov ecx, dword [rsp + 0x330]
or r8d, 0x12
test ecx, ecx
je 0x1400c60ec
lea rdx, [rsp + 0x338]
xor eax, eax
jmp 0x1400c5d3b
add eax, 1
add rdx, 8
cmp eax, ecx
je 0x1400c5d40
cmp qword [rdx], r12
jne 0x1400c5d30
cmp ecx, 0x40
je 0x1400c5b1f
cmp ecx, eax
jne 0x1400c5b1f
add ecx, 1
mov qword [rsp + rax*8 + 0x338], r12
mov dword [rsp + 0x330], ecx
jmp 0x1400c5b1f
mov ecx, dword [rsp + 0x120]
test ecx, ecx
je 0x1400c60e3
lea rdx, [rsp + 0x128]
xor eax, eax
jmp 0x1400c5d9b
add eax, 1
add rdx, 8
cmp eax, ecx
je 0x1400c5da0
cmp qword [rdx], r12
jne 0x1400c5d90
cmp ecx, 0x40
je 0x1400c5dad
cmp ecx, eax
je 0x1400c607e
mov r8d, 0x29
jmp 0x1400c5b13
mov eax, dword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
test eax, eax
jne 0x1400c605a
mov ecx, dword [rsp + 0xa08]
mov qword [rsp + rbp*8 + 0x750], 0
test ecx, ecx
je 0x1400c5f38
mov rsi, qword [rsp + 0x58]
mov r14d, 1
jmp 0x1400c5e62
mov eax, ebp
mov r13d, ebp
movzx r12d, word [rsi + 4]
and eax, 0x29
and r13d, 4
cmp eax, 8
je 0x1400c5f29
test eax, eax
jne 0x1400c5fd4
and ebp, 0x12
je 0x1400c5e32
mov edx, r12d
and edx, 0x304
or eax, edx
and r12d, 0x82
mov edx, eax
or eax, r12d
test r13d, r13d
cmove eax, edx
or ax, word [rsi + 6]
cmp ax, 1
sbb dword [rsp + 0x3c], 0xffffffff
mov word [rsi + 6], ax
add rsi, 8
cmp rsi, rbx
je 0x1400c5f38
mov ecx, dword [rsi]
test ecx, ecx
js 0x1400c5e55
test word [rsi + 4], 0x345
je 0x1400c5e55
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rdi, rax
mov eax, r14d
cmp qword [rsp + rax*8 + 0x750], rdi
je 0x1400c5fb0
xor edx, edx
lea r8, [rsp + 0xc0]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
xor edx, edx
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400c5ed1
mov eax, dword [rsp + 0xc0]
test al, 9
jne 0x1400c5ed1
or eax, 9
mov dword [rsp + 0xc0], eax
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400c5eea
or dword [rsp + 0xc0], 0x12
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
mov ebp, dword [rsp + 0xc0]
test eax, eax
je 0x1400c5e00
or ebp, 4
movzx r12d, word [rsi + 4]
mov r13d, 4
mov eax, ebp
mov dword [rsp + 0xc0], ebp
and eax, 0x29
cmp eax, 8
jne 0x1400c5e1a
mov eax, r12d
and eax, 0x41
jmp 0x1400c5e22
mov edx, dword [rsp + 0x3c]
mov edi, dword [rsp + 0x74]
test edx, edx
sete sil
test edi, edi
je 0x1400c5f7b
test sil, sil
je 0x1400c5f7b
cmp dword [rsp + 0xa10], 0xffffffff
je 0x1400c5f93
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rdx, qword [rsp + 0x78]
sub rax, rdx
mov edx, edi
cmp rax, rdx
jae 0x1400c6095
sub edi, eax
mov dword [rsp + 0xa10], edi
mov eax, dword [rsp + 0xa10]
test eax, eax
je 0x1400c609d
test sil, sil
je 0x1400c609d
mov edx, 1
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SleepEx]
mov rax, qword [0x140242fe8]
jmp 0x1400c5a80
movsx eax, word [rsi + 4]
lea rdx, [rsp + 0x8c]
mov rcx, rdi
add r14d, 1
mov dword [rsp + 0x8c], eax
call fcn.1400c5800
jmp 0x1400c5e44
mov r10, qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ecx, ecx
mov qword [rsp + 0x60], r10
call r10
lea rdx, [rsp + 0x960]
mov rcx, rdi
mov r9d, 2
mov r8d, 0x40
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x70], eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r10, qword [rsp + 0x60]
xor ecx, ecx
mov edi, eax
call r10
mov edx, dword [rsp + 0x70]
test edx, edx
jg 0x1400c5f29
cmp edi, 0x2749
je 0x1400c5f29
test edx, edx
je 0x1400c60cd
cmp edi, 0x274a
je 0x1400c60cd
sub edi, 0x2744
cmp edi, 3
sbb eax, eax
and eax, 8
add eax, 8
jmp 0x1400c5e22
lea rax, [0x140242fe0]
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x50]
call rdi
jmp 0x1400c5dd6
add ecx, 1
mov qword [rsp + rax*8 + 0x128], r12
mov dword [rsp + 0x120], ecx
jmp 0x1400c5dad
mov dword [rsp + 0x3c], 0
mov rdi, qword [0x140207460]
mov rax, qword [rsp + 0x9a8]
sub rax, qword [rdi]
jne 0x1400c6144
mov eax, dword [rsp + 0x3c]
add rsp, 0x9b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 0x10
jmp 0x1400c5e22
xor eax, eax
mov ecx, 1
jmp 0x1400c5cf4
xor eax, eax
mov ecx, 1
jmp 0x1400c6081
xor eax, eax
mov ecx, 1
jmp 0x1400c5d54
mov ebp, 1
jmp 0x1400c5bd8
mov eax, dword [rsp + 0xa10]
mov dword [rsp + 0x74], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rsp + 0x78], rax
mov rax, qword [0x140242fe8]
test rax, rax
jne 0x1400c5a5c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x140242fe8], rax
jmp 0x1400c5a5c
call fcn.1401be670
nop dword [rax]
mov r8d, 0x1d8
lea rdx, str.compat_poll_poll.c
lea rcx, str.h___NULL
call qword [sym.imp.msvcrt.dll__assert]
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rsp + 0x3c], 0xffffffff
mov dword [rax], 0x16
jmp 0x1400c609d