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

Disassembly:
sub esp, 0xd0
mov eax, dword [0x5200a8]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xd8]
push ebx
mov dword [esp + 0x20], eax
xor ebx, ebx
mov eax, dword [esp + 0xe0]
push ebp
mov ebp, dword [esp + 0xdc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xec]
push esi
mov dword [esp + 0x30], eax
lea esi, [esp + 0x48]
xor eax, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebx
mov byte [esp + 0xf], bl
mov dword [esp + 0x10], esi
test ebp, ebp
je 0x4a20b3
cmp dword [ebp], 0xbab1e
jne 0x4a20b3
cmp byte [ebp + 0xe6], al
je 0x4a1cff
pop esi
pop ebp
lea eax, [ebx + 8]
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.004e635f
add esp, 0xd0
ret
push edi
mov edi, dword [esp + 0xf0]
test edi, edi
jns 0x4a1d29
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.004e635f
add esp, 0xd0
ret
mov eax, dword [ebp + 4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4a1d9f
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.004a2e40
add esp, 8
mov ebp, eax
xor edi, edi
mov eax, 1
nop dword [eax + eax]
or esi, 0xffffffff
lea edx, [edi*4]
test ebp, eax
je 0x4a1d63
mov esi, dword [esp + edx + 0x38]
inc ebx
mov ecx, eax
rol ecx, 0x10
test ebp, ecx
je 0x4a1d71
mov esi, dword [esp + edx + 0x38]
inc ebx
cmp esi, 0xffffffff
je 0x4a1d7e
inc edi
rol eax, 1
cmp edi, 5
jb 0x4a1d50
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4a1d34
mov ebp, dword [esp + 0x20]
lea esi, [esp + 0x4c]
mov edi, dword [esp + 0xf0]
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.004a43a0
mov eax, dword [esp + 0x2c]
add esp, 8
test eax, eax
js 0x4a1dc1
cmp eax, edi
cmovl edi, eax
mov dword [esp + 0xf0], edi
mov eax, dword [esp + 0x28]
add eax, ebx
cmp byte [esp + 0xfc], 0
mov dword [esp + 0x30], eax
je 0x4a1ddf
cmp dword [ebp + 0xdc], 0xffffffff
je 0x4a1ddf
inc eax
cmp eax, 0xa
jbe 0x4a1e08
shl eax, 3
push eax
call dword [0x52007c]
mov esi, eax
mov dword [esp + 0x18], eax
add esp, 4
test esi, esi
jne 0x4a1e03
lea eax, [esi + 3]
jmp 0x4a1d10
mov byte [esp + 0x13], 1
xor edi, edi
mov dword [esp + 0x18], edi
test ebx, ebx
je 0x4a1ea6
mov eax, dword [ebp + 4]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4a1ea6
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.004a2e40
add esp, 8
lea edx, [esp + 0x38]
mov ebx, eax
xor ebp, ebp
mov ecx, 1
or esi, 0xffffffff
test ebx, ecx
je 0x4a1e5d
mov esi, dword [esp + 0x14]
mov eax, dword [edx]
mov dword [esi + edi*8], eax
mov eax, 0x300
mov word [esi + edi*8 + 4], ax
inc edi
mov esi, dword [edx]
mov eax, ecx
rol eax, 0x10
test ebx, eax
je 0x4a1e7c
mov esi, dword [esp + 0x14]
mov eax, dword [edx]
mov dword [esi + edi*8], eax
mov eax, 0x10
mov word [esi + edi*8 + 4], ax
inc edi
mov esi, dword [edx]
cmp esi, 0xffffffff
je 0x4a1e8c
inc ebp
rol ecx, 1
add edx, 4
cmp ebp, 5
jb 0x4a1e40
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], edi
mov eax, dword [eax]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4a1e25
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a1f12
mov edx, dword [esp + 0x2c]
lea ecx, [edi*8 + 4]
add ecx, esi
add edx, 4
add edi, eax
mov ebp, eax
mov dword [esp + 0x18], edi
mov ebx, 0x300
nop dword [eax + eax]
mov eax, dword [edx - 4]
mov dword [ecx - 4], eax
xor eax, eax
mov word [ecx], ax
test byte [edx], 1
je 0x4a1ee5
mov word [ecx], bx
mov eax, ebx
test byte [edx], 2
movzx esi, ax
je 0x4a1ef8
or eax, 0x400
mov word [ecx], ax
movzx esi, ax
test byte [edx], 4
je 0x4a1f03
or esi, 0x10
mov word [ecx], si
add ecx, 8
add edx, 8
sub ebp, 1
jne 0x4a1ed0
mov ebx, dword [esp + 0x1c]
cmp byte [esp + 0xfc], 0
mov esi, dword [esp + 0x14]
je 0x4a1f41
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xdc]
cmp eax, 0xffffffff
je 0x4a1f41
mov dword [esi + edi*8], eax
mov eax, 0x300
mov word [esi + edi*8 + 4], ax
inc edi
mov dword [esp + 0x18], edi
test edi, edi
je 0x4a202b
push dword [esp + 0xf0]
push edi
push esi
call fcn.004bfac0
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x24], ebp
test ebp, ebp
jle 0x4a202b
cmp dword [esp + 0x28], 0
mov dword [esp + 0x1c], ebp
je 0x4a1fdf
mov ebp, dword [esp + 0x2c]
lea edi, [ebx*8 + 6]
add ebp, 6
add edi, esi
movsx esi, word [edi]
lea edi, [edi + 8]
mov eax, esi
lea ebp, [ebp + 8]
and eax, 0x300
mov ebx, esi
neg eax
sbb eax, eax
neg eax
movzx edx, ax
mov eax, edx
or eax, 4
test bl, 0x10
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test esi, 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
sub dword [esp + 0x28], 1
mov word [ebp - 8], cx
jne 0x4a1f87
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
cmp byte [esp + 0xfc], 0
mov ebx, dword [esp + 0x20]
je 0x4a2033
cmp dword [ebx + 0xdc], 0xffffffff
je 0x4a2033
mov eax, dword [esp + 0x30]
mov ecx, 0x300
test word [esi + eax*8 + 6], cx
je 0x4a2033
mov esi, dword [sym.imp.WS2_32.dll_recv]
nop dword [eax]
push 0
push 0x40
lea eax, [esp + 0xa4]
push eax
push dword [ebx + 0xdc]
call esi
test eax, eax
jg 0x4a2010
dec ebp
jmp 0x4a2037
mov ebx, dword [esp + 0x20]
xor ebp, ebp
jmp 0x4a2037
mov ebp, dword [esp + 0x1c]
cmp byte [esp + 0x13], 0
je 0x4a204b
push dword [esp + 0x14]
call dword [0x520080]
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4a2055
mov dword [eax], ebp
cmp byte [esp + 0xf8], 0
je 0x4a20ac
test edi, edi
jne 0x4a20ac
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x2c], edi
jne 0x4a20ac
cmp byte [ebx + 0xe6], 0
jne 0x4a20ac
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.004a43a0
add esp, 8
test eax, eax
jne 0x4a20ac
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4a20ac
mov ecx, dword [esp + 0xf0]
cmp eax, ecx
jg 0x4a20a1
test eax, eax
jns 0x4a20a3
mov eax, ecx
push eax
call fcn.004c0180
add esp, 4
xor eax, eax
jmp 0x4a1d10
mov ecx, dword [esp + 0xd8]
mov eax, 1
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e635f
add esp, 0xd0
ret