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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5609bc
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x5f7350]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebx - 0x50]
xor edi, edi
mov dword [esp + 0x28], eax
cmp ecx, edi
jne 0x50d393
or eax, 0xffffffff
jmp 0x50d62e
call fcn.00506b71
mov byte [esp + 0x17], al
test al, al
jne 0x50d4c8
mov eax, dword [ebx - 0x50]
cmp eax, edi
je 0x50d4b6
push edi
push eax
call fcn.005065e6
pop ecx
pop ecx
cmp dword [ebx + 0x3c], edi
jne 0x50d3e8
push 0x70
call fcn.00515ac7
pop ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x58], edi
cmp eax, edi
je 0x50d3de
push edi
push edi
xor ecx, ecx
push eax
inc ecx
call fcn.0050f0a4
jmp 0x50d3e0
xor eax, eax
or dword [esp + 0x58], 0xffffffff
mov dword [ebx + 0x3c], eax
cmp dword [ebx + 0x34], 0x10
jb 0x50d3f3
mov eax, dword [ebx + 0x20]
jmp 0x50d3f6
lea eax, [ebx + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0048eebc
pop ecx
pop ecx
and dword [esp + 0x18], 0
push 0xa
mov dword [esp + 0x5c], 1
mov ecx, dword [ebx - 0x50]
pop edx
call fcn.00506b89
push eax
call fcn.005070a7
mov dword [esp + 0x1c], eax
jmp 0x50d450
mov eax, dword [esp + 0x18]
inc dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
jge 0x50d459
cmp dword [ebx + 0x34], 0x10
jb 0x50d440
mov edx, dword [ebx + 0x20]
jmp 0x50d443
lea edx, [ebx + 0x20]
movzx eax, word [ebx + 0x1c]
mov ecx, dword [ebx + 0x3c]
push eax
call fcn.0050f352
mov eax, dword [ebx + 0x3c]
cmp byte [eax + 0x1d], 0
je 0x50d427
mov eax, dword [ebx + 0x3c]
cmp byte [eax + 0x1d], 0
jne 0x50d48e
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x50d471
lea eax, [esp + 0x2c]
push eax
push 0xa
push dword [ebx - 0x50]
call fcn.005065e6
add esp, 0xc
push 1
xor edi, edi
lea esi, [esp + 0x30]
call fcn.00404145
jmp 0x50d4b6
lea eax, [ebx - 0x8c]
call fcn.0050d2ff
or dword [esp + 0x58], 0xffffffff
push 1
xor edi, edi
lea esi, [esp + 0x30]
mov byte [esp + 0x1a], al
call fcn.00404145
cmp byte [esp + 0x16], 0
jne 0x50d4bd
xor eax, eax
jmp 0x50d62e
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x18], eax
xor edi, edi
jmp 0x50d4d3
mov esi, dword [esi + 4]
cmp esi, edi
je 0x50d4b6
mov dword [esp + 0x18], esi
mov ecx, dword [ebx - 0x50]
push 8
pop edx
call fcn.00506b89
push eax
call fcn.005070a7
mov ecx, dword [ebx - 0x50]
push 0xb
pop edx
mov dword [esp + 0x20], eax
call fcn.00506b89
push eax
call fcn.005070a7
mov ecx, dword [ebx - 0x50]
push 4
pop edx
mov dword [esp + 0x24], eax
call fcn.00506b89
push eax
call fcn.005070a7
cmp byte [esp + 0x17], 0
mov dword [esp + 0x1c], eax
jne 0x50d51e
or dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
call fcn.00506095
mov byte [esp + 0x16], 0
jmp 0x50d532
xor edi, edi
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x16]
push eax
lea eax, [esi + 1]
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.0046daae
push dword [esp + 0x1c]
mov dword [esp + 0x5c], 2
push edi
mov edi, dword [esp + 0x20]
call fcn.0050f523
xor edi, edi
cmp eax, edi
jge 0x50d574
or edi, 0xffffffff
jmp 0x50d592
je 0x50d592
mov eax, dword [esp + 0x18]
push edi
push esi
push dword [esp + 0x34]
push dword [eax + 0x64]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, edi
jne 0x50d590
or eax, 0xffffffff
mov edi, eax
mov eax, dword [esp + 0x28]
push dword [esp + 0x2c]
mov ecx, dword [eax]
call fcn.00403f5d
or dword [esp + 0x58], 0xffffffff
lea esi, [esp + 0x2c]
call fcn.00426e9d
test edi, edi
je 0x50d5b8
cmp edi, 0xffffffff
jne 0x50d60a
dec dword [esp + 0x20]
cmp dword [esp + 0x20], 0
jg 0x50d530
cmp edi, 0xffffffff
jne 0x50d60a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x50d5e9
push str.Sock::RecvTm
push eax
push 0x1b
push dword [ebx - 0x50]
call fcn.005065e6
add esp, 0x10
cmp byte [esp + 0x17], 0
jne 0x50d38b
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x50d601
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [ebx + 0x3c], 0
jmp 0x50d38b
test edi, edi
jne 0x50d62c
cmp byte [esp + 0x17], 0
je 0x50d5f4
push str.Sock::RecvTm
push 0x20
push dword [ebx - 0x50]
call fcn.005065e6
add esp, 0xc
jmp 0x50d4b6
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0051497f
mov esp, ebp
pop ebp
ret 8