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

Disassembly:
mov eax, dword [0x641548]
sub esp, 0x3e8
test eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3f8]
push edi
mov ebp, 3
je 0x53f99e
nop
cmp eax, esi
je 0x53f9c2
mov eax, dword [eax + 0x3d4]
test eax, eax
jne 0x53f990
cmp dword [esi + 0x378], ebp
jne 0x53fce1
push 0
push esi
call fcn.0053dbb0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3e8
ret
mov eax, dword [esi + 0x3c8]
test eax, eax
mov eax, dword [esi + 0x378]
je 0x53f9ef
test eax, eax
jne 0x53f9f3
push esi
call fcn.0053f5d0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3e8
ret
test eax, eax
je 0x53f99e
mov edi, dword [esi + 0x3d0]
push edi
call fcn.00502a60
add esp, 4
test eax, eax
je 0x53f99e
mov eax, dword [esi + 0x378]
cmp eax, 1
mov dword [esi + 0x33c], 1
mov dword [esi + 0x39c], 0
jne 0x53fab9
mov ecx, dword [esi + 0x364]
mov dword [esi + 0x378], 2
mov edx, dword [edi + 0xf28]
imul edx, edx, 0x64
lea eax, [esi + 0x234]
push eax
push ecx
lea eax, [edx + edi + 0xdfc]
push eax
lea ecx, [esp + 0x1c]
push str.120__s__lu__s_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x24]
add esp, 0x14
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x53fa70
sub eax, edx
push 0
push eax
mov eax, dword [esi + 0x3cc]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_send]
mov ecx, dword [0x645324]
mov edx, dword [esi + 0x3cc]
push 0x21
push 0x8014
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3e8
ret
cmp eax, 2
je 0x53fac6
cmp eax, ebp
jne 0x53f99e
mov eax, dword [0x645324]
mov ecx, dword [esi + 0x3cc]
push 0
push 0
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x3cc]
push 0
push 0x3e6
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x53f99e
test eax, eax
jle 0x53f99e
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + eax + 0x14], 0
call fcn.005017f0
add esp, 4
test eax, eax
je 0x53f99e
cmp byte [esp + 0x10], 0x20
lea ebx, [esp + 0x10]
jne 0x53fb38
lea esp, [esp]
mov al, byte [ebx + 1]
inc ebx
cmp al, 0x20
je 0x53fb30
cmp byte [ebx], 0
je 0x53f99e
push 0x20
push ebx
call fcn.005cbf10
mov edi, eax
add esp, 8
test edi, edi
je 0x53f99e
mov byte [edi], 0
mov al, byte [edi + 1]
inc edi
cmp al, 0x20
jne 0x53fb69
mov al, byte [edi + 1]
inc edi
cmp al, 0x20
je 0x53fb61
cmp byte [edi], 0
je 0x53f99e
push 0x20
push edi
call fcn.005cbf10
add esp, 8
test eax, eax
je 0x53fbb1
mov byte [eax], 0
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
jne 0x53fb99
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
je 0x53fb90
cmp byte [eax], 0
je 0x53fbb1
push 0xa
push 0
push eax
call fcn.005cc742
add esp, 0xc
mov dword [esi + 0x368], eax
push edi
call fcn.00501830
add esp, 4
test eax, eax
je 0x53f99e
push ebx
call fcn.005cbe51
mov ecx, dword [esi + 0x378]
add esp, 4
cmp ecx, ebp
mov dword [esi + 0x37c], eax
jne 0x53fc4a
cmp eax, 0x84
jne 0x53f99e
lea edx, [esi + 0x234]
push edx
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x18]
push str.Send__s__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x641b20]
push esi
mov dword [0x645374], edx
mov eax, dword [esi + 0x3d0]
push eax
push 1
push 1
lea ecx, [esp + 0x30]
push ebp
push ecx
call fcn.005899d0
add esp, 0x28
test eax, eax
mov dword [esi], eax
je 0x53f99e
push esi
call fcn.0053f5d0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3e8
ret
cmp eax, 0x79
jne 0x53f99e
lea ebp, [esi + 4]
mov edx, ebp
mov eax, edi
sub edx, edi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x53fc60
mov edx, dword [esi]
push edx
call fcn.005827d0
add esp, 4
test eax, eax
je 0x53fcb1
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esi + 0x234]
push edi
push ebp
add eax, 8
push str.Send__s__s
push eax
call ebx
push edi
push ebp
lea eax, [esp + 0x28]
push str.Send__s__s
push eax
call ebx
mov edx, dword [esi]
add esp, 0x20
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x64531c]
push eax
call fcn.0054c3b0
push 0
mov dword [0x64531c], eax
call fcn.005562e0
push esi
call fcn.0053f5d0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3e8
ret
push 0x5e6c98
push 0
push esi
call fcn.0053e670
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3e8
ret