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

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x100ef8ed
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x101170e4]
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 - 0x14], esi
mov ebx, dword [ebp + 0x410]
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x5c], 1
cmp byte [esi + 0xd0], 0
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], eax
jne 0x100db238
mov eax, dword [esi + 0xa8]
lea edi, [esi + 0xa8]
lea ecx, [esi + 0xc0]
mov dword [ebp - 0x1c], 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 0x100dad6c
add eax, 4
nop
cmp dword [eax], esi
je 0x100dad83
inc ecx
add eax, 4
cmp ecx, edx
jb 0x100dad60
lea eax, [edx + 1]
mov ecx, edi
push eax
call fcn.100da4c0
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 - 0x14]
xor edi, edi
mov dword [ebp - 0x54], edi
mov esi, dword [ebx + 0xcc]
test esi, esi
je 0x100dada9
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100dadc4
mov esi, dword [esi + 4]
test esi, esi
jne 0x100dad95
xor dl, dl
lea ecx, [ebx + 0xa8]
lea eax, [ebx + 0x3c]
mov dword [ebp - 0x34], ecx
mov ebx, 3
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ebx
jmp 0x100dadcb
mov dl, 1
jmp 0x100dadab
mov dl, byte [ebp - 0xd]
test dl, dl
jne 0x100dadd8
cmp dword [eax + 4], 0
mov byte [ebp - 0xd], dl
je 0x100daddc
mov byte [ebp - 0xd], 1
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x100dae8b
mov ebx, dword [ecx]
mov edi, esi
mov esi, dword [esi]
mov dword [ebp - 0x24], edi
mov edx, dword [ebx]
lea eax, [edx + 1]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x30], eax
jbe 0x100dae6f
mov ecx, dword [ebp - 0x30]
shr eax, 1
add eax, dword [ebp - 0x4c]
cmp eax, ecx
cmovae ecx, eax
mov dword [ebp - 0x30], ecx
lea eax, [ecx*4 + 4]
push eax
call fcn.10084db4
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], ebx
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebx], ecx
xor ecx, ecx
mov edx, dword [eax]
cmp dword [edx], ecx
jbe 0x100dae59
lea eax, [ebx + 4]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov edi, eax
mov eax, dword [edx + ecx*4 + 4]
mov dword [edi + ecx*4], eax
inc ecx
mov edx, dword [ebx]
cmp ecx, dword [edx]
jb 0x100dae45
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
push edx
call fcn.10085d24
mov ecx, dword [ebp - 0x34]
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov edx, dword [ebx]
mov eax, dword [edi + 8]
mov dword [ebx + edx*4 + 4], eax
mov eax, dword [ecx]
inc dword [eax]
mov eax, dword [ebp - 0x20]
cmp esi, dword [eax]
jne 0x100dade8
mov edi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x18]
cmp dword [ecx + 8], edi
mov eax, dword [ebp - 0x20]
cmova edi, dword [ecx + 8]
add eax, 0x1c
add ecx, 0xc
mov dword [ebp - 0x54], edi
sub ebx, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], ebx
jne 0x100dadc8
cmp byte [ebp - 0xd], 0
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x14]
jne 0x100daec9
cmp dword [eax + 0x94], 0
mov byte [ebp - 0xd], 0
je 0x100daecd
mov byte [ebp - 0xd], 1
lea esi, [eax + 0x8c]
push ebx
push esi
lea ecx, [eax + 0xb4]
call fcn.100db460
mov ecx, dword [ebp - 0x14]
push ebx
push esi
mov eax, dword [ecx + 0xbc]
cmp eax, edi
mov ecx, dword [ebp - 0x1c]
cmova edi, eax
call fcn.100db460
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc8]
cmp eax, edi
cmovbe eax, edi
mov dword [ebp - 0x24], eax
mov al, byte [ebp + 0x40c]
test al, al
jne 0x100daf1c
cmp byte [ebp - 0xd], al
je 0x100db235
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
test al, al
je 0x100daf70
mov esi, dword [edx + 0xcc]
mov ecx, 0x11e1a300
test esi, esi
je 0x100daf51
nop dword [eax]
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 0x100daf40
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 - 0x3c]
call dword [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
push 0
mov byte [ebp - 0x5c], 0
mov esi, dword [eax]
mov eax, dword [ecx + 0xa8]
mov edi, dword [ecx + 0xb4]
mov dword [ebp - 0x28], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x100dafe9
test edi, edi
jne 0x100dafe9
test esi, esi
jne 0x100dafe9
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]
push dword [ebp - 0x3c]
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call eax
mov al, 1
mov byte [ebp - 0xd], al
mov byte [ebp - 0x5c], al
jmp 0x100db210
cmp dword [ebp - 0x44], 0
jne 0x100db008
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x28], 0x3e8
lea eax, [ecx - 1]
cmp eax, 0x3e6
cmovbe ecx, dword [ebp - 0x28]
mov dword [ebp - 0x40], ecx
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x24]
push esi
push edi
push edx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
mov dword [ebp - 0x24], esi
call fcn.100d1380
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jle 0x100db0f9
mov edi, dword [ebp - 0x14]
push dword [edi + 0xa8]
push dword [edi + 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100db0f9
lea eax, [ebp]
mov dword [ebp - 0x50], 0x400
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 1
lea eax, [ebp - 0x50]
mov dword [ebp - 0x2c], 0
push eax
push dword [edi + 0x30]
mov dword [ebp - 0x28], 0x10117038
call fcn.100da2c0
add esp, 0x14
cmp eax, 0x400
jne 0x100db0f8
mov ebx, edi
nop word [eax + eax]
mov esi, dword [ebx + 0x30]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], 0
push eax
push 1
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call fcn.100d1380
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x54], esi
cmp eax, 0x40
je 0x100db0e0
cmp eax, 0x4d2
jne 0x100db0e5
call fcn.100d1380
test edi, edi
jne 0x100db0f2
cmp dword [ebp - 0x18], 0x400
je 0x100db090
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x24]
dec esi
push dword [ebp - 0x3c]
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call eax
mov al, 1
mov byte [ebp - 0xd], al
mov byte [ebp - 0x5c], al
test esi, esi
jle 0x100db210
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push ebx
lea esi, [edi + 0x8c]
push esi
call fcn.100d9ef0
push ebx
push esi
lea ecx, [edi + 0xb4]
call fcn.100d9ef0
mov eax, dword [ebp - 0x1c]
lea ebx, [edi + 0x70]
mov edx, 2
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x54], edx
mov eax, dword [eax]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
cmp dword [eax], ecx
jbe 0x100db1f2
mov eax, dword [eax + ecx*4 + 4]
mov ecx, ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.100d12c0
mov esi, dword [eax]
cmp esi, dword [ebx + 4]
je 0x100db1db
mov edi, dword [esi + 0xc]
lea ebx, [esi + 0xc]
test edi, edi
je 0x100db1cb
nop word [eax + eax]
mov eax, dword [edi + 0x2c]
push edi
call eax
add esp, 4
test al, al
je 0x100db1d8
mov ecx, dword [ebx]
test ecx, ecx
je 0x100db1a6
mov eax, dword [ecx + 0x14]
mov dword [ebx], eax
test eax, eax
jne 0x100db19f
mov dword [ebx + 4], eax
mov dword [ecx + 0x14], 0
mov ecx, dword [ebp - 0x38]
mov dword [edi + 0x14], 0
mov eax, dword [ecx + 4]
test eax, eax
je 0x100db1bc
mov dword [eax + 0x14], edi
jmp 0x100db1be
mov dword [ecx], edi
mov dword [ecx + 4], edi
lea ebx, [esi + 0xc]
mov edi, dword [esi + 0xc]
test edi, edi
jne 0x100db180
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
push esi
call fcn.100d11c0
jmp 0x100db1db
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x18], ecx
mov eax, dword [eax]
cmp ecx, dword [eax]
jb 0x100db153
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x1c]
dec edx
sub ebx, 0x1c
mov dword [ebp - 0x54], edx
sub eax, 0xc
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
test edx, edx
jns 0x100db144
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ecx + 0xcc]
test esi, esi
je 0x100db22f
nop dword [eax]
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax + 0x10]
mov esi, dword [esi + 4]
test esi, esi
jne 0x100db220
cmp byte [ebp - 0xd], 0
je 0x100db23d
mov eax, dword [ebp - 0x48]
push dword [ebp - 0x3c]
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.1008511a
lea esp, [ebp + 0x404]
pop ebp
ret 8