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

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
xor eax, eax
cmp ebp, eax
push esi
push edi
je 0x10014af8
cmp dword [ebx + 0x78], eax
mov dword [esp + 0xc], eax
jle 0x10014af8
mov dword [esp + 0x10], eax
mov esi, dword [ebx + 0x74]
add esi, dword [esp + 0x10]
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x10014adf
cmp dword [esi + 0x54], 0
jne 0x10014adf
push ebp
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10014adf
mov edi, dword [ebp]
xor eax, eax
test edi, edi
jbe 0x10014969
mov edx, dword [esi + 0x20]
lea ecx, [ebp + 4]
cmp dword [ecx], edx
je 0x10014940
add eax, 1
add ecx, 4
cmp eax, edi
jb 0x10014930
jmp 0x10014969
add edi, 0xffffffff
cmp eax, edi
jae 0x10014965
lea ecx, [ebp + eax*4 + 4]
jmp 0x10014950
mov edx, dword [ecx + 4]
mov dword [ecx], edx
mov edx, dword [ebp]
add eax, 1
sub edx, 1
add ecx, 4
cmp eax, edx
jb 0x10014950
add dword [ebp], 0xffffffff
mov ecx, dword [esi + 0x28]
cmp ecx, 2
mov edi, dword [esi + 0x20]
je 0x10014a2e
mov eax, 2
sub eax, ecx
lea edx, [ecx + esi + 0x24]
mov ecx, dword [ebx + 0x91b8]
test ecx, ecx
je 0x100149ab
mov ebp, dword [ebx + 0x91bc]
push ebp
push 0
push 0
push 0
push eax
mov eax, dword [ecx + 0xc]
push edx
push edi
call eax
mov ebp, dword [esp + 0x34]
add esp, 0x1c
jmp 0x100149b6
push 0
push eax
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x100149f2
cmp eax, 0xffffffff
jne 0x100149d9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x10014adf
cmp eax, 0x2733
je 0x10014adf
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
push ecx
push edx
mov eax, ebx
call fcn.10015060
add esp, 8
jmp 0x10014adf
add dword [esi + 0x28], eax
cmp dword [esi + 0x28], 2
jne 0x10014adf
movzx ecx, byte [esi + 0x25]
xor eax, eax
mov ah, byte [esi + 0x24]
or eax, ecx
push eax
mov dword [esi + 0x2c], eax
call dword [0x10138fd4]
add esp, 4
test eax, eax
mov dword [esi + 0x30], eax
je 0x10014aff
mov dword [esi + 0x34], 0
jmp 0x10014adf
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
sub eax, edx
add ecx, edx
mov edx, dword [ebx + 0x91b8]
test edx, edx
je 0x10014a63
mov ebp, dword [ebx + 0x91bc]
mov edx, dword [edx + 0xc]
push ebp
push 0
push 0
push 0
push eax
push ecx
push edi
call edx
mov ebp, dword [esp + 0x34]
add esp, 0x1c
jmp 0x10014a6e
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x10014a9f
cmp eax, 0xffffffff
jne 0x10014a89
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x10014adf
cmp eax, 0x2733
je 0x10014adf
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov eax, ebx
call fcn.10015060
add esp, 8
jmp 0x10014adf
add dword [esi + 0x34], eax
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x2c]
cmp ecx, eax
jne 0x10014adf
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esi + 0x30]
push 1
push ecx
push eax
push edx
mov eax, ebx
call fcn.10014de0
mov eax, dword [esi + 0x30]
add esp, 0x14
push eax
call dword [0x10138fdc]
add esp, 4
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0xc]
add dword [esp + 0x10], 0x58
add eax, 1
cmp eax, dword [ebx + 0x78]
mov dword [esp + 0xc], eax
jl 0x100148f5
pop edi
pop esi
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 8
mov dword [esp + 4], edx
mov eax, ebx
jmp fcn.10015060