Function at 0x4bd210
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536e6b
mov eax, dword fs:[0]
push eax
sub esp, 0x6e0
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [0x58c214]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov ebx, ecx
mov dword [ebp - 0x6e8], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x58c214
call eax
add eax, 0x10
mov dword [ebp - 0x6d8], eax
mov dword [ebp - 4], 1
test esi, esi
je 0x4bd5ea
test edi, edi
je 0x4bd5ea
mov ecx, ebx
call fcn.004b8e10
test eax, eax
jne 0x4bd295
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4bd5ea
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6ec], 0
cmp eax, 0x20009140
jne 0x4bd2b9
mov ecx, dword [ebp - 0x6e8]
push ecx
mov ecx, ebx
call fcn.004bc0c0
jmp 0x4bd2d7
cmp eax, 0x20009141
sete dl
mov byte [ebp - 0x6d4], dl
mov eax, dword [ebp - 0x6d4]
push eax
push edi
push esi
mov ecx, ebx
call fcn.004bbd20
mov eax, dword [ebx + 0x2f44]
xor edi, edi
cmp eax, edi
jne 0x4bd2ed
push 0x80004003
call fcn.004ef9b0
mov ecx, dword [eax]
lea edx, [ebp - 0x6ec]
push edx
push eax
mov eax, dword [ecx + 0x88]
call eax
mov ecx, dword [ebp - 0x6ec]
push ecx
lea ecx, [ebp - 0x6dc]
call fcn.004219c0
mov byte [ebp - 4], 4
push 0x5424b8
push 0x542284
lea ecx, [ebp - 0x6dc]
call fcn.00443b20
push 2
push 0x542284
lea ecx, [ebp - 0x6dc]
call fcn.004024d0
mov eax, dword [ebp - 0x6dc]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebx + 0x48]
push edi
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4bd37d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6dc]
call fcn.00401ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6d8]
call fcn.00401ac0
jmp 0x4bd613
mov eax, dword [ebx + 0x48]
inc dword [ebx + 0x2f40]
push edi
push 0x400
push 0x594278
push eax
mov dword [ebp - 0x6e4], edi
mov dword [ebp - 0x6e0], edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
je 0x4bd4ac
test esi, esi
je 0x4bd4d7
cmp dword [ebp - 0x6e4], 0
jne 0x4bd404
movzx eax, byte [0x594278]
movzx ecx, byte [0x594279]
movzx edx, byte [0x59427a]
shl eax, 8
add eax, ecx
movzx ecx, byte [0x59427b]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
mov edi, 4
mov dword [ebp - 0x6e4], eax
cmp esi, edi
je 0x4bd48a
sub dword [ebp - 0x6e0], edi
mov edx, dword [0x58c214]
mov eax, dword [edx + 0xc]
mov ecx, 0x58c214
mov byte [esi + 0x594278], 0
call eax
add eax, 0x10
mov dword [ebp - 0x6d4], eax
mov byte [ebp - 4], 7
lea ecx, [edi + 0x594278]
push ecx
lea ecx, [ebp - 0x6d4]
call fcn.0041afc0
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x6d4]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp - 0x6d8]
call fcn.00401ed0
mov byte [ebp - 4], 4
add edi, 0xfffffff0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4bd474
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [ebp - 0x6e0]
add eax, esi
mov dword [ebp - 0x6e0], eax
cmp eax, dword [ebp - 0x6e4]
je 0x4bd4d7
mov ecx, dword [ebx + 0x48]
xor edi, edi
push edi
push 0x400
push 0x594278
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bd3af
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x6dc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bd4d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4bd5ea
cmp dword [ebp + 8], 0x20009140
je 0x4bd594
lea ecx, [ebp - 0x6d0]
call fcn.0041f760
mov byte [ebp - 4], 0xa
mov ecx, dword [ebx + 0x50]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x6d4]
call fcn.0045dd20
mov bl, 0xb
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x6d4]
push ecx
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x6e4], esp
push eax
mov dword [ebp - 0x6e0], esi
call fcn.00401500
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x6d0]
call fcn.004b9050
mov edx, dword [ebp - 0x6e8]
push edx
lea eax, [ebp - 0x6d8]
push eax
lea ecx, [ebp - 0x6d0]
call fcn.00425210
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x6d4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bd585
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x6d0]
call fcn.0041f5b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x6dc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bd5ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x6d8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bd5e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4bd615
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x6d8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bd613
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f0194
mov esp, ebp
pop ebp
ret 0x18