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

Disassembly:
sub esp, 0xbc
push ebx
mov ebx, dword [esp + 0xc4]
xor eax, eax
push esi
push edi
xor edi, edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], edi
lea esi, [esp + 0x38]
mov dword [esp + 0x14], esi
test ebx, ebx
je 0x4f9cdb
cmp dword [ebx], 0xbab1e
jne 0x4f9cdb
cmp byte [ebx + 0xc4], al
je 0x4f997e
lea eax, [edi + 8]
pop edi
pop esi
pop ebx
add esp, 0xbc
ret
push ebp
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x4f99dd
lea eax, [esp + 0x28]
push eax
push ebp
call fcn.004fabc0
add esp, 8
mov ebx, eax
xor edx, edx
mov eax, 1
lea ecx, [ecx]
or esi, 0xffffffff
test ebx, eax
je 0x4f99ac
mov esi, dword [esp + edx*4 + 0x28]
inc edi
mov ecx, eax
rol ecx, 0x10
test ebx, ecx
je 0x4f99ba
mov esi, dword [esp + edx*4 + 0x28]
inc edi
cmp esi, 0xffffffff
je 0x4f99c7
inc edx
rol eax, 1
cmp edx, 5
jb 0x4f99a0
mov ebp, dword [ebp]
mov dword [esp + 0x1c], edi
test ebp, ebp
jne 0x4f9986
mov ebx, dword [esp + 0xd0]
lea esi, [esp + 0x3c]
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.004fbda0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
js 0x4f9a04
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0x20], ecx
cmp eax, ecx
jge 0x4f9a0f
jmp 0x4f9a0b
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xd8]
add eax, edi
cmp byte [esp + 0xe8], 0
mov dword [esp + 0x24], eax
je 0x4f9a30
cmp dword [ebx + 0xcc], 0xffffffff
je 0x4f9a30
inc eax
cmp eax, 0xa
jbe 0x4f9a5f
shl eax, 3
push eax
call dword [0xa5e0b8]
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
jne 0x4f9a5a
pop ebp
pop edi
lea eax, [esi + 3]
pop esi
pop ebx
add esp, 0xbc
ret
mov byte [esp + 0x17], 1
mov ebp, dword [esp + 0xd0]
xor ebx, ebx
test edi, edi
je 0x4f9b06
mov eax, dword [ebp + 4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4f9b06
mov edi, eax
lea eax, [esp + 0x28]
push eax
push edi
call fcn.004fabc0
mov edi, dword [esp + 0x20]
add esp, 8
mov ebp, eax
xor edx, edx
mov ecx, 1
lea esp, [esp]
or esi, 0xffffffff
test ebp, ecx
je 0x4f9abd
mov eax, dword [esp + edx*4 + 0x28]
mov dword [edi + ebx*8], eax
mov eax, 1
mov word [edi + ebx*8 + 4], ax
inc ebx
mov esi, dword [esp + edx*4 + 0x28]
mov eax, ecx
rol eax, 0x10
test ebp, eax
je 0x4f9adc
mov eax, dword [esp + edx*4 + 0x28]
mov dword [edi + ebx*8], eax
mov eax, 4
mov word [edi + ebx*8 + 4], ax
inc ebx
mov esi, dword [esp + edx*4 + 0x28]
cmp esi, 0xffffffff
je 0x4f9ae9
inc edx
rol ecx, 1
cmp edx, 5
jb 0x4f9aa0
mov edi, dword [esp + 0x10]
mov edi, dword [edi]
mov dword [esp + 0x10], edi
test edi, edi
jne 0x4f9a81
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0xd0]
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x4f9b62
mov edx, dword [esp + 0xd4]
lea ecx, [esi + 4]
lea ecx, [ecx + ebx*8]
add edx, 4
mov esi, eax
add ebx, eax
mov edi, 1
lea ebx, [ebx]
mov eax, dword [edx - 4]
mov dword [ecx - 4], eax
xor eax, eax
mov word [ecx], ax
test byte [edx], 1
je 0x4f9b43
mov word [ecx], di
test byte [edx], 2
je 0x4f9b4c
or word [ecx], 2
test byte [edx], 4
je 0x4f9b55
or word [ecx], 4
add ecx, 8
add edx, 8
dec esi
jne 0x4f9b30
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0xe8], 0
mov esi, dword [esp + 0x18]
je 0x4f9b89
mov eax, dword [ebp + 0xcc]
cmp eax, 0xffffffff
je 0x4f9b89
mov dword [esi + ebx*8], eax
mov eax, 1
mov word [esi + ebx*8 + 4], ax
inc ebx
test ebx, ebx
je 0x4f9c4b
push dword [esp + 0x20]
push ebx
push esi
call fcn.00500af0
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x1c], ebp
test ebp, ebp
jle 0x4f9c4b
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x10], ebp
test eax, eax
je 0x4f9c03
mov edx, dword [esp + 0xd4]
lea esi, [esi + edi*8]
add edx, 6
mov ebp, eax
add esi, 6
mov edi, edi
movsx ecx, word [esi]
xor eax, eax
test cl, 1
je 0x4f9bdf
mov eax, 1
test cl, 4
je 0x4f9be7
or eax, 4
test cl, 2
je 0x4f9bef
or eax, 2
mov word [edx], ax
add esi, 8
add edx, 8
dec ebp
jne 0x4f9bd0
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp byte [esp + 0xe8], 0
mov edi, dword [esp + 0xd0]
je 0x4f9c56
cmp dword [edi + 0xcc], 0xffffffff
je 0x4f9c56
mov eax, dword [esp + 0x24]
test byte [esi + eax*8 + 6], 1
je 0x4f9c56
mov esi, dword [sym.imp.WS2_32.dll_recv]
mov edi, edi
push 0
push 0x40
lea eax, [esp + 0x94]
push eax
push dword [edi + 0xcc]
call esi
test eax, eax
jns 0x4f9c30
dec ebp
jmp 0x4f9c5a
mov edi, dword [esp + 0xd0]
xor ebp, ebp
jmp 0x4f9c5a
mov ebp, dword [esp + 0x10]
cmp byte [esp + 0x17], 0
je 0x4f9c6e
push dword [esp + 0x18]
call dword [0xa5e0bc]
add esp, 4
mov eax, dword [esp + 0xe0]
test eax, eax
je 0x4f9c7b
mov dword [eax], ebp
cmp byte [esp + 0xe4], 0
je 0x4f9cce
test ebx, ebx
jne 0x4f9cce
cmp dword [edi], 0xbab1e
mov dword [esp + 0x10], ebx
jne 0x4f9cce
cmp byte [edi + 0xc4], bl
jne 0x4f9cce
lea eax, [esp + 0x10]
push eax
push edi
call fcn.004fbda0
add esp, 8
test eax, eax
jne 0x4f9cce
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4f9cce
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jg 0x4f9cc3
test eax, eax
jns 0x4f9cc5
mov eax, ecx
push eax
call fcn.00501200
add esp, 4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xbc
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xbc
ret