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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x4c
mov esi, edx
mov dword [esp], ecx
mov ecx, dword [esp + 0x64]
xor eax, eax
add edx, 0xc
lea ebp, [esp + 0x2c]
cmp dword [esi + 0xc], 0xffffffff
mov edi, dword [ecx + 4]
cmove edx, eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
add ecx, eax
sub edi, eax
mov dword [esp + 4], eax
mov dword [esp + 0x24], ecx
mov ecx, closesocket
cmp edi, ecx
cmovae edi, ecx
mov dword [esp + 0x28], edi
mov edx, dword [esi + 8]
mov ecx, ebp
push 0
push dword [esp + 0x64]
call fcn.00487533
pop eax
pop ecx
mov edx, dword [esp + 0x2c]
cmp edx, 2
je 0x4878e9
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
test edx, edx
jne 0x4878f1
mov edx, dword [esp + 0x10]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
cmp edx, dword [esp + 4]
jb 0x487936
mov edi, dword [esp + 0x14]
mov edx, 0x4c0d64
mov ecx, edi
call fcn.00421dff
push 0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x487802
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
xor eax, eax
cmp edi, 0x274a
jne 0x487854
mov dword [esp + 0xc], eax
mov byte [esp + 8], 4
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0xc]
cmp bl, 4
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
je 0x4878fb
lea ecx, [esp + 0x18]
call fcn.0041457c
cmp al, 0xd
jne 0x487926
mov ecx, esi
lea edx, [esp + 0x44]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
call fcn.004874ed
push ebp
call fcn.0048297d
pop eax
jmp 0x487784
lea ecx, [esp + 8]
mov byte [esp + 8], 0
mov dword [esp + 0xc], edi
call fcn.0041457c
cmp al, 0xd
jne 0x48780b
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
test eax, eax
je 0x4878d7
mov dword [esp + 0x20], edi
mov edi, dword [eax + 4]
mov edx, dword [eax]
lock inc dword [edi]
jle 0x48794b
add edx, 8
mov ecx, ebp
push dword [eax + 0xc]
push dword [eax + 8]
push edi
call fcn.0042c638
add esp, 0xc
push 4
pop ecx
call fcn.004734e9
cmp byte [esp + 0x2c], 4
je 0x48780b
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
cmp bl, 4
je 0x48780b
mov edi, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
call fcn.004734e9
jmp 0x487824
and dword [esp + 0x30], 0
mov dword [esp + 0x2c], 4
jmp 0x48780b
mov eax, dword [esp]
mov byte [eax], 5
jmp 0x48792e
mov edx, dword [esp]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x48792e
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 4]
mov ecx, dword [edx + 0xc]
add eax, edi
cmp eax, ecx
jbe 0x487911
mov ecx, eax
mov dword [edx + 0xc], eax
add dword [esp + 4], edi
jb 0x48794f
cmp ecx, eax
jb 0x487963
mov ecx, dword [esp]
mov dword [edx + 8], eax
mov byte [ecx], 4
jmp 0x48792e
mov eax, dword [esp]
mov dword [eax], ebx
mov dword [eax + 4], edi
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x10]
push 0x4c09cc
call fcn.00493a90
pop eax
ud2
ud2
push 0xf
pop edx
mov ecx, str.filled_overflowfilled_must_not_become_larger_than_initialized
push 0x4c0d74
call fcn.00493f10
jmp 0x487948
lea ecx, [esp + 0x2c]
mov edx, 0x4c0d74
mov dword [ecx], 0x4c0a1c
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], 0x4e7238
and dword [ecx + 0xc], 0
call fcn.00493a60
ud2