Function at 0x180003df8
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 0x18000423a
cmp eax, 0x10
jne 0x180003e79
mov rax, qword [rsi + 0xa0]
lea rcx, [0x180017840]
mov rdx, qword [rax]
cmp rdx, qword [rcx]
jne 0x180003e6c
mov rdx, qword [rax + 8]
cmp rdx, qword [rcx + 8]
jne 0x180003e6c
xor eax, eax
jmp 0x180003e71
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x180004267
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 0x1800040da
cmp dword [rbp + 0x30], 2
je 0x180003ec4
mov eax, r15d
jmp 0x180004230
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 0x180003efa
mov ecx, 0x139f
call qword [sym.imp.WS2_32.dll_WSASetLastError]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x18000422b
mov r8d, edi
mov rdx, r12
mov rcx, qword [rbp + 0x88]
call fcn.180002210
test eax, eax
je 0x180003f1e
mov ecx, recv
call qword [sym.imp.WS2_32.dll_WSASetLastError]
nop
jmp 0x180003eec
mov r8d, r14d
mov rdx, r13
mov rcx, qword [rbp + 0x88]
call fcn.180001b80
test eax, eax
js 0x1800040a9
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.18000105c
cmp qword [r14 + 0x300], 0
je 0x180004079
mov ecx, dword [r14 + 0x308]
sub ecx, dword [r14 + 0x300]
cmp ecx, 0xe
jle 0x180004079
mov r9, qword [r14 + 0x300]
lea r15, [r14 + 0x30]
mov r8, qword [r15]
cmp r8, qword [r9 + 4]
jne 0x180003fa7
movzx r8d, word [r15 + 8]
cmp r8w, word [r9 + 0xc]
jne 0x180003fa7
xor eax, eax
jmp 0x180003fac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x18000405a
mov r12d, dword [r9]
test r12d, r12d
je 0x180004079
cmp ecx, r12d
jl 0x180004079
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.1800011ec
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.18000105c
cmp qword [r14 + 0x320], 0
jne 0x180004028
xor r8d, r8d
jmp 0x180004036
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.1800012a8
jmp 0x180003f5e
mov rax, qword [r14 + 0x300]
mov qword [r14 + 0x308], rax
mov edx, 0x400
lea rcx, [r14 + 0x2f8]
call fcn.1800011ec
mov r8d, esi
mov r13, qword [rsp + 0xb0]
mov rdx, r13
mov rcx, qword [rbp + 0x88]
call fcn.180001b80
test eax, eax
jns 0x180003f3f
mov rsi, qword [rsp + 0xa0]
mov r15d, 1
cmp eax, 0xfffffffd
jne 0x1800040bf
mov ecx, 0x5b6
call qword [sym.imp.WS2_32.dll_WSASetLastError]
nop
jmp 0x180003eec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, r15d
mov rcx, rbp
call fcn.1800052fc
xor eax, eax
jmp 0x180004230
cmp edi, 0xc
jne 0x180004220
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 0x180004220
cmp cl, r15b
jne 0x180004220
test r14b, 0xfe
jne 0x180004220
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbp + 0x30], 0
jne 0x180004158
mov ecx, 0x139f
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea rcx, [rbp + 0x38]
jmp 0x180003eef
cmp dword [rbp + 0x30], 2
jne 0x180004198
cmp r13d, dword [rbp + 0x2c]
jne 0x180004191
cmp edi, dword [rbp + 0x28]
je 0x1800041fa
test edi, edi
jne 0x180004191
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 0x1800041fa
mov ecx, 0x2746
jmp 0x180004149
cmp dword [rbp + 0x2c], 0
jne 0x1800041b1
mov dword [rbp + 0x2c], r13d
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [rbp + 0x1c], eax
and dword [rbp + 0x20], 0
jmp 0x1800041b7
cmp r13d, dword [rbp + 0x2c]
jne 0x180004191
cmp edi, dword [rbp + 0x28]
jne 0x1800041f6
mov dword [rbp + 0x30], 2
mov rdi, qword [rbp + 8]
mov rcx, qword [rbp + 0x10]
mov rcx, qword [rcx + 0x68]
call fcn.180002ce0
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 0x1800040d3
test edi, edi
jne 0x180004191
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rbp + 0x18], 0
jne 0x180004213
cmp r14b, r15b
jne 0x180004213
mov dword [rbp + 0x18], r15d
mov rcx, rbp
call fcn.180005100
jmp 0x1800040d3
mov ecx, recv
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, 2
cmp eax, 2
je 0x18000427e
jmp 0x180003e1f
cmp eax, 0xffffffff
jne 0x180003e1f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1800042ab
cmp eax, 0x2744
je 0x180003e1f
cmp eax, 0x2746
jne 0x180004297
jmp 0x180003e1f
mov dword [rsi + 0x48], r15d
mov dword [rsi + 0x4c], 5
and dword [rsi + 0x50], 0
and dword [rsi + 0x54], 0
xor eax, eax
jmp 0x1800042ae
mov rcx, qword [rsi + 0x68]
call fcn.180002ce0
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 0x18000427a
mov eax, r15d
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret