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

Disassembly:
push 0xffffffffffffffff
push 0x49af9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov eax, dword [esp + 0x138]
push ebx
push ebp
xor ebp, ebp
mov ebx, ecx
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x10], ebx
je 0x413832
mov esi, dword [esp + 0x14c]
cmp esi, 1
jb 0x413832
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x34], ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x150]
cmp ecx, 0xffffffff
je 0x413654
mov eax, 0x10624dd3
lea ebp, [esp + 0x28]
mul ecx
shr edx, 6
mov dword [esp + 0x28], edx
mov eax, ecx
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [esp + 0x2c], edx
mov edi, dword [ebx + 4]
lea edx, [esp + 0x34]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x413694
mov edx, dword [esp + 0x34]
test edx, edx
jbe 0x41367e
lea ecx, [esp + 0x38]
cmp dword [ecx], edi
je 0x41367e
inc eax
add ecx, 4
cmp eax, edx
jb 0x413672
cmp eax, edx
jne 0x413694
cmp edx, 0x40
jae 0x413694
mov dword [esp + eax*4 + 0x38], edi
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
xor ebx, ebx
push ebp
push ebx
lea eax, [esp + 0x3c]
push ebx
lea ecx, [edi + 1]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x41382e
mov ebp, dword [esp + 0x10]
mov ecx, ebp
call fcn.00412ba0
test al, al
jne 0x4136e3
mov ecx, ebp
call fcn.00412bb0
test al, al
jne 0x4136e3
mov edx, dword [esp + 0x148]
push 0
push esi
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
jmp 0x413821
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov ecx, ebp
mov dword [esp + 0x140], eax
mov dword [esp + 0x24], 0x10
call fcn.00412bb0
mov edx, dword [esp + 0x24]
neg al
sbb eax, eax
and eax, edx
cmp esi, eax
jae 0x41372c
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x413834
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14c]
push edx
sub esi, eax
push 0
add eax, ecx
push esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0x1c], edx
mov ecx, ebx
mov ebp, eax
mov dword [esp + 0x20], edx
call fcn.00412bc0
mov edi, dword [ebx + 0x20]
add ebx, 0x1c
mov esi, dword [edi]
cmp esi, edi
je 0x413799
lea eax, [esp + 0x14]
lea ecx, [esi + 8]
push eax
call fcn.00412880
test al, al
je 0x413793
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, ebx
call fcn.00427770
jmp 0x413795
mov esi, dword [esi]
cmp esi, edi
jne 0x41376f
test ebp, ebp
jl 0x413818
mov edx, dword [esp + 0x10]
push 0x18
mov esi, dword [edx + 0x20]
mov edi, dword [esi + 4]
call fcn.0048c144
add esp, 4
mov ecx, esi
test esi, esi
jne 0x4137b9
mov ecx, eax
mov dword [eax], ecx
mov ecx, edi
test edi, edi
jne 0x4137c3
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [eax + 8]
test ecx, ecx
je 0x4137df
lea edx, [esp + 0x14]
push edx
call fcn.00412850
mov edx, dword [ebx + 8]
mov ecx, dword [esp + 0x10]
inc edx
mov dword [ebx + 8], edx
call fcn.00412bb0
test al, al
je 0x413818
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add ebp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x10]
call fcn.00412be0
test ebp, ebp
jle 0x41382b
mov ebx, ebp
mov eax, ebx
jmp 0x413834
or ebx, 0xffffffff
mov eax, ebx
jmp 0x413834
xor eax, eax
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret 0xc