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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004c
call fcn.10010980
push ebx
push esi
push edi
xor eax, eax
mov byte [ebp - 0x2c], 0
push 7
pop ecx
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x2b]
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp - 4], 1
push dword [ebx + 0x14]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx + 4]
xor edi, edi
mov eax, dword [eax + 0x30]
mov dword [ebp - 8], eax
call fcn.1000a008
xor eax, eax
pop ecx
inc eax
test eax, eax
je 0x10008a1d
push 0
push 0x20
pop eax
sub eax, esi
push eax
lea eax, [ebp - 0x2c]
add eax, esi
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10008b1f
add esi, eax
mov eax, dword [ebp - 4]
cmp esi, 0x20
jne 0x100089e7
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x100089e7
cmp esi, 0x20
jne 0x10008ba8
cmp byte [ebp - 0x29], 0
jne 0x10008a8a
mov esi, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
add esi, 0xffffffe4
test esi, esi
jle 0x10008a7d
mov ecx, 0xffff
mov eax, esi
cmp esi, ecx
push 0
cmova eax, ecx
push eax
lea eax, [ebp - 0x1004c]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x10008a86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x10008a38
push 0x490
call ebx
test esi, esi
jg 0x10008ba8
push 0
call ebx
jmp 0x10008b8a
sub esi, eax
jmp 0x10008a38
push 0x20
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.1000f750
push 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100050ae
add esp, 0x18
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
sub eax, 8
mov dword [ebp - 4], eax
mov esi, eax
lea ecx, [eax + 0x20]
push ecx
mov dword [ebp - 0xc], ecx
call fcn.1000f6be
mov edi, eax
pop ecx
test edi, edi
jne 0x10008ad6
push 8
jmp 0x10008ba2
push 0x20
lea eax, [ebp - 0x4c]
push eax
push 0x20
push edi
call fcn.10012a78
mov ecx, dword [ebp - 4]
lea eax, [edi + 0x20]
add esp, 0x10
test ecx, ecx
je 0x10008b37
push 0
sub eax, esi
push esi
add eax, ecx
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jg 0x10008b26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x10008b28
test ebx, ebx
jns 0x10008ba8
push 0x490
jmp 0x10008ba2
sub esi, ebx
test esi, esi
je 0x10008b34
mov ecx, dword [ebp - 4]
lea eax, [edi + 0x20]
jmp 0x10008af1
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x10008ba8
lea eax, [ebp - 0x28]
push eax
call fcn.100050d3
pop ecx
test eax, eax
jne 0x10008b91
push 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x10]
add eax, 0x20
push eax
call fcn.10011028
add esp, 0xc
test eax, eax
je 0x10008b91
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x50]
call fcn.10005e67
pop ecx
pop ecx
test eax, eax
je 0x10008ba8
push dword [ebp - 0xc]
push edi
push eax
call fcn.10005d5b
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
mov eax, dword [ebp + 0xc]
and dword [eax], edi
jmp 0x10008ba8
push dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push ebx
call fcn.1000569e
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x10008bbb
push edi
call fcn.1000f686
pop ecx
mov ecx, dword [ebp + 8]
push dword [ecx + 0x14]
call fcn.1000a01e
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret