Function at 0x4e2453
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 1
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
xor edx, edx
mov dword [ebp - 8], edx
mov eax, dword [esi + 4]
test eax, eax
je 0x4e24c6
cmp byte [eax], 0x2d
jne 0x4e24c6
push 0x74
push eax
call fcn.0051833c
add esp, 8
test eax, eax
je 0x4e2495
xor edx, edx
mov dword [ebp - 4], edx
push 0x6e
push dword [esi + 4]
call fcn.0051833c
add esp, 8
test eax, eax
je 0x4e24ad
mov dword [ebp - 8], 1
push 0x62
push dword [esi + 4]
call fcn.0051833c
add esp, 8
test eax, eax
je 0x4e24c5
mov dword [ebp - 0x10], 1
inc edi
cmp dword [esi + edi*4], 0
jne 0x4e24de
push 0
push 0
push dword [esi]
push 0
call fcn.0045abd0
jmp 0x4e290c
mov dword [ebp - 0xc], edi
push 0x535e37
mov ecx, dword [ebp - 0xc]
push dword [esi + ecx*4]
call fcn.00518698
add esp, 8
test eax, eax
je 0x4e2541
push 0
push dword [0x535bbc]
mov eax, dword [ebp - 0xc]
push dword [esi + eax*4]
call fcn.004e071f
mov ebx, eax
test ebx, ebx
jne 0x4e25b3
push 0
push 0x145c
call fcn.00415c87
push eax
mov eax, dword [ebp - 0xc]
push dword [esi + eax*4]
push 0x535e3b
push 0x54b69c
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4e290c
mov edx, dword [ebp - 0xc]
push dword [esi + edx*4]
call fcn.004e0686
mov ebx, eax
test ebx, ebx
jne 0x4e257e
push 0
push 0x145d
call fcn.00415c87
push eax
mov eax, dword [ebp - 0xc]
push dword [esi + eax*4]
push 0x535e52
push 0x54b69c
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4e290c
cmp dword [ebx + 0xe4], 2
je 0x4e25b3
push 0
push 0x145e
call fcn.00415c87
push eax
mov edx, dword [ebp - 0xc]
push dword [esi + edx*4]
push 0x535e69
push 0x54b69c
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4e290c
cmp dword [ebx + 0xf0], 0
je 0x4e25e2
push 0
push 0x145f
call fcn.00415c87
push eax
push str.__sockwrite:__s
push 0x54b69c
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4e290c
inc edi
cmp dword [ebp - 0x10], 0
je 0x4e2607
cmp dword [esi + edi*4], 0
je 0x4e2607
push dword [esi + edi*4]
call fcn.0052175c
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x4e2606
xor edx, edx
mov dword [ebp - 0x10], edx
inc edi
cmp dword [esi + edi*4], 0
jne 0x4e264c
cmp dword [ebp - 8], 0
jne 0x4e2625
push 0
push 0
push dword [esi]
push 0
call fcn.0045abd0
jmp 0x4e290c
mov ecx, dword [ebp + 0xc]
push esi
mov esi, 0x535e92
mov edi, ecx
mov eax, edi
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
push dword [ebp + 0xc]
call fcn.005183dc
pop ecx
mov edi, eax
jmp 0x4e26f1
cmp dword [ebp - 4], 0
je 0x4e265a
mov eax, dword [esi + edi*4]
cmp byte [eax], 0x26
je 0x4e26a0
mov edx, dword [ebp + 0xc]
mov byte [edx], 0
push esi
push dword [ebp + 0xc]
push edi
call fcn.004bf445
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
push dword [ebp + 0xc]
call fcn.005183dc
pop ecx
mov edi, eax
cmp dword [ebp - 8], 0
je 0x4e26e3
mov eax, dword [ebp + 0xc]
cmp byte [eax + edi - 1], 0xa
je 0x4e26e3
push 0x535e96
push dword [ebp + 0xc]
call fcn.00518300
add esp, 8
add edi, 2
jmp 0x4e26e3
push dword [ebp + 0x10]
push dword [esi + edi*4]
call fcn.00413c0c
test eax, eax
jne 0x4e26d8
push 0
push 0x1457
call fcn.00415c87
push eax
push dword [esi + edi*4]
push 0x535e9a
push 0x54b69c
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4e290c
mov edx, dword [eax]
add edx, dword [eax + 8]
mov dword [ebp - 0x14], edx
mov edi, dword [eax + 4]
cmp dword [ebp - 0x10], 0
je 0x4e26f1
cmp edi, dword [ebp - 0x10]
jle 0x4e26f1
mov edi, dword [ebp - 0x10]
cmp dword [ebx + 0xe4], 2
jne 0x4e28d3
cmp dword [ebx + 0xdc], 0
je 0x4e2799
mov eax, dword [ebx + 0xe0]
add eax, edi
cmp eax, 0x4000
jle 0x4e2746
push 0
push 0x1458
call fcn.00415c87
push eax
mov edx, dword [ebp - 0xc]
push dword [esi + edx*4]
push str.__sockwrite:__s__s
push 0x54b69c
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4e290c
mov edx, dword [ebx + 0xe0]
add edx, edi
add edx, 5
push edx
push dword [ebx + 0xdc]
call fcn.0052480c
add esp, 8
test eax, eax
jne 0x4e2776
push 2
push 0
push dword [esi]
push 0
call fcn.0045abd0
jmp 0x4e290c
mov edx, eax
mov dword [ebx + 0xdc], edx
push edi
push dword [ebp - 0x14]
add edx, dword [ebx + 0xe0]
push edx
call fcn.005181ec
add esp, 0xc
add dword [ebx + 0xe0], edi
jmp 0x4e27dc
lea eax, [edi + 5]
push eax
call fcn.00524378
pop ecx
mov dword [ebx + 0xdc], eax
cmp dword [ebx + 0xdc], 0
jne 0x4e27c4
push 2
push 0
push dword [esi]
push 0
call fcn.0045abd0
jmp 0x4e290c
push edi
push dword [ebp - 0x14]
push dword [ebx + 0xdc]
call fcn.005181ec
add esp, 0xc
mov dword [ebx + 0xe0], edi
mov eax, dword [ebx + 0xe0]
cmp eax, 0x2000
jle 0x4e27ee
mov eax, 0x2000
push 0
push eax
push dword [ebx + 0xdc]
push dword [ebx + 0x120]
call sub.WSOCK32.dll_send
mov edi, eax
test edi, edi
jge 0x4e2859
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4e2831
push 0x23
push 0x438
push dword [0x537420]
push dword [ebx + 0x120]
call sub.WSOCK32.dll_WSAAsyncSelect
jmp 0x4e28d3
mov dword [ebx + 0x11c], eax
movzx eax, ax
shl eax, 0x10
or eax, 2
push eax
push dword [ebx + 0x120]
push 0x438
push dword [0x537420]
call sub.USER32.dll_PostMessageA
jmp 0x4e28d3
push 0
call fcn.00526bc8
pop ecx
mov dword [ebx + 0x114], eax
test edi, edi
jle 0x4e289b
add dword [ebx + 0x108], edi
cmp edi, dword [ebx + 0xe0]
jge 0x4e289b
sub dword [ebx + 0xe0], edi
push dword [ebx + 0xe0]
mov eax, dword [ebx + 0xdc]
mov edx, eax
add edx, edi
push edx
push eax
call fcn.00518210
add esp, 0xc
jmp 0x4e28d3
push dword [ebx + 0xdc]
call fcn.00524270
pop ecx
xor ecx, ecx
mov dword [ebx + 0xdc], ecx
xor eax, eax
mov dword [ebx + 0xe0], eax
cmp dword [0x534d3c], 0
je 0x4e28d3
push ebx
push 0
push 0x43a
push dword [0x537420]
call sub.USER32.dll_PostMessageA
push 0x535ec8
mov edx, dword [ebp - 0xc]
push dword [esi + edx*4]
call fcn.00518698
add esp, 8
test eax, eax
je 0x4e2907
push 0
push dword [ebx + 0x124]
mov ecx, dword [ebp - 0xc]
push dword [esi + ecx*4]
call fcn.004e071f
mov ebx, eax
test ebx, ebx
jne 0x4e26f1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc