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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x449868]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x44c974], 0
push ebx
push esi
push edi
mov dword [ebp - 0x820], 0x10
mov ebx, 0x44c978
mov dword [ebp - 0x81c], 0
jbe 0x40e512
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebx]
mov eax, dword [0x44c2ec]
cmp ecx, eax
jne 0x40e2c6
lea ecx, [ebp - 0x820]
push ecx
lea ecx, [ebp - 0x818]
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_accept]
push dword [0x44c1ec]
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push eax
push eax
push 0xb1
push dword [0x44c1ec]
call edi
cmp esi, 0xffffffff
je 0x40e523
push 0x441ab0
push 1
push 0xc2
push dword [0x44c1ec]
call edi
push 0xffffffffffffffff
call fcn.0040e550
mov edi, eax
test edi, edi
jne 0x40e1e6
push eax
push 0xa
lea eax, [ebp - 0x408]
push 0x441ac8
push eax
call fcn.0041b891
add esp, 0xc
push eax
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_send]
push dword [0x44c1ec]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push eax
push 0xb1
push dword [0x44c1ec]
call edi
lea eax, [ebp - 0x408]
push eax
push 1
push 0xc2
push dword [0x44c1ec]
call edi
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x40e4f6
mov byte [edi], 0
mov eax, dword [ebp - 0x814]
mov dword [edi + 0x84], eax
push dword [ebp - 0x816]
call dword [sym.imp.WSOCK32.dll_ntohs]
push 0
push 0x44c268
mov word [edi + 0x88], ax
lea eax, [ebp - 0x408]
push 0x441af4
push eax
mov dword [edi + 0x80], esi
call fcn.0041b891
add esp, 0xc
push eax
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_send]
movzx eax, word [edi + 0x88]
push eax
push dword [edi + 0x84]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x408]
push 0x441b0c
push eax
call fcn.0041b891
add esp, 0x10
push dword [0x44c1ec]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push eax
push 0xb1
push dword [0x44c1ec]
call edi
lea eax, [ebp - 0x408]
push eax
push 1
push 0xc2
push dword [0x44c1ec]
call edi
mov eax, dword [0x44c870]
cmp eax, 0x40
jae 0x40e2af
mov dword [eax*4 + 0x44c874], esi
inc dword [0x44c870]
cmp esi, dword [0x44c86c]
jbe 0x40e4f6
mov dword [0x44c86c], esi
jmp 0x40e4f6
push 0
push 0x400
lea eax, [ebp - 0x808]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
mov edi, eax
mov eax, dword [ebx]
xor esi, esi
mov ecx, 0x44c374
cmp dword [ecx], eax
je 0x40e2fd
add ecx, 0x8c
inc esi
cmp ecx, 0x44c8ec
jne 0x40e2e6
xor esi, esi
jmp 0x40e309
imul esi, esi, 0x8c
add esi, 0x44c2f4
mov dword [ebp - 0x408], 1
test edi, edi
jg 0x40e446
test esi, esi
je 0x40e391
movzx eax, word [esi + 0x88]
push eax
push dword [esi + 0x84]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
push esi
lea eax, [ebp - 0x404]
push 0x441b24
push eax
call fcn.0041b891
add esp, 0x14
mov edi, eax
push dword [0x44c1ec]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push eax
push eax
push 0xb1
push dword [0x44c1ec]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x404]
push eax
push 1
push 0xc2
push dword [0x44c1ec]
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [esi], 0
mov dword [esi + 0x80], 0xffffffff
push dword [ebx]
call dword [sym.imp.WSOCK32.dll_closesocket]
mov edx, dword [0x44c870]
xor eax, eax
test edx, edx
je 0x40e3ed
mov esi, dword [ebx]
mov ecx, 0x44c874
lea esp, [esp]
cmp dword [ecx], esi
je 0x40e3be
inc eax
add ecx, 4
cmp eax, edx
jb 0x40e3b0
jmp 0x40e3ed
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x40e3e6
lea esi, [eax*4 + 0x44c874]
lea esp, [esp]
mov ecx, dword [esi + 4]
mov dword [esi], ecx
mov edx, dword [0x44c870]
inc eax
lea ecx, [edx - 1]
lea esi, [esi + 4]
cmp eax, ecx
jb 0x40e3d0
dec edx
mov dword [0x44c870], edx
add edi, 4
cmp byte [0x44caa0], 0
je 0x40e42b
mov esi, 0x44c374
mov edi, edi
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40e418
push 0
push edi
lea ecx, [ebp - 0x408]
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_send]
add esi, 0x8c
cmp esi, 0x44c8ec
jne 0x40e400
jmp 0x40e4f0
push 0
push edi
lea eax, [ebp - 0x408]
push eax
push dword [0x44c2f0]
call dword [sym.imp.WSOCK32.dll_send]
jmp 0x40e4f0
cmp edi, 0x400
je 0x40e4f0
cmp dword [ebp - 0x808], 1
jne 0x40e4f0
cmp edi, 0x400
jae 0x40e548
cmp byte [esi], 0
mov byte [ebp + edi - 0x808], 0
jne 0x40e4ca
lea ecx, [ebp - 0x804]
mov edx, esi
mov eax, ecx
mov byte [ebp - 0x785], 0
sub edx, eax
jmp 0x40e490
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x40e490
push esi
lea eax, [ebp - 0x404]
push 0x441b44
push eax
call fcn.0041b891
add esp, 0xc
lea ecx, [ebp - 0x404]
mov esi, eax
call fcn.0040ee20
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x408]
jmp 0x40e4ea
cmp edi, 4
jle 0x40e4f0
cmp dword [ebp - 0x808], 1
jne 0x40e4f0
lea ecx, [ebp - 0x804]
call fcn.0040ee20
push edi
lea eax, [ebp - 0x808]
push eax
call fcn.0040e590
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x81c]
inc edx
add ebx, 4
mov dword [ebp - 0x81c], edx
cmp edx, dword [0x44c974]
jb 0x40e112
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041aca0
mov esp, ebp
pop ebp
ret
push 0x441a90
push 1
push 0xc2
push dword [0x44c1ec]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041aca0
mov esp, ebp
pop ebp
ret
call fcn.0041cf33
int3