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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
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
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x509572
cmp byte [eax], 0x2d
jne 0x509572
push 0x74
push eax
call fcn.0054c230
add esp, 8
test eax, eax
je 0x509541
xor edx, edx
mov dword [ebp - 4], edx
push 0x6e
push dword [esi + 4]
call fcn.0054c230
add esp, 8
test eax, eax
je 0x509559
mov dword [ebp - 8], 1
push 0x62
push dword [esi + 4]
call fcn.0054c230
add esp, 8
test eax, eax
je 0x509571
mov dword [ebp - 0x10], 1
inc edi
cmp dword [esi + edi*4], 0
jne 0x50958a
push 0
push 0
push dword [esi]
push 0
call fcn.00479c10
jmp 0x509a07
mov dword [ebp - 0xc], edi
push 0x56bf0b
mov ecx, dword [ebp - 0xc]
push dword [esi + ecx*4]
call fcn.0054c58c
add esp, 8
test eax, eax
je 0x5095ed
push 0
push dword [0x56bc8c]
mov eax, dword [ebp - 0xc]
push dword [esi + eax*4]
call fcn.00507265
mov ebx, eax
test ebx, ebx
jne 0x50965f
push 0
push 0x145c
call fcn.0042c564
push eax
mov eax, dword [ebp - 0xc]
push dword [esi + eax*4]
push 0x56bf0f
push 0x57e17c
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x509a07
mov edx, dword [ebp - 0xc]
push dword [esi + edx*4]
call fcn.005071ea
mov ebx, eax
test ebx, ebx
jne 0x50962a
push 0
push 0x145d
call fcn.0042c564
push eax
mov eax, dword [ebp - 0xc]
push dword [esi + eax*4]
push 0x56bf26
push 0x57e17c
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x509a07
cmp dword [ebx + 0x14c], 2
je 0x50965f
push 0
push 0x145e
call fcn.0042c564
push eax
mov edx, dword [ebp - 0xc]
push dword [esi + edx*4]
push 0x56bf3d
push 0x57e17c
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x509a07
cmp dword [ebx + 0x158], 0
je 0x50968e
push 0
push 0x145f
call fcn.0042c564
push eax
push str.__sockwrite:__s
push 0x57e17c
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x509a07
inc edi
cmp dword [ebp - 0x10], 0
je 0x5096b3
cmp dword [esi + edi*4], 0
je 0x5096b3
push dword [esi + edi*4]
call fcn.00555124
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x5096b2
xor edx, edx
mov dword [ebp - 0x10], edx
inc edi
cmp dword [esi + edi*4], 0
jne 0x5096f8
cmp dword [ebp - 8], 0
jne 0x5096d1
push 0
push 0
push dword [esi]
push 0
call fcn.00479c10
jmp 0x509a07
mov ecx, dword [ebp + 0xc]
push esi
mov esi, 0x56bf66
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 - 0x1c], edx
push dword [ebp + 0xc]
call fcn.0054c2d0
pop ecx
mov edi, eax
jmp 0x5097a1
cmp dword [ebp - 4], 0
je 0x509706
mov eax, dword [esi + edi*4]
cmp byte [eax], 0x26
je 0x509750
mov edx, dword [ebp + 0xc]
mov byte [edx], 0
push esi
push dword [ebp + 0xc]
push edi
call fcn.004e45c5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
push dword [ebp + 0xc]
call fcn.0054c2d0
pop ecx
mov edi, eax
cmp dword [ebp - 8], 0
je 0x509793
test edi, edi
jle 0x50973b
mov eax, dword [ebp + 0xc]
cmp byte [eax + edi - 1], 0xa
je 0x509793
push 0x56bf6a
push dword [ebp + 0xc]
call fcn.0054c1f4
add esp, 8
add edi, 2
jmp 0x509793
push dword [ebp + 0x10]
push dword [esi + edi*4]
call fcn.0042a810
test eax, eax
jne 0x509788
push 0
push 0x1457
call fcn.0042c564
push eax
push dword [esi + edi*4]
push 0x56bf6e
push 0x57e17c
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x509a07
mov edx, dword [eax]
add edx, dword [eax + 0xc]
mov dword [ebp - 0x1c], edx
mov edi, dword [eax + 8]
cmp dword [ebp - 0x10], 0
je 0x5097a1
cmp edi, dword [ebp - 0x10]
jle 0x5097a1
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x14]
cmp dword [ebx + 0x14c], 2
jne 0x5099ce
cmp dword [ebx + 0x140], 0
je 0x50984f
mov eax, dword [ebx + 0x144]
add eax, edi
cmp eax, 0x4000
jle 0x5097fc
push 0
push 0x1458
call fcn.0042c564
push eax
mov edx, dword [ebp - 0xc]
push dword [esi + edx*4]
push str.__sockwrite:__s__s
push 0x57e17c
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x509a07
mov edx, dword [ebx + 0x144]
add edx, edi
add edx, 0xa
push edx
push dword [ebx + 0x140]
call fcn.00558280
add esp, 8
test eax, eax
jne 0x50982c
push 2
push 0
push dword [esi]
push 0
call fcn.00479c10
jmp 0x509a07
mov edx, eax
mov dword [ebx + 0x140], edx
push edi
push dword [ebp - 0x1c]
add edx, dword [ebx + 0x144]
push edx
call fcn.0054c0e0
add esp, 0xc
add dword [ebx + 0x144], edi
jmp 0x509892
lea eax, [edi + 0xa]
push eax
call fcn.00557db4
pop ecx
mov dword [ebx + 0x140], eax
cmp dword [ebx + 0x140], 0
jne 0x50987a
push 2
push 0
push dword [esi]
push 0
call fcn.00479c10
jmp 0x509a07
push edi
push dword [ebp - 0x1c]
push dword [ebx + 0x140]
call fcn.0054c0e0
add esp, 0xc
mov dword [ebx + 0x144], edi
cmp dword [ebp - 0x18], 0
je 0x5098b1
push 0
push 2
push dword [ebx + 0x18c]
push 0x8038
call fcn.00526a8c
jmp 0x5099ce
mov eax, dword [ebx + 0x144]
cmp eax, 0x2000
jle 0x5098c3
mov eax, 0x2000
push 0
push eax
push dword [ebx + 0x140]
push dword [ebx + 0x18c]
call sub.WSOCK32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x509920
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x18], 1
cmp eax, 0x2733
je 0x5099ce
mov dword [ebx + 0x184], eax
movzx eax, ax
shl eax, 0x10
or eax, 2
push eax
push dword [ebx + 0x18c]
push 0x8038
push dword [0x56cee8]
call sub.USER32.dll_PostMessageA
jmp 0x5099ce
push 0
call fcn.0055aa70
pop ecx
mov dword [ebx + 0x17c], eax
test edi, edi
jle 0x509996
add dword [ebx + 0x170], edi
cmp edi, dword [ebx + 0x144]
jge 0x509996
sub dword [ebx + 0x144], edi
push dword [ebx + 0x144]
mov eax, dword [ebx + 0x140]
add edi, eax
push edi
push eax
call fcn.0054c104
add esp, 0xc
mov edx, dword [ebx + 0x144]
add edx, 0xa
push edx
push dword [ebx + 0x140]
call fcn.00558280
add esp, 8
test eax, eax
je 0x509980
mov dword [ebx + 0x140], eax
push 0
push 2
push dword [ebx + 0x18c]
push 0x8038
call fcn.00526a8c
jmp 0x5099ce
push dword [ebx + 0x140]
call fcn.00557ca0
pop ecx
xor ecx, ecx
mov dword [ebx + 0x140], ecx
xor eax, eax
mov dword [ebx + 0x144], eax
cmp dword [0x56acb4], 0
je 0x5099ce
push ebx
push 0
push 0x803a
push dword [0x56cee8]
call sub.USER32.dll_PostMessageA
push 0x56bf9c
mov edx, dword [ebp - 0xc]
push dword [esi + edx*4]
call fcn.0054c58c
add esp, 8
test eax, eax
je 0x509a02
push 0
push dword [ebx + 0x194]
mov ecx, dword [ebp - 0xc]
push dword [esi + ecx*4]
call fcn.00507265
mov ebx, eax
test ebx, ebx
jne 0x5097a4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc