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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa030
call fcn.00463a90
mov eax, dword [0x4b9430]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test byte [ebx + 0x174], 0x30
mov eax, dword [ebx + 0x84]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xa01c], ebx
mov dword [ebp - 0xa020], eax
mov dword [ebp - 0xa018], 0xa000
mov dword [ebp - 0xa014], edi
mov dword [ebp - 0xa024], 0
je 0x4195b6
lea ecx, [ebp - 0xa010]
push ecx
lea edx, [ebp - 0xa014]
push edx
lea eax, [ebp - 0xa018]
mov ecx, esi
call fcn.00423f40
add esp, 8
test eax, eax
jne 0x419760
mov eax, dword [ebp - 0xa014]
add esi, eax
sub edi, eax
mov eax, dword [ebp - 0xa018]
mov dword [ebp - 0xa02c], esi
mov dword [ebp - 0xa024], edi
mov dword [ebp - 0xa014], eax
lea esi, [ebp - 0xa010]
cmp dword [ebp - 0xa014], 0
ja 0x4195d2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x11c], 0
je 0x41971e
cmp word [ebx + 0x152], 0
jne 0x41971e
push str.__HEAD_
mov edx, esi
call fcn.004159b0
mov ecx, eax
add esp, 4
mov dword [ebp - 0xa018], ecx
test ecx, ecx
jne 0x41961f
push str._BODY
mov edx, esi
call fcn.004159b0
add esp, 4
mov dword [ebp - 0xa018], eax
mov ecx, eax
mov edx, dword [ebp - 0xa014]
lea eax, [esi + edx]
mov dword [ebp - 0xa028], eax
test ecx, ecx
je 0x41971e
mov edi, dword [ebp - 0xa020]
mov edx, 1
mov word [ebx + 0x152], dx
mov ebx, ecx
sub ebx, esi
je 0x419682
push esi
push ebx
push edi
push str.to_socket__d:__N
push 0x10
call fcn.004090c0
add esp, 0x14
push 0
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, ebx
setne cl
mov eax, ecx
test eax, eax
jne 0x419760
mov ecx, dword [ebp - 0xa018]
mov edx, dword [ebp - 0xa01c]
mov ebx, dword [edx + 0x11c]
mov eax, ebx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x419693
sub eax, esi
mov esi, eax
je 0x4196d4
push ebx
push esi
push edi
push str.to_socket__d:__N
push 0x10
call fcn.004090c0
add esp, 0x14
push 0
push esi
push ebx
push edi
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
test eax, eax
jne 0x419760
mov ecx, dword [ebp - 0xa018]
mov eax, dword [ebp - 0xa028]
sub eax, ecx
je 0x4196f1
mov ebx, dword [ebp - 0xa020]
mov esi, eax
mov edi, ecx
call fcn.0040cd80
test eax, eax
jne 0x419760
mov edx, dword [ebp - 0xa01c]
mov eax, dword [edx + 0x11c]
test eax, eax
je 0x419774
push eax
call fcn.0045d483
mov eax, dword [ebp - 0xa01c]
add esp, 4
mov dword [eax + 0x11c], 0
mov ebx, eax
jmp 0x419776
mov ecx, dword [ebp - 0xa014]
mov edx, dword [ebp - 0xa020]
push esi
push ecx
push edx
push str.to_socket__d:__N
push 0x10
call fcn.004090c0
mov edi, dword [ebp - 0xa014]
mov eax, dword [ebp - 0xa020]
add esp, 0x14
push 0
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, edi
setne cl
mov eax, ecx
test eax, eax
je 0x419776
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
mov ebx, edx
cmp dword [ebx + 0x14c], 2
jne 0x4197b1
mov eax, dword [ebp - 0xa024]
test eax, eax
je 0x4197b1
mov edx, dword [ebp - 0xa02c]
push eax
push edx
push ebx
call fcn.00419510
add esp, 0xc
add eax, dword [ebp - 0xa014]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa014]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret