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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536787
mov eax, dword fs:[0]
push eax
sub esp, 0x430
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 + 8]
mov esi, ecx
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], ebx
mov word [ebp - 0x438], cx
mov dword [ebp - 4], ebx
push 0x3ff
lea edx, [ebp - 0x40f]
push ebx
push edx
mov byte [ebp - 0x410], bl
call fcn.004f0550
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, esi
mov word [ebp - 0x41c], 0x24
mov dword [ebp - 0x41a], 0x20009202
mov dword [ebp - 0x416], edi
call fcn.004b8e10
test eax, eax
jne 0x4b9633
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov word [ebp - 0x438], ax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], ebx
mov eax, 0xe0000001
jmp 0x4b985e
mov ecx, dword [ebp - 0x41c]
mov edx, dword [ebp - 0x418]
mov ax, word [ebp - 0x414]
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x43c]
push edi
mov dword [ebp - 0x40c], edx
push ecx
lea edx, [ebp - 0x406]
push edx
mov word [ebp - 0x408], ax
call fcn.004f01e0
mov ecx, dword [esi + 0x48]
add esp, 0xc
push ebx
add edi, 0xa
push edi
lea eax, [ebp - 0x410]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4b96b1
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], ebx
mov word [ebp - 0x438], dx
mov eax, 0xe0000001
jmp 0x4b985e
mov ecx, dword [esi + 0x48]
push ebx
push 0xa
lea eax, [ebp - 0x41c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jne 0x4b976d
mov dword [ebp - 0x43c], ebx
mov ecx, esi
call fcn.004b8e10
test eax, eax
je 0x4b9609
mov eax, dword [esi + 0x48]
push ebx
push edi
lea edx, [ebp - 0x410]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4b9743
mov edx, dword [esi + 0x48]
push ebx
push 0xa
lea ecx, [ebp - 0x41c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jne 0x4b976d
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x43c]
inc eax
mov dword [ebp - 0x43c], eax
cmp eax, 0xa
jl 0x4b96d3
or esi, 0xffffffff
cmp byte [ebp - 0x41c], 0x24
je 0x4b977c
mov dword [ebp - 4], esi
jmp 0x4b9610
mov dword [ebp - 4], 0xffffffff
xor ecx, ecx
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], ebx
mov word [ebp - 0x438], cx
mov eax, 0xe0000001
jmp 0x4b985e
or esi, 0xffffffff
cmp eax, esi
jne 0x4b9732
mov dword [ebp - 4], esi
jmp 0x4b968e
mov eax, dword [ebp - 0x41a]
cmp eax, 0x55aa0001
jne 0x4b9801
mov edx, dword [0x58c214]
mov eax, dword [edx + 0xc]
mov ecx, 0x58c214
call eax
add eax, 0x10
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x43c]
push str.Invalid_password_send_n
push ecx
call fcn.00401f60
add esp, 8
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b97de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
xor ecx, ecx
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], ebx
mov word [ebp - 0x438], cx
mov eax, 0xe0000005
jmp 0x4b985e
cmp eax, 0x55aa0000
je 0x4b984e
lea ecx, [ebp - 0x43c]
call fcn.00401a00
mov byte [ebp - 4], 4
lea edx, [ebp - 0x43c]
push str.Cannot_send_password_n
push edx
call fcn.00401f60
add esp, 8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x43c]
call fcn.00401ac0
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x438]
call fcn.00406000
mov eax, 0xe0000001
jmp 0x4b985e
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x438]
call fcn.00406000
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 8