Function at 0x1400ddab0
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 [0x14022c040]
mov rax, qword [rdi]
mov qword [rsp + 0x9a8], rax
xor eax, eax
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0xa08], edx
mov dword [rsp + 0xa10], r8d
cmp r8d, 0xffffffff
jl 0x1400de25a
jne 0x1400de1e6
mov rax, qword [0x14025ae48]
mov byte [rsp + 0x73], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x74], 0
test rax, rax
je 0x1400de21c
mov edx, dword [rsp + 0xa08]
mov rdi, qword [rsp + 0x50]
mov dword [rsp + 0x58], 0
mov r15, qword [sym.imp.USER32.dll_TranslateMessage]
lea r14, [rdi + rdx*8]
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 0x1400de1dc
mov r13, qword [rsp + 0x50]
mov rbx, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ebp, 1
mov edi, dword [rsp + 0xa10]
jmp 0x1400ddc0d
xor edx, edx
lea r8, [rsp + 0xf0]
mov rcx, rsi
mov dword [rsp + 0xf0], 0xdeadbeef
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp dword [rsp + 0xf0], 0xdeadbeef
je 0x1400ddc4a
mov r8d, 0x20
test r12b, 0x41
jne 0x1400dde20
test r12w, 0x304
jne 0x1400dddd0
and r12d, 0x82
jne 0x1400ddd80
mov rdx, qword [0x14025ae48]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
add r13, 8
cmp r13, r14
je 0x1400ddc90
movsx eax, word [r13 + 4]
mov ecx, dword [r13]
xor r9d, r9d
mov word [r13 + 6], r9w
mov dword [rsp + 0x8c], eax
mov r12d, eax
test ecx, ecx
js 0x1400ddc00
test ax, 0x3c7
je 0x1400ddc00
call rbx
mov rsi, rax
test rax, rax
je 0x1400de240
not eax
test al, 3
jne 0x1400ddb98
lea rdx, [rsp + 0x8c]
mov rcx, rsi
call fcn.1400dd8e0
mov r8d, dword [rsp + 0x8c]
mov word [r13 + 6], ax
test r8d, r8d
je 0x1400ddc79
mov edx, ebp
add ebp, 1
mov qword [rsp + rdx*8 + 0x750], rsi
test ax, ax
mov eax, 0
cmovne edi, eax
add r13, 8
cmp r13, r14
jne 0x1400ddc0d
nop dword [rax]
mov dword [rsp + 0xa10], edi
lea rdi, [0x14025ae40]
mov rbx, qword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
lea rax, [rsp + 0x120]
lea r9, [rsp + 0x540]
mov rdx, rax
mov qword [rsp + 0x48], rax
xor r13d, r13d
lea r8, [rsp + 0x330]
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x20], rdi
call rbx
xor edx, edx
test eax, eax
jg 0x1400ddcee
mov r13d, dword [rsp + 0xa10]
mov edx, 1
mov dword [rsp + 0x5c], edx
lea rax, [rsp + 0x750]
mov r12, qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov qword [rsp + 0x68], rbx
mov rsi, qword [sym.imp.USER32.dll_PeekMessageA]
mov qword [rsp + 0x60], r14
mov r14, rax
nop word cs:[rax + rax]
xor r8d, r8d
mov dword [rsp + 0x20], 0x4ff
mov r9d, r13d
mov ecx, ebp
mov rdx, r14
call r12
cmp eax, ebp
jne 0x1400dde70
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 0x1400ddd20
mov rcx, rbx
call r15
mov rcx, rbx
call rdi
jmp 0x1400ddd50
mov ecx, dword [rsp + 0x540]
test ecx, ecx
je 0x1400de1be
lea rdx, [rsp + 0x548]
xor eax, eax
jmp 0x1400dddab
add eax, 1
add rdx, 8
cmp eax, ecx
je 0x1400dddb0
cmp qword [rdx], rsi
jne 0x1400ddda0
cmp ecx, eax
jne 0x1400dddbd
cmp ecx, 0x40
jne 0x1400de14e
or r8d, 4
jmp 0x1400ddbf0
mov ecx, dword [rsp + 0x330]
test ecx, ecx
je 0x1400de1d3
lea rdx, [rsp + 0x338]
xor eax, eax
jmp 0x1400dddfb
add eax, 1
add rdx, 8
cmp eax, ecx
je 0x1400dde00
cmp qword [rdx], rsi
jne 0x1400dddf0
cmp ecx, eax
jne 0x1400dde0d
cmp ecx, 0x40
jne 0x1400de165
or r8d, 0x12
jmp 0x1400ddbe3
mov ecx, dword [rsp + 0x120]
test ecx, ecx
je 0x1400de1c7
lea rdx, [rsp + 0x128]
xor eax, eax
jmp 0x1400dde4f
add eax, 1
add rdx, 8
cmp ecx, eax
je 0x1400de084
cmp qword [rdx], rsi
jne 0x1400dde40
cmp ecx, eax
je 0x1400de084
mov r8d, 0x29
jmp 0x1400ddbd7
mov edx, dword [rsp + 0x5c]
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
test edx, edx
jne 0x1400de12a
mov ecx, dword [rsp + 0xa08]
mov qword [rsp + rbp*8 + 0x750], 0
test ecx, ecx
je 0x1400ddfe0
mov rbx, qword [rsp + 0x50]
mov r13d, 1
jmp 0x1400ddf0e
mov eax, edi
mov r12d, edi
movzx ebp, word [rbx + 4]
and eax, 0x29
and r12d, 4
cmp eax, 8
je 0x1400ddfd4
test eax, eax
jne 0x1400de0a4
and edi, 0x12
je 0x1400ddee0
mov edx, ebp
and edx, 0x304
or eax, edx
and ebp, 0x82
mov edx, eax
or eax, ebp
test r12d, r12d
cmove eax, edx
or ax, word [rbx + 6]
cmp ax, 1
sbb dword [rsp + 0x58], 0xffffffff
mov word [rbx + 6], ax
add rbx, 8
cmp rbx, r14
je 0x1400ddfe0
mov ecx, dword [rbx]
test ecx, ecx
js 0x1400ddf01
test word [rbx + 4], 0x345
je 0x1400ddf01
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rsi, rax
mov eax, r13d
cmp qword [rsp + rax*8 + 0x750], rsi
je 0x1400de060
xor edx, edx
lea r8, [rsp + 0xc0]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
xor edx, edx
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov rdx, qword [rsp + 0x48]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400ddf7d
mov eax, dword [rsp + 0xc0]
test al, 9
jne 0x1400ddf7d
or eax, 9
mov dword [rsp + 0xc0], eax
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400ddf96
or dword [rsp + 0xc0], 0x12
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
mov edi, dword [rsp + 0xc0]
test eax, eax
je 0x1400ddeb0
or edi, 4
movzx ebp, word [rbx + 4]
mov r12d, 4
mov eax, edi
mov dword [rsp + 0xc0], edi
and eax, 0x29
cmp eax, 8
jne 0x1400ddec9
mov eax, ebp
and eax, 0x41
jmp 0x1400dded1
mov edx, dword [rsp + 0x58]
test edx, edx
sete bl
cmp byte [rsp + 0x73], 0
je 0x1400de025
test bl, bl
je 0x1400de025
cmp dword [rsp + 0xa10], 0xffffffff
je 0x1400de03c
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rdi, qword [rsp + 0x78]
mov edx, dword [rsp + 0x74]
sub rax, rdi
mov rdi, rdx
cmp rax, rdx
jae 0x1400de17c
sub edi, eax
mov dword [rsp + 0xa10], edi
mov eax, dword [rsp + 0xa10]
test eax, eax
je 0x1400de184
test bl, bl
je 0x1400de184
mov edx, 1
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SleepEx]
mov rax, qword [0x14025ae48]
jmp 0x1400ddb40
movsx eax, word [rbx + 4]
lea rdx, [rsp + 0x8c]
mov rcx, rsi
add r13d, 1
mov dword [rsp + 0x8c], eax
call fcn.1400dd8e0
jmp 0x1400ddef0
cmp ecx, 0x40
je 0x1400dde5c
add ecx, 1
mov qword [rsp + rax*8 + 0x128], rsi
mov dword [rsp + 0x120], ecx
jmp 0x1400dde5c
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, rsi
mov r9d, 2
mov r8d, 0x40
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x5c], eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r10, qword [rsp + 0x60]
xor ecx, ecx
mov esi, eax
call r10
mov edx, dword [rsp + 0x5c]
test edx, edx
jg 0x1400ddfd4
cmp esi, 0x2749
je 0x1400ddfd4
test edx, edx
je 0x1400de1b4
cmp esi, 0x274a
je 0x1400de1b4
sub esi, 0x2744
cmp esi, 3
sbb eax, eax
and eax, 8
add eax, 8
jmp 0x1400dded1
lea rax, [0x14025ae40]
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x48]
call rbx
jmp 0x1400dde86
add ecx, 1
mov qword [rsp + rax*8 + 0x548], rsi
mov dword [rsp + 0x540], ecx
jmp 0x1400dddbd
add ecx, 1
mov qword [rsp + rax*8 + 0x338], rsi
mov dword [rsp + 0x330], ecx
jmp 0x1400dde0d
mov dword [rsp + 0x58], 0
mov rdi, qword [0x14022c040]
mov rax, qword [rsp + 0x9a8]
sub rax, qword [rdi]
jne 0x1400de238
mov eax, dword [rsp + 0x58]
add rsp, 0x9b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 0x10
jmp 0x1400dded1
xor eax, eax
mov ecx, 1
jmp 0x1400de151
xor eax, eax
mov ecx, 1
jmp 0x1400de090
xor eax, eax
mov ecx, 1
jmp 0x1400de168
mov ebp, 1
jmp 0x1400ddc97
mov eax, dword [rsp + 0xa10]
mov dword [rsp + 0x74], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov r11d, dword [rsp + 0xa10]
mov qword [rsp + 0x78], rax
mov rax, qword [0x14025ae48]
test r11d, r11d
setne byte [rsp + 0x73]
test rax, rax
jne 0x1400ddb21
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x14025ae48], rax
jmp 0x1400ddb21
call fcn.1401d96b0
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 + 0x58], 0xffffffff
mov dword [rax], 0x16
jmp 0x1400de184