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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x560724
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 0x50d1c3
or eax, 0xffffffff
jmp 0x50d45e
call fcn.0050697f
mov byte [esp + 0x17], al
test al, al
jne 0x50d2f8
mov eax, dword [ebx - 0x50]
cmp eax, edi
je 0x50d2e6
push edi
push eax
call fcn.005063f4
pop ecx
pop ecx
cmp dword [ebx + 0x3c], edi
jne 0x50d218
push 0x70
call fcn.00515827
pop ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x58], edi
cmp eax, edi
je 0x50d20e
push edi
push edi
xor ecx, ecx
push eax
inc ecx
call fcn.0050eed2
jmp 0x50d210
xor eax, eax
or dword [esp + 0x58], 0xffffffff
mov dword [ebx + 0x3c], eax
cmp dword [ebx + 0x34], 0x10
jb 0x50d223
mov eax, dword [ebx + 0x20]
jmp 0x50d226
lea eax, [ebx + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0048f055
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.00506997
push eax
call fcn.00506eb5
mov dword [esp + 0x1c], eax
jmp 0x50d280
mov eax, dword [esp + 0x18]
inc dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
jge 0x50d289
cmp dword [ebx + 0x34], 0x10
jb 0x50d270
mov edx, dword [ebx + 0x20]
jmp 0x50d273
lea edx, [ebx + 0x20]
movzx eax, word [ebx + 0x1c]
mov ecx, dword [ebx + 0x3c]
push eax
call fcn.0050f180
mov eax, dword [ebx + 0x3c]
cmp byte [eax + 0x1d], 0
je 0x50d257
mov eax, dword [ebx + 0x3c]
cmp byte [eax + 0x1d], 0
jne 0x50d2be
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x50d2a1
lea eax, [esp + 0x2c]
push eax
push 0xa
push dword [ebx - 0x50]
call fcn.005063f4
add esp, 0xc
push 1
xor edi, edi
lea esi, [esp + 0x30]
call fcn.0040412d
jmp 0x50d2e6
lea eax, [ebx - 0x8c]
call fcn.0050d12f
or dword [esp + 0x58], 0xffffffff
push 1
xor edi, edi
lea esi, [esp + 0x30]
mov byte [esp + 0x1a], al
call fcn.0040412d
cmp byte [esp + 0x16], 0
jne 0x50d2ed
xor eax, eax
jmp 0x50d45e
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x18], eax
xor edi, edi
jmp 0x50d303
mov esi, dword [esi + 4]
cmp esi, edi
je 0x50d2e6
mov dword [esp + 0x18], esi
mov ecx, dword [ebx - 0x50]
push 8
pop edx
call fcn.00506997
push eax
call fcn.00506eb5
mov ecx, dword [ebx - 0x50]
push 0xb
pop edx
mov dword [esp + 0x20], eax
call fcn.00506997
push eax
call fcn.00506eb5
mov ecx, dword [ebx - 0x50]
push 4
pop edx
mov dword [esp + 0x24], eax
call fcn.00506997
push eax
call fcn.00506eb5
cmp byte [esp + 0x17], 0
mov dword [esp + 0x1c], eax
jne 0x50d34e
or dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
call fcn.00505eec
mov byte [esp + 0x16], 0
jmp 0x50d362
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.0046db45
push dword [esp + 0x1c]
mov dword [esp + 0x5c], 2
push edi
mov edi, dword [esp + 0x20]
call fcn.0050f351
xor edi, edi
cmp eax, edi
jge 0x50d3a4
or edi, 0xffffffff
jmp 0x50d3c2
je 0x50d3c2
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 0x50d3c0
or eax, 0xffffffff
mov edi, eax
mov eax, dword [esp + 0x28]
push dword [esp + 0x2c]
mov ecx, dword [eax]
call fcn.00403f45
or dword [esp + 0x58], 0xffffffff
lea esi, [esp + 0x2c]
call fcn.004e7046
test edi, edi
je 0x50d3e8
cmp edi, 0xffffffff
jne 0x50d43a
dec dword [esp + 0x20]
cmp dword [esp + 0x20], 0
jg 0x50d360
cmp edi, 0xffffffff
jne 0x50d43a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x50d419
push str.Sock::RecvTm
push eax
push 0x1b
push dword [ebx - 0x50]
call fcn.005063f4
add esp, 0x10
cmp byte [esp + 0x17], 0
jne 0x50d1bb
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x50d431
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [ebx + 0x3c], 0
jmp 0x50d1bb
test edi, edi
jne 0x50d45c
cmp byte [esp + 0x17], 0
je 0x50d424
push str.Sock::RecvTm
push 0x20
push dword [ebx - 0x50]
call fcn.005063f4
add esp, 0xc
jmp 0x50d2e6
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.005146df
mov esp, ebp
pop ebp
ret 8