Function at 0x10008c40
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, ecx
push edi
lea ebp, [ebp + ebp*4]
xor edi, edi
mov eax, dword [esi + 0x18]
mov dword [esp + 0x20], edi
shl ebp, 4
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edi
mov ecx, dword [eax + ebp]
mov dword [esp + 0x24], edi
cmp ecx, 0xffffffff
mov dword [esp + 0x28], edi
jne 0x10008e43
cmp dword [esp + 0x34], 0xffffffff
jne 0x10008c8f
pop edi
pop esi
pop ebp
mov eax, 0x57
pop ebx
add esp, 0x1c
ret 8
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
jmp 0x10008c9f
xor edi, edi
push 0x28
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x18]
mov ebx, eax
add esp, 4
cmp ebx, edi
mov dword [edx], ebx
je 0x10008dd9
mov ecx, 0xa
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x28]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebx + 0x14], eax
test eax, eax
je 0x10008dd9
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x28]
inc eax
add edx, 4
mov dword [ebx + 0x18], ecx
cmp eax, 2
mov dword [ebx + 0x20], 3
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jb 0x10008c9d
mov edi, dword [esp + 0x34]
lea edx, [esp + 0x18]
push 4
push edx
push 0x1001
xor ebx, ebx
push 0xffff
push edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x34]
push 4
push eax
push 0x1002
push 0xffff
push edi
mov dword [esp + 0x48], ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esi + 0x18]
push edi
mov dword [ecx + ebp], edi
mov edx, dword [esi + 0x18]
mov dword [edx + ebp + 0x3c], ebx
mov eax, dword [esi + 0x18]
mov dword [eax + ebp + 0x1c], ebx
mov ecx, dword [esi + 0x18]
lea eax, [ecx + ebp]
mov ecx, esi
lea edx, [eax + 0x1c]
mov dword [eax + 0x20], edx
mov eax, dword [esi + 0x18]
mov dword [eax + ebp + 0x40], ebx
call fcn.100085f0
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 0x14]
push ebx
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push ebx
push eax
mov dword [eax + 0x24], ecx
mov dword [ecx + 0x24], eax
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
push edx
add eax, 0x18
push 1
push eax
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + ebp]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x10008e4b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
mov dword [esp + 0x10], eax
jne 0x10008de3
pop edi
pop esi
mov dword [esp + 8], ebx
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov dword [esp + 0x10], 0xe
jmp 0x10008de7
cmp eax, ebx
je 0x10008e4b
lea edi, [esp + 0x24]
mov dword [esp + 0x34], 2
mov ebx, dword [edi]
test ebx, ebx
je 0x10008e12
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x10008e09
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x34]
add edi, 4
dec eax
mov dword [esp + 0x34], eax
jne 0x10008df3
mov edx, dword [esi + 0x18]
pop edi
mov dword [edx + ebp], 0xffffffff
mov eax, dword [esi + 0x18]
pop esi
mov dword [eax + ebp + 0x20], 0
mov eax, dword [esp + 8]
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov dword [esp + 0x10], 0x4df
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8