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

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x1000b779
cmp ecx, 0xffffffff
je 0x1000b8dd
push ebp
mov ebp, dword [esp + 0x14]
push edi
xor edi, edi
mov dword [esp + 0xc], edi
cmp dword [ebp + 0x78], edi
jle 0x1000b8db
mov dword [esp + 0x10], edi
xor eax, eax
push esi
mov esi, dword [ebp + 0x74]
add esi, eax
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x1000b996
cmp dword [esi + 0x54], 0
jne 0x1000b996
test ebx, ebx
je 0x1000b80e
push ebx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1000b992
mov edx, dword [ebx]
xor eax, eax
test edx, edx
je 0x1000b816
mov edi, dword [esi + 0x20]
lea ecx, [ebx + 4]
cmp dword [ecx], edi
je 0x1000b7e3
inc eax
add ecx, 4
cmp eax, edx
jb 0x1000b7d1
mov edi, dword [esp + 0x10]
jmp 0x1000b816
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x1000b803
lea edi, [eax + 1]
lea edi, [ebx + edi*4]
mov ecx, dword [edi + 4]
lea edi, [edi + 4]
mov dword [edi - 4], ecx
inc eax
mov edx, dword [ebx]
lea ecx, [edx - 1]
cmp eax, ecx
jb 0x1000b7f0
mov edi, dword [esp + 0x10]
lea eax, [edx - 1]
mov dword [ebx], eax
jmp 0x1000b816
cmp eax, ecx
jne 0x1000b996
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
cmp edx, 2
je 0x1000b8e2
mov eax, 2
sub eax, edx
add edx, 0x24
add edx, esi
cmp dword [ebp + 0x91b8], 0
je 0x1000b859
push dword [ebp + 0x91bc]
push 0
push 0
push 0
push eax
mov eax, dword [ebp + 0x91b8]
push edx
push ecx
mov eax, dword [eax + 0xc]
call eax
add esp, 0x1c
jmp 0x1000b864
push 0
push eax
push edx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1000b89a
cmp eax, 0xffffffff
jne 0x1000b887
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x1000b992
cmp eax, 0x2733
je 0x1000b992
push dword [esp + 0x28]
push edi
push ebp
call fcn.1000ac20
add esp, 0xc
jmp 0x1000b992
add dword [esi + 0x28], eax
cmp dword [esi + 0x28], 2
jne 0x1000b992
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 [section..data]
add esp, 4
mov dword [esi + 0x30], eax
test eax, eax
jne 0x1000b98b
push dword [esp + 0x28]
push edi
push ebp
call fcn.1000ac20
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
add esp, 8
ret
mov ebx, dword [esi + 0x30]
add ebx, dword [esi + 0x34]
mov edx, dword [esi + 0x2c]
sub edx, dword [esi + 0x34]
mov eax, dword [ebp + 0x91b8]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x1000b91c
push dword [ebp + 0x91bc]
mov eax, dword [eax + 0xc]
push 0
push 0
push 0
push edx
push dword [esp + 0x24]
push ecx
call eax
add esp, 0x1c
jmp 0x1000b92a
push 0
push edx
push dword [esp + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1000b955
cmp eax, 0xffffffff
jne 0x1000b945
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x1000b992
cmp eax, 0x2733
je 0x1000b992
push dword [esp + 0x28]
push edi
push ebp
call fcn.1000ac20
add esp, 0xc
jmp 0x1000b992
add dword [esi + 0x34], eax
mov eax, dword [esi + 0x2c]
cmp dword [esi + 0x34], eax
jne 0x1000b992
push dword [esp + 0x28]
push 1
push edi
push eax
push dword [esi + 0x30]
push ebp
call fcn.1000b420
push dword [esi + 0x30]
call dword [0x10011008]
add esp, 0x1c
mov dword [esi + 0x30], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
inc edi
add eax, 0x58
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
cmp edi, dword [ebp + 0x78]
jl 0x1000b795
pop esi
pop edi
pop ebp
pop ebx
add esp, 8
ret