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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4f5c40
cmp dword [ebx + 0x374], 0
je 0x4f5c40
mov dword [ebx + 0x33c], 1
push 0
call fcn.00548d28
pop ecx
mov dword [ebx + 0x394], eax
cmp dword [ebx + 0x374], 1
jne 0x4f5a27
mov dword [ebx + 0x374], 2
lea eax, [ebx + 0x234]
push eax
push dword [ebx + 0x360]
imul edx, dword [0x557490], 0x64
add edx, 0x5573c8
push edx
push str.120__s__lu__s_n
push 0x5856a7
call sub.USER32.dll_wsprintfA
add esp, 0x14
push 0
push 0x5856a7
call fcn.005395b8
pop ecx
push eax
push 0x5856a7
push dword [ebx + 0x3b0]
call sub.WSOCK32.dll_send
push 0x21
push 0x414
push dword [0x55b3c8]
push dword [ebx + 0x3b0]
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, 1
jmp 0x4f5c5f
mov eax, dword [ebx + 0x374]
cmp eax, 2
je 0x4f5a3b
cmp eax, 3
jne 0x4f5c40
push 0
push 0
push dword [0x55b3c8]
push dword [ebx + 0x3b0]
call sub.WSOCK32.dll_WSAAsyncSelect
push 0
push 0x2000
push 0x5856a7
push dword [ebx + 0x3b0]
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x4f5c40
test eax, eax
jle 0x4f5c40
mov byte [eax + 0x5856a7], 0
push 0x5856a7
call fcn.004c502b
test eax, eax
je 0x4f5c40
mov edi, 0x5856a7
jmp 0x4f5a99
inc edi
cmp byte [edi], 0x20
je 0x4f5a98
cmp byte [edi], 0
je 0x4f5c40
push 0x20
push edi
call fcn.00539518
add esp, 8
mov esi, eax
test esi, esi
je 0x4f5c40
mov byte [esi], 0
inc esi
jmp 0x4f5ac3
inc esi
cmp byte [esi], 0x20
je 0x4f5ac2
cmp byte [esi], 0
je 0x4f5c40
push 0x20
push esi
call fcn.00539518
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4f5b1a
mov eax, dword [ebp - 4]
mov byte [eax], 0
inc dword [ebp - 4]
jmp 0x4f5af3
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
cmp byte [edx], 0x20
je 0x4f5af0
mov ecx, dword [ebp - 4]
cmp byte [ecx], 0
je 0x4f5b1a
push 0xa
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00544304
add esp, 0xc
mov dword [ebx + 0x364], eax
push esi
call fcn.004c5084
test eax, eax
je 0x4f5c40
push edi
call fcn.00542dbc
pop ecx
mov dword [ebx + 0x378], eax
cmp dword [ebx + 0x374], 3
jne 0x4f5ba1
cmp dword [ebx + 0x378], 0x84
jne 0x4f5c40
lea edx, [ebx + 0x234]
push edx
lea ecx, [ebx + 4]
push ecx
push 0x5596d1
push 0x5856a7
call sub.USER32.dll_wsprintfA
add esp, 0x10
mov eax, dword [0x559654]
mov dword [0x55b55c], eax
push 1
push 1
push 3
push 0x5856a7
call fcn.00519cb1
mov esi, eax
mov dword [ebx], esi
test esi, esi
je 0x4f5c40
push ebx
call fcn.004f5ff6
mov eax, 1
jmp 0x4f5c5f
cmp dword [ebx + 0x378], 0x79
jne 0x4f5c40
lea edi, [ebx + 4]
push esi
push edi
mov eax, edi
mov edi, esi
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push dword [ebx]
call fcn.00516145
mov esi, eax
test esi, esi
je 0x4f5bfe
lea eax, [ebx + 0x234]
push eax
push edi
push 0x5596dd
lea edx, [esi + 4]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0x10
lea ecx, [ebx + 0x234]
push ecx
push edi
push str.Send__s__s
push 0x5856a7
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 0x5856a7
push dword [ebx]
call sub.USER32.dll_SetWindowTextA
cmp dword [0x55a3c0], 0
je 0x4f5c33
push esi
call fcn.005010e4
push ebx
call fcn.004f5ff6
mov eax, 1
jmp 0x4f5c5f
cmp dword [ebx + 0x374], 3
jne 0x4f5c55
push 0
push ebx
call fcn.004f4873
xor eax, eax
jmp 0x4f5c5f
push 0
push ebx
call fcn.004f6a19
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4