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

Disassembly:
sub esp, 0x3ec
push ebx
push esi
push edi
mov edi, edx
call fcn.004f0b20
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x56a548
cmp dword [esi + 0x41c], ebx
je 0x56a548
cmp di, 2
jne 0x56a554
cmp dword [esi + 0xcfc], ebx
je 0x56a548
push esi
xor edx, edx
xor ecx, ecx
call fcn.00569cc0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3ec
ret
push ebp
mov ecx, 2
call fcn.004f0ff0
mov eax, edi
shr eax, 0x10
cmp ax, bx
je 0x56a571
movzx eax, ax
jmp 0x56a652
call fcn.004f0d00
test eax, eax
je 0x56a591
mov dword [esi + 0xd08], 1
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3ec
ret
mov edx, dword [esi + 4]
push 1
push 1
mov ecx, 0x800e
call fcn.0056ab30
test eax, eax
mov dword [esi + 0xd08], ebx
jne 0x56a85a
mov dword [esi + 0xd04], 1
lea ebx, [ebx]
mov ecx, dword [esi + 0xd10]
inc ecx
mov eax, ecx
cmp eax, 0x14
mov dword [esi + 0xd10], ecx
jl 0x56a5f2
mov edx, dword [esi + 4]
push ebx
push 1
mov ecx, 0x800e
mov dword [esi + 0xd10], ebx
call fcn.0056ab30
test eax, eax
jne 0x56a854
cmp dword [esi + 0x24f8], ebx
mov ecx, dword [esi + 4]
je 0x56a722
push 0x3e6
lea edx, [esp + 0x18]
call fcn.00534030
mov ebp, eax
cmp ebp, ebx
je 0x56a840
jg 0x56a736
cmp ebp, 0xfffffffd
jne 0x56a84a
push 0x2747
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
cmp dword [esi + 0x2474], ebx
mov dword [esi + 0xd04], ebx
jne 0x56a69c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x56a584
cmp eax, ebx
je 0x56a69c
cmp dword [esi + 0x41c], ebx
je 0x56a69c
mov ecx, eax
call fcn.00568e70
push eax
push 0x5a7650
push 0x5f14f8
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x5c9d48]
add esp, 0xc
mov dword [0x5bfd5c], ebx
mov dword [0x5f31fc], 1
mov ecx, dword [esi]
push edx
mov edx, 0x5f14f8
call fcn.00514ad0
cmp dword [esi + 0x41c], ebx
je 0x56a6ef
mov ecx, dword [esi]
call fcn.00561000
cmp eax, ebx
je 0x56a6c4
cmp dword [eax + 0x6cc], ebx
je 0x56a6c4
mov edx, dword [0x5c9d44]
mov ecx, dword [esi]
call fcn.00513bc0
mov eax, dword [0x5c9d44]
push eax
xor edx, edx
mov ecx, 0x5e1
mov dword [0x5bfd5c], ebx
mov dword [0x5f31fc], 1
call fcn.0041f1a0
mov ecx, dword [esi]
mov edx, eax
call fcn.00513d20
lea ecx, [esi + 0x444]
mov edx, 0x3e7
call fcn.00420e60
mov ecx, esi
call fcn.005690a0
mov edx, esi
mov ecx, 0x5a4bec
call fcn.00568f00
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x3ec
ret
push ebx
push 0x3e6
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x56a633
cmp ebp, ebx
jle 0x56a69c
xor eax, eax
cmp ebp, ebx
mov byte [esp + ebp + 0x14], bl
mov dword [esp + 0x10], eax
jle 0x56a5c0
lea esp, [esp]
mov al, byte [esp + eax + 0x14]
cmp al, 0xd
je 0x56a82a
cmp al, 0xa
jne 0x56a7aa
cmp dword [esi + 0xcf8], ebx
lea edi, [esi + 0x90c]
je 0x56a79b
mov dword [esi + 0xcf8], ebx
xor eax, eax
mov ecx, 0xf9
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esi + 0xcf4], ebx
jmp 0x56a82a
mov edx, dword [esi + 0xcf4]
mov byte [edx + esi + 0x90c], bl
jmp 0x56a7f0
mov ecx, dword [esi + 0xcf4]
mov byte [ecx + esi + 0x90c], al
mov edx, dword [esi + 0xcf4]
inc edx
mov eax, edx
cmp eax, 0x258
mov dword [esi + 0xcf4], edx
jle 0x56a82a
cmp dword [esi + 0xcf8], ebx
lea edi, [esi + 0x90c]
je 0x56a7e3
mov dword [esi + 0xcf4], ebx
jmp 0x56a81e
mov dword [esi + 0xcf8], 1
mov byte [eax + edi], bl
cmp byte [edi], bl
mov dword [esi + 0xcf4], ebx
je 0x56a81e
mov ecx, edi
mov edx, esi
call fcn.004c8910
mov ecx, esi
call fcn.004f0af0
test eax, eax
je 0x56a584
cmp dword [esi + 0x41c], ebx
je 0x56a584
xor eax, eax
mov ecx, 0xf9
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ebp
mov dword [esp + 0x10], eax
jl 0x56a760
jmp 0x56a5c0
push 0x2733
jmp 0x56a62d
push 0x2745
jmp 0x56a62d
mov dword [esi + 0xd08], ebx
pop ebp
pop edi
mov dword [esi + 0xd04], ebx
pop esi
xor eax, eax
pop ebx
add esp, 0x3ec
ret