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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100bd178
cmp edx, 0xffffffff
je 0x100bd2d8
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp + 0xc], 0
cmp dword [ebx + 0x78], 0
jle 0x100bd2d7
xor ecx, ecx
mov dword [ebp - 4], ecx
push esi
mov esi, dword [ebx + 0x74]
add esi, ecx
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x100bd38c
cmp dword [esi + 0x54], 0
jne 0x100bd38c
test edi, edi
je 0x100bd208
push edi
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100bd389
mov edx, dword [edi]
xor eax, eax
test edx, edx
je 0x100bd210
mov ebx, dword [esi + 0x20]
lea ecx, [edi + 4]
nop
cmp dword [ecx], ebx
je 0x100bd1e1
inc eax
add ecx, 4
cmp eax, edx
jb 0x100bd1d0
mov ebx, dword [ebp + 8]
jmp 0x100bd210
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x100bd201
lea edx, [edi + 4]
lea edx, [edx + eax*4]
nop
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], ecx
inc eax
mov ecx, dword [edi]
dec ecx
cmp eax, ecx
jb 0x100bd1f0
dec dword [edi]
mov ebx, dword [ebp + 8]
jmp 0x100bd210
cmp eax, edx
jne 0x100bd38c
mov eax, dword [esi + 0x28]
cmp eax, 2
je 0x100bd2dd
mov edx, dword [esi + 0x20]
mov ecx, 2
sub ecx, eax
add eax, 0x24
add eax, esi
cmp dword [ebx + 0x91b8], 0
je 0x100bd253
push dword [ebx + 0x91bc]
push 0
push 0
push 0
push ecx
push eax
mov eax, dword [ebx + 0x91b8]
push edx
mov eax, dword [eax + 0xc]
call eax
add esp, 0x1c
jmp 0x100bd25e
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x100bd295
cmp eax, 0xffffffff
jne 0x100bd281
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x100bd389
cmp eax, 0x2733
je 0x100bd389
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100bc6c0
add esp, 0xc
jmp 0x100bd389
add dword [esi + 0x28], eax
cmp dword [esi + 0x28], 2
jne 0x100bd389
movzx ecx, byte [esi + 0x24]
movzx eax, byte [esi + 0x25]
shl ecx, 8
or ecx, eax
push ecx
mov dword [esi + 0x2c], ecx
call dword [0x10163180]
add esp, 4
mov dword [esi + 0x30], eax
test eax, eax
jne 0x100bd382
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100bc6c0
add esp, 0xc
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
sub ecx, dword [esi + 0x34]
add edx, dword [esi + 0x34]
cmp dword [ebx + 0x91b8], 0
mov eax, dword [esi + 0x20]
je 0x100bd314
push dword [ebx + 0x91bc]
push 0
push 0
push 0
push ecx
push edx
push eax
mov eax, dword [ebx + 0x91b8]
mov eax, dword [eax + 0xc]
call eax
add esp, 0x1c
jmp 0x100bd31f
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x100bd34b
cmp eax, 0xffffffff
jne 0x100bd33a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x100bd389
cmp eax, 0x2733
je 0x100bd389
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100bc6c0
add esp, 0xc
jmp 0x100bd389
add dword [esi + 0x34], eax
mov eax, dword [esi + 0x2c]
cmp dword [esi + 0x34], eax
jne 0x100bd389
push dword [ebp + 0x14]
push 1
push dword [ebp + 0xc]
push eax
push dword [esi + 0x30]
push ebx
call fcn.100bce10
push dword [esi + 0x30]
call dword [0x10163188]
add esp, 0x1c
mov dword [esi + 0x30], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
add dword [ebp - 4], 0x58
inc eax
mov dword [ebp + 0xc], eax
cmp eax, dword [ebx + 0x78]
jge 0x100bd2d6
mov ecx, dword [ebp - 4]
jmp 0x100bd193