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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x10112200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x24c], ebx
push esi
mov esi, dword [ebp + 8]
push edi
test ebx, ebx
je 0x10071096
push ebx
push esi
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0x10], 0
call fcn.10072750
add esp, 8
cmp eax, 0xffffffff
je 0x1007142f
cmp eax, 1
je 0x1007120a
call fcn.10074ce0
mov edx, eax
add dword [ebp + 0x10], edx
mov ecx, dword [esi + 0x20]
mov eax, edx
sub eax, ecx
mov dword [esi + 0x3c], edx
sub ecx, edx
cmp eax, 0x5265c00
cmovb ecx, eax
cmp ecx, 0x3e8
jb 0x100710c5
push esi
call fcn.10070420
add esp, 4
push 1
push ebx
push esi
call fcn.100741b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x1007142f
cmp eax, 1
je 0x1007120a
xor edx, edx
mov dword [ebp - 0x22c], 0
lea edi, [esi + 0x2878]
mov dword [ebp - 0x230], 0
test edi, edi
lea ecx, [ebp - 0x234]
cmove ecx, edx
lea edx, [ebp - 0x20]
cmove edx, dword [ebp - 0x22c]
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x23c], edx
push 0
push 0
push ecx
lea eax, [esi + 0x878]
mov dword [ebp - 0x234], 0x1c
mov dword [ebp - 0x250], eax
mov eax, dword [esi + 0x24]
push edx
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x22c], 0
push eax
push 1
lea eax, [ebp - 0x254]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
je 0x10071261
test dword [ebp - 0x22c], 0x8000
jne 0x1007142f
test edi, edi
je 0x100711a7
movups xmm0, xmmword [ebp - 0x18]
push dword [ebp - 0x1e]
movups xmmword [edi], xmm0
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [edi + 0x10], ax
mov ax, word [ebp - 8]
mov word [edi + 0x12], ax
mov eax, dword [ebp - 0x248]
cmp eax, 0xfffffffe
je 0x10071238
test eax, eax
js 0x1007142f
je 0x10071277
add dword [esi + 0x289c], eax
lea ecx, [esi + 0x878]
inc dword [esi + 0x28a0]
mov dword [esi + 0x2890], eax
mov eax, dword [esi + 0x28a4]
mov dword [esi + 0x288c], ecx
test eax, eax
je 0x10071220
push ebx
push esi
call eax
add esp, 8
cmp eax, 0xffffffff
je 0x1007142f
cmp eax, 1
jne 0x10071220
test ebx, ebx
je 0x10071238
cmp dword [ebx], 0
je 0x10071238
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bb287
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.10072fc0
add esp, 8
cmp eax, 0xffffffff
je 0x1007142f
cmp eax, 1
je 0x1007120a
mov eax, dword [ebp - 0x230]
inc eax
mov dword [ebp - 0x230], eax
cmp eax, 0x100
jge 0x1007142f
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x23c]
jmp 0x10071120
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x10071277
sub eax, 0x13
jne 0x1007142f
push 1
push ebx
push esi
call fcn.100741b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x1007142f
cmp eax, 1
je 0x1007120a
test ebx, ebx
je 0x100712b5
push ebx
push esi
call fcn.10072750
add esp, 8
cmp eax, 0xffffffff
je 0x1007142f
cmp eax, 1
je 0x1007120a
mov eax, dword [esi + 0x3c]
mov edi, dword [ebp + 0x10]
sub eax, edi
cmp eax, 0x5265c00
jb 0x1007141c
call fcn.10074ce0
mov ebx, eax
mov dword [esi + 0x3c], eax
sub ebx, edi
cmp ebx, 0x5265c00
jb 0x1007141c
mov ecx, edi
mov dword [ebp - 0x228], 0
sub ecx, eax
mov dword [ebp - 0x124], 1
mov eax, dword [esi]
cmp ecx, 0x5265c00
mov dword [ebp - 0x244], eax
cmovb ebx, ecx
mov ecx, 0x1a9fbe77
mov eax, ebx
mov dword [ebp - 0x22c], ebx
mul ecx
mov eax, ebx
mov edi, edx
mov edx, 0x624dd2f
mul edx
mov ebx, eax
mov dword [ebp - 0x238], edx
xor eax, eax
mul ecx
mov ecx, eax
mov dword [ebp - 0x23c], edx
xor eax, eax
mov edx, 0x624dd2f
mul edx
add ecx, edi
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], edx
mov edx, dword [ebp - 0x23c]
adc edx, 0
add ebx, ecx
mov ecx, dword [ebp - 0x238]
mov ebx, 0
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0x234]
adc eax, eax
add ecx, edx
mov edx, dword [ebp - 0x230]
adc edx, eax
mov eax, edi
sub eax, ecx
sbb ebx, edx
shrd eax, ebx, 1
shr ebx, 1
add eax, ecx
adc ebx, edx
shrd eax, ebx, 9
mov ebx, dword [ebp - 0x244]
mov dword [ebp - 0x25c], eax
imul eax, eax, 0x3e8
mov dword [ebp - 0x120], ebx
sub edi, eax
imul eax, edi, 0x3e8
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x25c]
push eax
push 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebx + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1007142f
je 0x10071414
lea eax, [ebp - 0x228]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
lea eax, [ebp - 0x124]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10071414
call fcn.10074ce0
mov ebx, dword [ebp - 0x24c]
mov edx, eax
jmp 0x100710a0
call fcn.10074ce0
mov dword [esi + 0x3c], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bb287
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bb287
mov esp, ebp
pop ebp
ret