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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
push ebx
call fcn.00501a6b
test eax, eax
je 0x502cc5
cmp dword [ebx + 0x374], 0
je 0x502cc5
push dword [ebx]
call fcn.0041286b
test eax, eax
je 0x502cc5
mov dword [ebx + 0x33c], 1
xor edx, edx
mov dword [ebx + 0x39c], edx
cmp dword [ebx + 0x374], 1
jne 0x502a9f
mov dword [ebx + 0x374], 2
lea ecx, [ebx + 0x234]
push ecx
push dword [ebx + 0x360]
imul edx, dword [eax + 0xb84], 0x64
add eax, edx
add eax, 0xa58
push eax
push str.120__s__lu__s_n
lea eax, [ebp - 0x3f0]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0x14
push 0
lea ecx, [ebp - 0x3f0]
push ecx
call fcn.0054c2d0
pop ecx
push eax
lea eax, [ebp - 0x3f0]
push eax
push dword [ebx + 0x3c4]
call sub.WSOCK32.dll_send
push 0x21
push 0x8014
push dword [0x56cee8]
push dword [ebx + 0x3c4]
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, 1
jmp 0x502ce9
mov eax, dword [ebx + 0x374]
cmp eax, 2
je 0x502ab3
cmp eax, 3
jne 0x502cc5
push 0
push 0
push dword [0x56cee8]
push dword [ebx + 0x3c4]
call sub.WSOCK32.dll_WSAAsyncSelect
push 0
push 0x3e6
lea edx, [ebp - 0x3f0]
push edx
push dword [ebx + 0x3c4]
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x502cc5
test eax, eax
jle 0x502cc5
mov byte [ebp + eax - 0x3f0], 0
lea ecx, [ebp - 0x3f0]
push ecx
call fcn.004d38ec
test eax, eax
je 0x502cc5
lea edi, [ebp - 0x3f0]
jmp 0x502b17
inc edi
cmp byte [edi], 0x20
je 0x502b16
cmp byte [edi], 0
je 0x502cc5
push 0x20
push edi
call fcn.0054c230
add esp, 8
mov esi, eax
test esi, esi
je 0x502cc5
mov byte [esi], 0
inc esi
jmp 0x502b41
inc esi
cmp byte [esi], 0x20
je 0x502b40
cmp byte [esi], 0
je 0x502cc5
push 0x20
push esi
call fcn.0054c230
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x502b98
mov eax, dword [ebp - 4]
mov byte [eax], 0
inc dword [ebp - 4]
jmp 0x502b71
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
cmp byte [edx], 0x20
je 0x502b6e
mov ecx, dword [ebp - 4]
cmp byte [ecx], 0
je 0x502b98
push 0xa
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0055666c
add esp, 0xc
mov dword [ebx + 0x364], eax
push esi
call fcn.004d3933
test eax, eax
je 0x502cc5
push edi
call fcn.00555124
pop ecx
mov dword [ebx + 0x378], eax
cmp dword [ebx + 0x374], 3
jne 0x502c2b
cmp dword [ebx + 0x378], 0x84
jne 0x502cc5
lea edx, [ebx + 0x234]
push edx
lea ecx, [ebx + 4]
push ecx
push 0x56b91c
lea eax, [ebp - 0x3f0]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0x10
mov edx, dword [0x56b8a4]
mov dword [0x56d074], edx
push dword [ebx + 0x3c8]
push 1
push 1
push 3
lea ecx, [ebp - 0x3f0]
push ecx
call fcn.00524566
mov esi, eax
mov dword [ebx], esi
test esi, esi
je 0x502cc5
push ebx
call fcn.00503117
mov eax, 1
jmp 0x502ce9
cmp dword [ebx + 0x378], 0x79
jne 0x502cc5
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.0051dd0a
mov esi, eax
test esi, esi
je 0x502c88
lea eax, [ebx + 0x234]
push eax
push edi
push 0x56b928
lea edx, [esi + 8]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0x10
lea ecx, [ebx + 0x234]
push ecx
push edi
push str.Send__s__s
lea eax, [ebp - 0x3f0]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0x10
lea edx, [ebp - 0x3f0]
push edx
push dword [ebx]
call sub.USER32.dll_SetWindowTextA
push esi
call fcn.00417312
push ebx
call fcn.00503117
mov eax, 1
jmp 0x502ce9
cmp dword [ebx + 0x374], 3
jne 0x502cda
push 0
push ebx
call fcn.0050199b
xor eax, eax
jmp 0x502ce9
push 0x56b940
push 0
push ebx
call fcn.00503b09
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4