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

Disassembly:
jmp 0x101e6010
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x1056149d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x107b3de0]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp + 0x410]
lea edi, [esi + 0x18]
push edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x54], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov cl, 1
mov byte [ebp - 0xe], cl
mov byte [ebp - 0x50], cl
mov dword [ebp - 4], 0
cmp byte [esi + 0xd0], 0
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x34], eax
jne 0x101e65da
mov eax, dword [esi + 0xa8]
lea edi, [esi + 0xa8]
lea ecx, [esi + 0xc0]
mov dword [ebp - 0x20], ecx
mov dword [eax], 0
mov eax, dword [esi + 0xb4]
mov dword [edi + 8], 0xffffffff
mov dword [eax], 0
mov dword [esi + 0xbc], 0xffffffff
mov eax, dword [ecx]
mov dword [eax], 0
mov dword [ecx + 8], 0xffffffff
xor ecx, ecx
mov eax, dword [edi]
mov esi, dword [esi + 0x30]
mov edx, dword [eax]
test edx, edx
je 0x101e60ee
add eax, 4
cmp dword [eax], esi
je 0x101e6105
inc ecx
add eax, 4
cmp ecx, edx
jb 0x101e60e2
lea eax, [edx + 1]
mov ecx, edi
push eax
call fcn.10024b3b
mov ecx, dword [edi]
mov eax, dword [ecx]
mov dword [ecx + eax*4 + 4], esi
mov eax, dword [edi]
inc dword [eax]
mov ebx, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 0x2c], edi
mov esi, dword [ebx + 0xcc]
test esi, esi
je 0x101e612b
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x101e6146
mov esi, dword [esi + 4]
test esi, esi
jne 0x101e6117
xor dl, dl
lea ecx, [ebx + 0xa8]
lea eax, [ebx + 0x3c]
mov dword [ebp - 0x24], ecx
mov ebx, 3
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], ebx
jmp 0x101e6153
mov dl, 1
jmp 0x101e612d
mov dl, byte [ebp - 0xd]
test dl, dl
jne 0x101e6160
cmp dword [eax + 4], 0
mov byte [ebp - 0xd], dl
je 0x101e6164
mov byte [ebp - 0xd], 1
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x101e6211
mov edx, dword [ecx]
lea edi, [esi]
mov ebx, dword [ecx + 4]
mov esi, dword [esi]
mov eax, dword [edx]
mov dword [ebp - 0x38], eax
inc eax
mov dword [ebp - 0x48], eax
cmp eax, ebx
jbe 0x101e61f2
mov ecx, dword [ebp - 0x48]
mov eax, ebx
shr eax, 1
add eax, ebx
cmp eax, ecx
cmovae ecx, eax
mov dword [ebp - 0x48], ecx
lea eax, [ecx*4 + 4]
push eax
call fcn.1000abe1
mov edx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [edx]
mov ecx, dword [ecx]
mov dword [eax], ecx
xor ecx, ecx
mov eax, dword [edx]
cmp dword [eax], ecx
jbe 0x101e61d6
mov eax, dword [ebp - 0x38]
add eax, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov eax, dword [edx]
mov eax, dword [eax + ecx*4 + 4]
mov dword [ebx + ecx*4], eax
inc ecx
mov eax, dword [edx]
cmp ecx, dword [eax]
jb 0x101e61c6
push eax
call fcn.10007ebe
mov ecx, dword [ebp - 0x24]
add esp, 4
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x48]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [edx]
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 8]
mov edi, dword [ebp - 0x38]
mov dword [edx + edi*4 + 4], eax
mov eax, dword [ecx]
inc dword [eax]
mov eax, dword [ebp - 0x4c]
cmp esi, dword [eax]
jne 0x101e6170
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x14]
cmp dword [ecx + 8], edi
mov eax, dword [ebp - 0x4c]
cmova edi, dword [ecx + 8]
add eax, 0x1c
add ecx, 0xc
mov dword [ebp - 0x2c], edi
sub ebx, 1
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ebx
jne 0x101e6150
cmp byte [ebp - 0xd], 0
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
jne 0x101e624f
cmp dword [eax + 0x94], 0
mov byte [ebp - 0xd], 0
je 0x101e6253
mov byte [ebp - 0xd], 1
lea esi, [eax + 0x8c]
push ebx
push esi
lea ecx, [eax + 0xb4]
call fcn.1000867a
mov ecx, dword [ebp - 0x18]
push ebx
push esi
mov eax, dword [ecx + 0xbc]
cmp eax, edi
mov ecx, dword [ebp - 0x20]
cmova edi, eax
call fcn.1000867a
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc8]
cmp eax, edi
cmovbe eax, edi
mov dword [ebp - 0x14], eax
mov al, byte [ebp + 0x40c]
test al, al
jne 0x101e62a2
cmp byte [ebp - 0xd], al
je 0x101e65d1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
test al, al
je 0x101e62f3
mov esi, dword [edx + 0xcc]
mov ecx, 0x11e1a300
test esi, esi
je 0x101e62d4
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [esi + 4]
mov ecx, eax
test esi, esi
jne 0x101e62c3
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x44], eax
imul eax, eax, 0xf4240
sub ecx, eax
mov dword [ebp - 0x40], ecx
push dword [ebp - 0x28]
call dword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
push 0
mov byte [ebp - 0x50], 0
mov esi, dword [eax]
mov eax, dword [ecx + 0xa8]
mov edi, dword [ecx + 0xb4]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [ebp - 0x1c]
test edx, edx
jne 0x101e636d
test edi, edi
jne 0x101e636d
test esi, esi
jne 0x101e636d
mov eax, 0x10624dd3
imul dword [ebp - 0x40]
imul eax, dword [ebp - 0x44], 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, 1
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x28]
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
call eax
mov cl, 1
mov byte [ebp - 0xe], cl
mov byte [ebp - 0x50], cl
jmp 0x101e65b3
cmp dword [ebp - 0x44], 0
jne 0x101e638c
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x1c], 0x3e8
lea eax, [ecx - 1]
cmp eax, 0x3e6
cmovbe ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], ecx
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x14]
push esi
push edi
push edx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
mov dword [ebp - 0x2c], esi
call fcn.1000f3c6
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
test esi, esi
jle 0x101e64a0
mov ecx, dword [ebp - 0x18]
push dword [ecx + 0xa8]
push dword [ecx + 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x101e64a0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp]
push 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0x400
mov esi, dword [ecx + 0x30]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push eax
push 1
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call fcn.1000f3c6
call edi
cmp eax, 0x40
je 0x101e6428
cmp eax, 0x4d2
jne 0x101e642d
call fcn.1000f3c6
test esi, esi
jne 0x101e649c
cmp dword [ebp - 0x14], 0x400
jne 0x101e649c
mov ebx, dword [ebp - 0x18]
nop dword [eax]
mov esi, dword [ebx + 0x30]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push eax
push 1
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call fcn.1000f3c6
call edi
cmp eax, 0x40
je 0x101e6487
cmp eax, 0x4d2
jne 0x101e648c
call fcn.1000f3c6
test esi, esi
jne 0x101e6499
cmp dword [ebp - 0x14], 0x400
je 0x101e6440
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
dec esi
mov edi, dword [ebp - 0x28]
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
call eax
mov cl, 1
mov byte [ebp - 0xe], cl
mov byte [ebp - 0x50], cl
test esi, esi
jle 0x101e65b3
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
push ebx
lea esi, [edi + 0x8c]
push esi
call fcn.100138d1
push ebx
push esi
lea ecx, [edi + 0xb4]
call fcn.100138d1
mov eax, dword [ebp - 0x20]
mov edx, 2
add edi, 0x70
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], edi
nop dword [eax]
mov eax, dword [eax]
xor ecx, ecx
mov dword [ebp - 0x30], ecx
cmp dword [eax], ecx
jbe 0x101e6592
nop
mov eax, dword [eax + ecx*4 + 4]
mov ecx, edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1000a885
mov esi, dword [eax]
cmp esi, dword [edi + 4]
je 0x101e657b
mov edi, dword [esi + 0xc]
test edi, edi
je 0x101e656b
mov eax, dword [edi + 0x2c]
push edi
call eax
add esp, 4
test al, al
je 0x101e6578
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x101e654c
mov eax, dword [ecx + 0x14]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x101e6545
mov dword [esi + 0x10], eax
mov dword [ecx + 0x14], 0
mov dword [edi + 0x14], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x101e655f
mov dword [eax + 0x14], edi
jmp 0x101e6561
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov edi, dword [esi + 0xc]
test edi, edi
jne 0x101e6524
mov edi, dword [ebp - 0x24]
mov ecx, edi
push esi
call fcn.10010307
jmp 0x101e657b
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
inc ecx
mov dword [ebp - 0x30], ecx
mov eax, dword [eax]
cmp ecx, dword [eax]
jb 0x101e6500
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
dec edx
sub edi, 0x1c
mov dword [ebp - 0x14], edx
sub eax, 0xc
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
test edx, edx
jns 0x101e64f0
mov cl, byte [ebp - 0xe]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0xcc]
test esi, esi
je 0x101e65d7
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax + 0x10]
mov esi, dword [esi + 4]
test esi, esi
jne 0x101e65c0
jmp 0x101e65d4
mov edi, dword [ebp - 0x28]
mov cl, byte [ebp - 0xe]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
test cl, cl
je 0x101e65e8
push edi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.10010069
lea esp, [ebp + 0x404]
pop ebp
ret 8