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

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 4]
xor ecx, ecx
cmp eax, ecx
push esi
mov esi, 1
push edi
mov edi, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
mov ebx, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
je 0x515584
cmp byte [eax], 0x2d
jne 0x515584
push 0x74
push eax
call fcn.00563730
add esp, 8
test eax, eax
je 0x515551
xor ebx, ebx
mov eax, dword [ebp + 4]
push 0x6e
push eax
call fcn.00563730
add esp, 8
test eax, eax
je 0x515567
mov dword [esp + 0x18], esi
mov ecx, dword [ebp + 4]
push 0x62
push ecx
call fcn.00563730
add esp, 8
test eax, eax
je 0x51557d
mov dword [esp + 0x14], esi
mov esi, 2
xor ecx, ecx
mov eax, dword [ebp + esi*4]
cmp eax, ecx
jne 0x5155a2
mov edx, dword [ebp]
push ecx
push ecx
xor ecx, ecx
call fcn.00475f10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
push 0x57568c
push eax
mov dword [esp + 0x28], esi
call fcn.00564fb0
mov ecx, dword [ebp + esi*4]
add esp, 8
test eax, eax
je 0x5155e9
mov edx, dword [0x59f670]
push 0
call fcn.005132e0
mov ebp, eax
test ebp, ebp
jne 0x515630
xor edx, edx
mov ecx, 0x145c
call fcn.0041c9e0
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [edx + esi*4]
push eax
jmp 0x5159c8
call fcn.00513240
mov ebp, eax
test ebp, ebp
jne 0x51560e
xor edx, edx
mov ecx, 0x145d
call fcn.0041c9e0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + esi*4]
push eax
push edx
jmp 0x5159c8
cmp dword [ebp + 0x14c], 2
je 0x515630
xor edx, edx
mov ecx, 0x145e
call fcn.0041c9e0
push eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + esi*4]
jmp 0x5159c7
mov eax, dword [ebp + 0x158]
test eax, eax
je 0x515666
xor edx, edx
mov ecx, 0x145f
call fcn.0041c9e0
push eax
push str.__sockwrite:__s
push 0x595d60
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc esi
test eax, eax
je 0x515698
mov eax, dword [edx + esi*4]
test eax, eax
je 0x515698
push eax
call fcn.00563a6c
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
jg 0x515693
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x10]
inc esi
mov ecx, dword [edx + esi*4]
test ecx, ecx
jne 0x5156e5
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x5156ba
mov edx, dword [edx]
push ecx
push ecx
call fcn.00475f10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ax, word [0x574b0c]
mov edx, edi
mov word [edx], ax
mov cl, byte [0x574b0e]
mov eax, edi
mov byte [edx + 2], cl
mov dword [esp + 0x28], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5156d7
sub eax, edx
jmp 0x51578c
test ebx, ebx
je 0x515725
cmp byte [ecx], 0x26
jne 0x515725
mov edx, dword [esp + 0x28]
call fcn.0041af50
test eax, eax
jne 0x515715
xor edx, edx
mov ecx, 0x1457
call fcn.0041c9e0
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [edx + esi*4]
push eax
jmp 0x5159c8
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov eax, dword [eax + 8]
add ecx, edx
mov dword [esp + 0x28], ecx
jmp 0x51577e
push edx
mov edx, edi
mov ecx, esi
mov byte [edi], 0
call fcn.004ed300
mov eax, edi
mov dword [esp + 0x28], edi
lea edx, [eax + 1]
jmp 0x515740
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x515740
mov ecx, dword [esp + 0x18]
sub eax, edx
test ecx, ecx
je 0x51577e
test eax, eax
jle 0x51575c
cmp byte [eax + edi - 1], 0xa
je 0x51577e
dec edi
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x515760
mov cx, word [0x574b0c]
mov word [edi], cx
mov dl, byte [0x574b0e]
mov byte [edi + 2], dl
add eax, 2
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x51578c
cmp ecx, eax
jge 0x51578c
mov eax, ecx
mov ebx, eax
mov edi, edi
cmp dword [ebp + 0x14c], 2
jne 0x515969
mov ecx, dword [ebp + 0x140]
test ecx, ecx
je 0x5157f9
mov eax, dword [ebp + 0x144]
add eax, ebx
cmp eax, 0x4000
jg 0x5159af
add eax, 0xa
push eax
push ecx
call fcn.00564c59
add esp, 8
test eax, eax
je 0x5159e7
mov edi, dword [ebp + 0x144]
mov esi, dword [esp + 0x28]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
add edi, eax
mov dword [ebp + 0x140], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebp + 0x144], ebx
jmp 0x51582f
lea eax, [ebx + 0xa]
push eax
call fcn.005635a3
add esp, 4
test eax, eax
mov dword [ebp + 0x140], eax
je 0x515a02
mov esi, dword [esp + 0x28]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x144], ebx
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, edi
je 0x515851
mov edx, dword [ebp + 0x18c]
push edi
push 2
mov ecx, 0x8038
call fcn.0053f9b0
jmp 0x515969
mov eax, dword [ebp + 0x144]
cmp eax, 0x2000
jle 0x515863
mov eax, 0x2000
mov ecx, dword [ebp + 0x18c]
push edi
push eax
mov eax, dword [ebp + 0x140]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5158c1
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [esp + 0x1c], 1
je 0x515969
movzx edx, ax
shl edx, 0x10
mov dword [ebp + 0x184], eax
mov eax, dword [ebp + 0x18c]
mov ecx, dword [0x5a1b00]
or edx, 2
push edx
push eax
push 0x8038
push ecx
jmp 0x515963
push edi
call fcn.00563e36
add esp, 4
cmp esi, edi
mov dword [ebp + 0x17c], eax
jle 0x515931
mov edx, dword [ebp + 0x170]
mov eax, dword [ebp + 0x144]
add edx, esi
cmp esi, eax
mov dword [ebp + 0x170], edx
jge 0x515931
mov ecx, dword [ebp + 0x140]
sub eax, esi
push eax
lea edx, [ecx + esi]
push edx
push ecx
mov dword [ebp + 0x144], eax
call fcn.005641d0
mov eax, dword [ebp + 0x144]
mov ecx, dword [ebp + 0x140]
add eax, 0xa
push eax
push ecx
call fcn.00564c59
add esp, 0x14
cmp eax, edi
je 0x515839
mov dword [ebp + 0x140], eax
jmp 0x515839
mov edx, dword [ebp + 0x140]
push edx
call fcn.005635b5
mov dword [ebp + 0x140], edi
mov dword [ebp + 0x144], edi
mov eax, dword [0x59ca60]
add esp, 4
cmp eax, edi
je 0x515969
mov eax, dword [0x5a1b00]
push ebp
push 0
push 0x803a
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, dword [edi + esi*4]
push 0x57568c
push ecx
call fcn.00564fb0
add esp, 8
test eax, eax
je 0x5159a0
mov edx, dword [ebp + 0x194]
mov ecx, dword [edi + esi*4]
push 0
call fcn.005132e0
mov ebp, eax
test ebp, ebp
jne 0x515790
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 4
xor edx, edx
mov ecx, 0x1458
call fcn.0041c9e0
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [edx + eax*4]
push ecx
push str.__sockwrite:__s__s
push 0x595d60
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov edx, dword [esp + 0x10]
mov edx, dword [edx]
push 2
push 0
xor ecx, ecx
call fcn.00475f10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 2
push 0
xor ecx, ecx
call fcn.00475f10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4