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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10bcf1b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8e0
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0x310]
test al, al
push edi
jne 0x10a829ad
mov eax, dword [esi + reloc.ole32.dll_CoCreateGuid]
xor edi, edi
cmp eax, reloc.ole32.dll_CoCreateGuid
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - reloc.ole32.dll_CoCreateGuid], 1
jne 0x10a82970
mov eax, dword [esi + reloc.ole32.dll_CoCreateGuid]
lea ecx, [ebp - 0x14]
push ecx
push edi
push edi
lea edx, reloc.ole32.dll_CoCreateGuid
mov dword [ebp - reloc.ole32.dll_CoCreateGuid], eax
push edx
inc eax
push eax
call sub.WS2_32.dll_select
cmp eax, edi
je 0x10a829a2
cmp eax, reloc.ole32.dll_CoCreateGuid
je 0x10a829a2
mov dword [esi + reloc.ole32.dll_CoCreateGuid], 1
jmp 0x10a82bee
mov dword [esi + reloc.ole32.dll_CoCreateGuid], edi
jmp 0x10a82bee
cmp al, 1
jne 0x10a82bee
mov al, byte [esi + 0x2f8]
test al, al
jne 0x10a82aad
xor eax, eax
mov ecx, 0xfa
lea edi, reloc.ole32.dll_CoCreateGuid
rep stosd dword es:[edi], eax
mov eax, dword [esi + reloc.ole32.dll_CoCreateGuid]
cmp eax, reloc.ole32.dll_CoCreateGuid
push 0
push 0x3e7
je 0x10a829ed
lea ecx, reloc.ole32.dll_CoCreateGuid
push ecx
jmp 0x10a829fa
mov eax, dword [esi + reloc.ole32.dll_CoCreateGuid]
lea edx, reloc.ole32.dll_CoCreateGuid
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, reloc.ole32.dll_CoCreateGuid
je 0x10a82bee
mov edi, dword [0x10c74bc0]
push 0
push 0
push 0xffffffffffffffff
lea ecx, reloc.ole32.dll_CoCreateGuid
push ecx
push 0
push 0
mov byte [ebp + eax - 0x504], 0
call edi
shl eax, 1
test eax, eax
jne 0x10a82a35
xor ebx, ebx
jmp 0x10a82a5c
push 0
push 0
push 0xffffffffffffffff
lea edx, reloc.ole32.dll_CoCreateGuid
push edx
push 0
push 0
call edi
lea eax, [eax + eax + 7]
and eax, 0xfffffff8
add eax, 3
and eax, 0xfffffffc
call fcn.10b83a60
mov ebx, esp
push 0
push 0
push 0xffffffffffffffff
lea eax, reloc.ole32.dll_CoCreateGuid
push eax
push 0
push 0
call edi
push eax
push ebx
push 0xffffffffffffffff
lea ecx, reloc.ole32.dll_CoCreateGuid
push ecx
push 0
push 0
call edi
push ebx
lea ecx, [ebp - 0x18]
call fcn.109046c0
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 4], 0
call fcn.10a82100
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], reloc.ole32.dll_CoCreateGuid
call fcn.109048b0
jmp 0x10a82bee
cmp al, 1
jne 0x10a82b9c
xor eax, eax
mov ecx, 0xfa
lea edi, reloc.ole32.dll_CoCreateGuid
rep stosd dword es:[edi], eax
mov eax, dword [esi + reloc.ole32.dll_CoCreateGuid]
cmp eax, reloc.ole32.dll_CoCreateGuid
push 0
push 0x3e7
je 0x10a82adf
lea ecx, reloc.ole32.dll_CoCreateGuid
push ecx
jmp 0x10a82aec
mov eax, dword [esi + reloc.ole32.dll_CoCreateGuid]
lea edx, reloc.ole32.dll_CoCreateGuid
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, reloc.ole32.dll_CoCreateGuid
je 0x10a82bee
mov edi, dword [0x10c74bc0]
push 0
push 0
push 0xffffffffffffffff
lea ecx, reloc.ole32.dll_CoCreateGuid
push ecx
push 0
push 0
mov byte [ebp + eax - 0x504], 0
call edi
shl eax, 1
test eax, eax
jne 0x10a82b27
xor ebx, ebx
jmp 0x10a82b4e
push 0
push 0
push 0xffffffffffffffff
lea edx, reloc.ole32.dll_CoCreateGuid
push edx
push 0
push 0
call edi
lea eax, [eax + eax + 7]
and eax, 0xfffffff8
add eax, 3
and eax, 0xfffffffc
call fcn.10b83a60
mov ebx, esp
push 0
push 0
push 0xffffffffffffffff
lea eax, reloc.ole32.dll_CoCreateGuid
push eax
push 0
push 0
call edi
push eax
push ebx
push 0xffffffffffffffff
lea ecx, reloc.ole32.dll_CoCreateGuid
push ecx
push 0
push 0
call edi
push ebx
lea ecx, [ebp - 0x18]
call fcn.109046c0
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 4], 1
call fcn.10a82080
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], reloc.ole32.dll_CoCreateGuid
call fcn.109048b0
jmp 0x10a82bee
cmp al, 2
jne 0x10a82bee
xor eax, eax
mov ecx, 0xfa
lea edi, reloc.ole32.dll_CoCreateGuid
rep stosd dword es:[edi], eax
mov eax, dword [esi + reloc.ole32.dll_CoCreateGuid]
cmp eax, reloc.ole32.dll_CoCreateGuid
push 0
push 0x3e7
je 0x10a82bca
lea ecx, reloc.ole32.dll_CoCreateGuid
push ecx
jmp 0x10a82bd7
mov eax, dword [esi + reloc.ole32.dll_CoCreateGuid]
lea edx, reloc.ole32.dll_CoCreateGuid
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, reloc.ole32.dll_CoCreateGuid
je 0x10a82bee
lea ecx, reloc.ole32.dll_CoCreateGuid
call fcn.10a82030
lea esp, reloc.ole32.dll_CoCreateGuid
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret