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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4276fd
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4330e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
push eax
push 0x74
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x40], eax
call fcn.00402cc0
add esp, 8
mov edi, eax
mov ecx, dword [ebp - 0x28]
xor edx, edx
xor esi, esi
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x40b3ec
mov edx, dword [ecx + 8]
mov esi, eax
lock inc dword [eax + 8]
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x20], eax
lea eax, [esi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x40b8d0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x24], 0x1c
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [ebp - 0x14], eax
test esi, esi
je 0x40b453
mov dword [edi + 0x28], edx
mov dword [edi + 0x2c], esi
lock inc dword [eax]
jmp 0x40b456
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x30]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x34], ecx
lea ecx, [edi + 0x38]
mov dword [edi + 0x30], eax
call fcn.0040b700
push dword [ebp - 0x34]
lea ecx, [edi + 0x58]
sub esp, 8
call fcn.0040bc40
test esi, esi
je 0x40b494
mov ecx, dword [ebp - 0x14]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x40b494
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], ecx
add eax, 0x18
mov dword [ebp - 0x1c], ecx
lock inc dword [eax]
mov eax, dword [ebp - 0x28]
push 0
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x40b4cd
mov ecx, dword [ebx + 0x18]
push 0x2719
push edi
call fcn.00403e40
jmp 0x40b581
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x18], eax
lea eax, [edi + 0x24]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x40b526
cmp eax, 0x3e5
je 0x40b526
push dword [ebp - 0x14]
mov ecx, dword [ebx + 0x18]
push eax
push edi
call fcn.00403e40
jmp 0x40b581
mov esi, dword [ebx + 0x18]
lea edx, [edi + 0x1c]
mov ebx, 1
xor eax, eax
mov ecx, ebx
lock cmpxchg dword [edx], ecx
cmp eax, ebx
jne 0x40b581
push edi
push 2
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x40b581
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x40b56c
mov dword [eax + 0x14], edi
jmp 0x40b56f
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
lea eax, [esi + 0x34]
xchg dword [eax], ebx
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
call fcn.0040b7d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e039
mov esp, ebp
pop ebp
ret 0x18