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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x14032aa00]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov rsi, r8
mov qword [rbp - 0x80], r8
mov dword [rsp + 0x50], edx
mov r15, rcx
mov qword [rsp + 0x48], rcx
lea rdi, [rcx + 0x30]
mov qword [rsp + 0x60], rdi
mov qword [rbp - 0x70], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, 1
mov byte [rbp - 0x68], al
cmp byte [r15 + 0x198], 0
jne 0x14012e81a
lea r13, [r15 + 0x148]
mov rax, qword [r13]
xor edx, edx
mov dword [rax], edx
mov qword [r13 + 0x10], 0xffffffffffffffff
lea r14, [r15 + 0x160]
mov qword [rsp + 0x70], r14
mov rax, qword [r14]
mov dword [rax], edx
mov qword [r14 + 0x10], 0xffffffffffffffff
lea rcx, [r15 + 0x178]
mov qword [rsp + 0x68], rcx
mov rax, qword [rcx]
mov dword [rax], edx
mov qword [rcx + 0x10], 0xffffffffffffffff
mov rbx, qword [r15 + 0x58]
mov ecx, edx
mov r8, qword [r13]
mov edx, dword [r8]
test edx, edx
je 0x14012dea5
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x14012dec0
inc ecx
cmp ecx, edx
jb 0x14012de96
inc edx
mov rcx, r13
call fcn.140127590
mov rcx, qword [r13]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rbx
mov rax, qword [r13]
inc dword [rax]
mov rbx, qword [r15 + 0x190]
test rbx, rbx
je 0x14012dee6
nop dword [rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x14012def2
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14012ded0
cmp qword [r15 + 0x78], 0
jne 0x14012def2
xor r12b, r12b
jmp 0x14012def5
mov r12b, 1
mov rax, qword [r15 + 0x70]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14012dfb3
nop word [rax + rax]
lea rdi, [rbx]
mov rbx, qword [rbx]
mov r14, qword [r13]
mov eax, dword [r14]
lea edx, [rax + 1]
mov ecx, dword [r13 + 8]
cmp edx, ecx
jbe 0x14012df95
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov r15d, edx
lea rcx, [rdx*8 + 8]
call fcn.1401ae1f0
mov r14, rax
mov rcx, qword [r13]
mov edx, dword [rcx]
mov dword [rax], edx
xor edx, edx
mov r8, qword [r13]
cmp dword [r8], edx
jbe 0x14012df7d
nop dword [rax]
lea rcx, [rdx*8]
mov rax, qword [r8 + rcx + 8]
mov qword [r14 + rcx + 8], rax
inc edx
mov r8, qword [r13]
cmp edx, dword [r8]
jb 0x14012df60
mov rcx, r8
call fcn.140164860
mov qword [r13], r14
mov dword [r13 + 8], r15d
mov eax, dword [r14]
mov r15, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x10]
mov qword [r14 + rax*8 + 8], rcx
mov rax, qword [r13]
inc dword [rax]
cmp rbx, qword [r15 + 0x70]
jne 0x14012df10
mov r14, qword [rsp + 0x70]
mov r13, qword [r15 + 0x158]
test r13, r13
mov eax, 0
cmove r13, rax
test r12b, r12b
jne 0x14012dfd4
cmp qword [r15 + 0xb0], rax
je 0x14012dfd7
mov r12b, 1
mov rax, qword [r15 + 0xa8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14012e09e
xor esi, esi
nop dword [rax]
lea rdi, [rbx]
mov rbx, qword [rbx]
mov rax, qword [r14]
mov edx, dword [rax]
inc edx
mov ecx, dword [r14 + 8]
cmp edx, ecx
jbe 0x14012e07a
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov r15d, edx
lea rcx, [rdx*8 + 8]
call fcn.1401ae1f0
mov r14, rax
mov r9, qword [rsp + 0x70]
mov rcx, qword [r9]
mov edx, dword [rcx]
mov dword [rax], edx
mov edx, esi
mov r8, qword [r9]
cmp dword [r8], esi
jbe 0x14012e05e
nop dword [rax]
mov eax, edx
lea rcx, [rax*8]
mov rax, qword [r8 + rcx + 8]
mov qword [r14 + rcx + 8], rax
inc edx
mov r8, qword [r9]
cmp edx, dword [r8]
jb 0x14012e040
mov rcx, r8
call fcn.140164860
mov rcx, qword [rsp + 0x70]
mov qword [rcx], r14
mov r14, rcx
mov dword [rcx + 8], r15d
mov r15, qword [rsp + 0x48]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [r14]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rdx
mov rax, qword [r14]
inc dword [rax]
cmp rbx, qword [r15 + 0xa8]
jne 0x14012dff0
mov rsi, qword [rbp - 0x80]
mov rax, qword [r15 + 0x170]
cmp rax, r13
cmova r13, rax
test r12b, r12b
jne 0x14012e0bb
cmp qword [r15 + 0xe8], 0
je 0x14012e0be
mov r12b, 1
mov rax, qword [r15 + 0xe0]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14012e18b
mov r8, qword [rsp + 0x68]
xor esi, esi
nop dword [rax + rax]
lea rdi, [rbx]
mov rbx, qword [rbx]
mov rax, qword [r8]
mov edx, dword [rax]
inc edx
mov ecx, dword [r8 + 8]
cmp edx, ecx
jbe 0x14012e167
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov r15d, edx
lea rcx, [rdx*8 + 8]
call fcn.1401ae1f0
mov r14, rax
mov r9, qword [rsp + 0x68]
mov rcx, qword [r9]
mov edx, dword [rcx]
mov dword [rax], edx
mov edx, esi
mov r8, qword [r9]
cmp dword [r8], esi
jbe 0x14012e14e
nop dword [rax]
mov eax, edx
lea rcx, [rax*8]
mov rax, qword [r8 + rcx + 8]
mov qword [r14 + rcx + 8], rax
inc edx
mov r8, qword [r9]
cmp edx, dword [r8]
jb 0x14012e130
mov rcx, r8
call fcn.140164860
mov r8, qword [rsp + 0x68]
mov qword [r8], r14
mov dword [r8 + 8], r15d
mov r15, qword [rsp + 0x48]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [r8]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rdx
mov rax, qword [r8]
inc dword [rax]
cmp rbx, qword [r15 + 0xe0]
jne 0x14012e0e0
mov rsi, qword [rbp - 0x80]
mov rax, qword [r15 + 0x188]
cmp rax, r13
cmova r13, rax
test r12b, r12b
jne 0x14012e1ac
cmp qword [r15 + 0x120], 0
jne 0x14012e1ac
xor bl, bl
jmp 0x14012e1ae
mov bl, 1
lea r12, [r15 + 0x110]
mov r8, rsi
mov rdx, r12
mov r14, qword [rsp + 0x70]
mov rcx, r14
call fcn.14012f150
mov rax, qword [r15 + 0x170]
cmp rax, r13
cmova r13, rax
mov r8, rsi
mov rdx, r12
mov rcx, qword [rsp + 0x68]
call fcn.14012f150
mov rdi, qword [r15 + 0x188]
cmp rdi, r13
cmovbe rdi, r13
mov ecx, dword [rsp + 0x50]
test ecx, ecx
jne 0x14012e204
test bl, bl
je 0x14012e813
xor ebx, ebx
mov qword [rsp + 0x58], rbx
test ecx, ecx
je 0x14012e25e
mov eax, 0x11e1a300
cmp ecx, eax
cmova ecx, eax
mov rbx, qword [r15 + 0x190]
test rbx, rbx
je 0x14012e23b
mov rax, qword [rbx]
mov edx, ecx
mov rcx, rbx
call qword [rax + 0x18]
mov ecx, eax
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14012e225
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x58], edx
imul eax, edx, 0xf4240
sub ecx, eax
mov dword [rsp + 0x5c], ecx
xor ebx, ebx
lea rcx, [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov byte [rsp + 0x40], al
mov byte [rbp - 0x68], al
mov r13, qword [rsp + 0x68]
mov r9, qword [r13]
mov r8, qword [r14]
mov rdx, qword [r15 + 0x148]
test rdx, rdx
jne 0x14012e2d2
test r8, r8
jne 0x14012e2d2
test r9, r9
jne 0x14012e2d2
mov eax, 0x10624dd3
imul dword [rsp + 0x5c]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, dword [rsp + 0x58], 0x3e8
add ecx, eax
mov r15d, 1
cmove ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r14d, ebx
mov r15, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x60]
jmp 0x14012e4ae
cmp dword [rsp + 0x58], 0
jne 0x14012e2f3
mov ecx, dword [rsp + 0x5c]
lea eax, [rcx - 1]
mov r10d, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, r10d
mov dword [rsp + 0x5c], ecx
lea ecx, [rdi + 1]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov r14d, eax
test eax, eax
jns 0x14012e318
call fcn.14004cfa0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test r14d, r14d
jle 0x14012e4aa
mov rdx, qword [r15 + 0x148]
mov rcx, qword [r15 + 0x58]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14012e4aa
lea rax, [rbp - 0x20]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x60], 0x400
mov r15d, 1
nop
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r8d, r15d
lea rdx, [rbp - 0x60]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call fcn.14004cfa0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x80], xmm0
cmp eax, 0x40
jne 0x14012e3c7
call fcn.14004cfa0
mov dword [rbp - 0x40], 0x2746
mov qword [rbp - 0x38], rax
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x80], xmm0
jmp 0x14012e3f7
cmp eax, 0x4d2
jne 0x14012e3e9
call fcn.14004cfa0
mov dword [rbp - 0x30], 0x274d
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x80], xmm0
jmp 0x14012e3f7
cmp eax, 0x2738
je 0x14012e3fb
cmp eax, 0xea
je 0x14012e3fb
test edi, edi
jne 0x14012e40f
xor eax, eax
mov ebx, eax
mov eax, dword [rsp + 0x50]
cmp eax, 0x400
jne 0x14012e417
jmp 0x14012e350
mov eax, 0xffffffff
mov ebx, dword [rbp - 0x80]
test eax, eax
jg 0x14012e492
je 0x14012e44f
call fcn.14004cfa0
mov rdi, qword [rbp - 0x78]
mov rax, qword [rax + 8]
cmp qword [rdi + 8], rax
jne 0x14012e438
cmp ebx, 0x2733
je 0x14012e492
call fcn.14004cfa0
mov rdx, qword [rax + 8]
cmp qword [rdi + 8], rdx
jne 0x14012e44f
cmp ebx, 0x4d5
je 0x14012e492
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x68], r15b
mov r15, qword [rsp + 0x48]
mov byte [r15 + 0x198], 1
mov rcx, qword [r15 + 0x28]
lock inc dword [rcx + 0x30]
lea rdx, [r15 + 0x1a8]
call fcn.1401257a0
movzx eax, byte [rbp - 0x68]
mov byte [rsp + 0x40], al
mov rdi, qword [rbp - 0x70]
mov qword [rsp + 0x60], rdi
jmp 0x14012e4a1
mov r15, qword [rsp + 0x48]
movzx eax, byte [rsp + 0x40]
mov rdi, qword [rsp + 0x60]
dec r14d
test al, al
jne 0x14012e4c0
jmp 0x14012e4ae
lea rdi, [r15 + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, 1
mov byte [rsp + 0x40], al
mov byte [rbp - 0x68], al
test r14d, r14d
jle 0x14012e80c
mov r8, rsi
mov rdx, r12
mov rcx, r13
call fcn.140124ca0
mov r8, rsi
mov rdx, r12
mov rcx, qword [rsp + 0x70]
call fcn.140124ca0
lea r14, [r15 + 0xd8]
xor r12d, r12d
mov r15d, r12d
mov rcx, qword [r13]
cmp dword [rcx], r12d
jbe 0x14012e5c9
mov eax, r15d
mov rcx, qword [rcx + rax*8 + 8]
mov r8, qword [r14 + 0x30]
test r8, r8
je 0x14012e5b9
xor edx, edx
mov rax, rcx
div r8
add rdx, rdx
mov rax, qword [r14 + 0x28]
mov rbx, qword [rax + rdx*8]
cmp rbx, qword [r14 + 8]
je 0x14012e5b9
mov rax, qword [rax + rdx*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14012e5b9
cmp qword [rbx + 0x10], rcx
je 0x14012e550
mov rbx, qword [rbx]
cmp rbx, rax
jne 0x14012e540
jmp 0x14012e5b9
cmp rbx, qword [r14 + 8]
je 0x14012e5b9
mov rdi, qword [rbx + 0x18]
test rdi, rdi
je 0x14012e5ae
nop
mov rax, qword [rdi + 0x58]
mov rcx, rdi
call rax
test eax, eax
je 0x14012e5b9
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14012e58b
mov rax, qword [rcx + 0x20]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x14012e587
mov qword [rbx + 0x20], r12
mov qword [rcx + 0x20], r12
mov qword [rdi + 0x20], r12
mov rax, qword [rsi + 8]
test rax, rax
je 0x14012e59e
mov qword [rax + 0x20], rdi
jmp 0x14012e5a1
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov rdi, qword [rbx + 0x18]
test rdi, rdi
jne 0x14012e560
mov rdx, rbx
mov rcx, r14
call fcn.14011b390
inc r15d
mov rcx, qword [r13]
cmp r15d, dword [rcx]
jb 0x14012e501
mov r15, qword [rsp + 0x48]
mov r13, qword [rsp + 0x70]
mov rcx, qword [r13]
cmp dword [rcx], r12d
jbe 0x14012e6cf
mov eax, r12d
mov rcx, qword [rcx + rax*8 + 8]
mov r8, qword [r15 + 0xd0]
test r8, r8
je 0x14012e6bf
xor edx, edx
mov rax, rcx
div r8
add rdx, rdx
mov rax, qword [r15 + 0xc8]
mov rdi, qword [rax + rdx*8]
cmp rdi, qword [r15 + 0xa8]
je 0x14012e6bf
mov rax, qword [rax + rdx*8 + 8]
mov rax, qword [rax]
cmp rdi, rax
je 0x14012e6bf
nop dword [rax]
cmp qword [rdi + 0x10], rcx
je 0x14012e640
mov rdi, qword [rdi]
cmp rdi, rax
jne 0x14012e630
jmp 0x14012e6bf
cmp rdi, qword [r15 + 0xa8]
je 0x14012e6bf
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x14012e6b0
mov rax, qword [rbx + 0x58]
mov rcx, rbx
call rax
test eax, eax
je 0x14012e6bf
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14012e687
mov rax, qword [rcx + 0x20]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x14012e67f
mov qword [rdi + 0x20], rax
mov qword [rcx + 0x20], rax
jmp 0x14012e689
xor eax, eax
mov qword [rcx + 0x20], rax
jmp 0x14012e689
xor eax, eax
mov qword [rbx + 0x20], rax
mov rax, qword [rsi + 8]
test rax, rax
je 0x14012e6a0
mov qword [rax + 0x20], rbx
mov qword [rsi + 8], rbx
jmp 0x14012e6a7
mov qword [rsi + 8], rbx
mov qword [rsi], rbx
mov rbx, qword [rdi + 0x18]
test rbx, rbx
jne 0x14012e652
mov rdx, rdi
lea rcx, [r15 + 0xa0]
call fcn.14011b390
inc r12d
mov rcx, qword [r13]
cmp r12d, dword [rcx]
jb 0x14012e5e0
mov r13, r15
xor eax, eax
mov r12d, eax
mov rcx, qword [r15 + 0x148]
cmp dword [rcx], eax
jbe 0x14012e7dd
nop word [rax + rax]
mov eax, r12d
mov rcx, qword [rcx + rax*8 + 8]
mov r8, qword [r15 + 0x98]
test r8, r8
je 0x14012e7ca
xor edx, edx
mov rax, rcx
div r8
add rdx, rdx
mov rax, qword [r15 + 0x90]
mov rdi, qword [rax + rdx*8]
cmp rdi, qword [r15 + 0x70]
je 0x14012e7ca
mov rax, qword [rax + rdx*8 + 8]
mov rax, qword [rax]
cmp rdi, rax
je 0x14012e7ca
nop dword [rax]
cmp qword [rdi + 0x10], rcx
je 0x14012e750
mov rdi, qword [rdi]
cmp rdi, rax
jne 0x14012e740
jmp 0x14012e7ca
cmp rdi, qword [r15 + 0x70]
je 0x14012e7ca
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x14012e7be
nop
mov rax, qword [rbx + 0x58]
mov rcx, rbx
call rax
test eax, eax
je 0x14012e7ca
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14012e795
mov rax, qword [rcx + 0x20]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x14012e78d
mov qword [rdi + 0x20], rax
mov qword [rcx + 0x20], rax
jmp 0x14012e797
xor eax, eax
mov qword [rcx + 0x20], rax
jmp 0x14012e797
xor eax, eax
mov qword [rbx + 0x20], rax
mov rax, qword [rsi + 8]
test rax, rax
je 0x14012e7ae
mov qword [rax + 0x20], rbx
mov qword [rsi + 8], rbx
jmp 0x14012e7b5
mov qword [rsi + 8], rbx
mov qword [rsi], rbx
mov rbx, qword [rdi + 0x18]
test rbx, rbx
jne 0x14012e760
mov rdx, rdi
lea rcx, [r15 + 0x68]
call fcn.14011b390
inc r12d
mov rcx, qword [r15 + 0x148]
cmp r12d, dword [rcx]
jb 0x14012e6f0
mov rdi, qword [rsp + 0x60]
mov rbx, qword [r13 + 0x190]
test rbx, rbx
je 0x14012e805
nop
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14012e7f0
movzx eax, byte [rsp + 0x40]
jmp 0x14012e81a
mov r13, qword [rsp + 0x48]
jmp 0x14012e7e2
mov al, 1
mov rdi, qword [rsp + 0x60]
test al, al
je 0x14012e827
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.1401ae6a0
mov rbx, qword [rsp + 0x548]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret