Function at 0x140003dfc
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rsi, rcx
mov r15d, 1
xor r9d, r9d
mov r8d, 0x598
mov rdx, qword [rsi + 0xa0]
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x14000423e
cmp eax, 0x10
jne 0x140003e7d
mov rax, qword [rsi + 0xa0]
lea rcx, [0x140018ce0]
mov rdx, qword [rax]
cmp rdx, qword [rcx]
jne 0x140003e70
mov rdx, qword [rax + 8]
cmp rdx, qword [rcx + 8]
jne 0x140003e70
xor eax, eax
jmp 0x140003e75
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x14000426b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14d, dword [rsi + 0x244]
mov dword [rsp + 0xa8], r14d
mov r13, qword [rsi + 0x250]
mov qword [rsp + 0xb0], r13
mov r12, qword [rsi + 0xa0]
lea rbp, [rsi + 0x268]
cmp edi, 0x18
jl 0x1400040de
cmp dword [rbp + 0x30], 2
je 0x140003ec8
mov eax, r15d
jmp 0x140004234
lea rbx, [rbp + 0x38]
mov qword [rsp + 0xb8], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp dword [rbp + 0x30], 2
je 0x140003efe
mov ecx, 0x139f
call qword [sym.imp.WS2_32.dll_WSASetLastError]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14000422f
mov r8d, edi
mov rdx, r12
mov rcx, qword [rbp + 0x88]
call fcn.140002210
test eax, eax
je 0x140003f22
mov ecx, recv
call qword [sym.imp.WS2_32.dll_WSASetLastError]
nop
jmp 0x140003ef0
mov r8d, r14d
mov rdx, r13
mov rcx, qword [rbp + 0x88]
call fcn.140001b80
test eax, eax
js 0x1400040ad
mov esi, dword [rsp + 0xa8]
mov r14, qword [rbp + 8]
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, eax
mov rdx, r13
lea rcx, [r14 + 0x2f8]
call fcn.14000105c
cmp qword [r14 + 0x300], 0
je 0x14000407d
mov ecx, dword [r14 + 0x308]
sub ecx, dword [r14 + 0x300]
cmp ecx, 0xe
jle 0x14000407d
mov r9, qword [r14 + 0x300]
lea r15, [r14 + 0x30]
mov r8, qword [r15]
cmp r8, qword [r9 + 4]
jne 0x140003fab
movzx r8d, word [r15 + 8]
cmp r8w, word [r9 + 0xc]
jne 0x140003fab
xor eax, eax
jmp 0x140003fb0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x14000405e
mov r12d, dword [r9]
test r12d, r12d
je 0x14000407d
cmp ecx, r12d
jl 0x14000407d
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [r14 + 0x1c], eax
mov rax, qword [r14 + 0x320]
mov qword [r14 + 0x328], rax
mov edx, 0x400
lea rcx, [r14 + 0x318]
call fcn.1400011ec
lea r8d, [r12 - 0xe]
mov rdx, qword [r14 + 0x300]
add rdx, 0xe
mov qword [rsp + 0x20], r15
mov r9d, 1
lea rcx, [r14 + 0x318]
call fcn.14000105c
cmp qword [r14 + 0x320], 0
jne 0x14000402c
xor r8d, r8d
jmp 0x14000403a
mov r8d, dword [r14 + 0x328]
sub r8d, dword [r14 + 0x320]
mov rcx, qword [r14 + 0x28]
mov rax, qword [rcx]
mov rdx, qword [r14 + 0x320]
call qword [rax]
mov edx, r12d
lea rcx, [r14 + 0x2f8]
call fcn.1400012a8
jmp 0x140003f62
mov rax, qword [r14 + 0x300]
mov qword [r14 + 0x308], rax
mov edx, 0x400
lea rcx, [r14 + 0x2f8]
call fcn.1400011ec
mov r8d, esi
mov r13, qword [rsp + 0xb0]
mov rdx, r13
mov rcx, qword [rbp + 0x88]
call fcn.140001b80
test eax, eax
jns 0x140003f43
mov rsi, qword [rsp + 0xa0]
mov r15d, 1
cmp eax, 0xfffffffd
jne 0x1400040c3
mov ecx, 0x5b6
call qword [sym.imp.WS2_32.dll_WSASetLastError]
nop
jmp 0x140003ef0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, r15d
mov rcx, rbp
call fcn.1400052fc
xor eax, eax
jmp 0x140004234
cmp edi, 0xc
jne 0x140004224
movzx eax, word [r12]
mov word [rsp + 0x38], ax
mov cl, byte [r12 + 2]
mov byte [rsp + 0x3a], cl
mov r14b, byte [r12 + 3]
mov byte [rsp + 0x3b], r14b
mov r13d, dword [r12 + 4]
mov dword [rsp + 0x3c], r13d
mov edi, dword [r12 + 8]
mov dword [rsp + 0x40], edi
mov edx, 0xbb4f
cmp ax, dx
jne 0x140004224
cmp cl, r15b
jne 0x140004224
test r14b, 0xfe
jne 0x140004224
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbp + 0x30], 0
jne 0x14000415c
mov ecx, 0x139f
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea rcx, [rbp + 0x38]
jmp 0x140003ef3
cmp dword [rbp + 0x30], 2
jne 0x14000419c
cmp r13d, dword [rbp + 0x2c]
jne 0x140004195
cmp edi, dword [rbp + 0x28]
je 0x1400041fe
test edi, edi
jne 0x140004195
mov edi, dword [rbp + 0x24]
call qword [sym.imp.WINMM.dll_timeGetTime]
mov r11d, eax
mov rax, qword [rbp + 8]
mov ecx, dword [rax + 0x248]
add ecx, ecx
sub r11d, edi
cmp r11d, ecx
jbe 0x1400041fe
mov ecx, 0x2746
jmp 0x14000414d
cmp dword [rbp + 0x2c], 0
jne 0x1400041b5
mov dword [rbp + 0x2c], r13d
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [rbp + 0x1c], eax
and dword [rbp + 0x20], 0
jmp 0x1400041bb
cmp r13d, dword [rbp + 0x2c]
jne 0x140004195
cmp edi, dword [rbp + 0x28]
jne 0x1400041fa
mov dword [rbp + 0x30], 2
mov rdi, qword [rbp + 8]
mov rcx, qword [rbp + 0x10]
mov rcx, qword [rcx + 0x68]
call fcn.140002ce0
mov rcx, qword [rdi + 0x358]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, r15d
xchg dword [rdi + 0x20], eax
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400040d7
test edi, edi
jne 0x140004195
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rbp + 0x18], 0
jne 0x140004217
cmp r14b, r15b
jne 0x140004217
mov dword [rbp + 0x18], r15d
mov rcx, rbp
call fcn.140005100
jmp 0x1400040d7
mov ecx, recv
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, 2
cmp eax, 2
je 0x140004282
jmp 0x140003e23
cmp eax, 0xffffffff
jne 0x140003e23
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400042af
cmp eax, 0x2744
je 0x140003e23
cmp eax, 0x2746
jne 0x14000429b
jmp 0x140003e23
mov dword [rsi + 0x48], r15d
mov dword [rsi + 0x4c], 5
and dword [rsi + 0x50], 0
and dword [rsi + 0x54], 0
xor eax, eax
jmp 0x1400042b2
mov rcx, qword [rsi + 0x68]
call fcn.140002ce0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov dword [rsi + 0x48], r15d
mov dword [rsi + 0x4c], 4
mov dword [rsi + 0x50], eax
mov dword [rsi + 0x54], r15d
jmp 0x14000427e
mov eax, r15d
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret