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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x111121c]
push ebx
push 2
mov dword [ebp - 4], eax
mov ebx, ecx
call fcn.0106dc57
test eax, eax
je 0x106de95
cmp dword [ebx + 0xe6c], 2
jb 0x106de95
or dword [ebp - 0x314], 0xffffffff
push esi
lea esi, [ebx + 0x66c]
mov al, byte [esi + 1]
mov byte [ebx + 0x664], al
movsx eax, byte [esi + 1]
push edi
xor edi, edi
sub eax, edi
mov dword [ebp - 0x320], esi
je 0x106dea0
dec eax
je 0x106de7b
dec eax
jne 0x106de87
push 6
mov ecx, ebx
call fcn.0106da65
push 0x20019
push edi
push 0x80000001
push 0x100c330
lea ecx, [ebp - 0x33c]
mov byte [ebp - 0x310], 1
call fcn.01064103
push 0x100c458
lea ecx, [ebp - 0x348]
call fcn.010644d9
mov ecx, eax
call fcn.010645a9
push eax
lea ecx, [ebp - 0x33c]
call fcn.010641fb
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x31c], eax
call fcn.01064519
push dword [ebp - 0x31c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0xff
cmp eax, ecx
mov dword [ebp - 0x318], eax
jb 0x106dd95
mov dword [ebp - 0x318], ecx
mov eax, ecx
mov esi, dword [ebp - 0x31c]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov byte [ebp - 0x30f], al
lea edi, [ebp - 0x30e]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + eax - 0x30e]
lea eax, [ebp - 0x31c]
push eax
push 0x100c478
lea ecx, [ebp - 0x33c]
call fcn.0106429d
cmp dword [ebp - 0x338], 0
jne 0x106de65
cmp dword [ebp - 0x31c], 0
je 0x106de65
push 0x100
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x31c]
call fcn.010645e2
test eax, eax
jl 0x106de65
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [edi], al
inc edi
mov ecx, 0xff
cmp eax, ecx
mov dword [ebp - 0x314], edi
ja 0x106de27
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea esi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x314]
lea edx, [ebp - 0x310]
sub ecx, edx
add eax, ecx
push 0
push eax
mov dword [ebp - 0x318], eax
mov eax, edx
push eax
push dword [ebx + 0x2c]
call sub.WSOCK32.dll_send
mov dword [ebp - 0x314], eax
lea ecx, [ebp - 0x33c]
call fcn.0106413d
mov esi, dword [ebp - 0x320]
jmp 0x106df06
mov eax, dword [ebx]
push 0x8100031c
mov ecx, ebx
call dword [eax + 0x14]
mov eax, dword [ebx]
push 0x8100031a
mov ecx, ebx
call dword [eax + 0x14]
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0105eca9
leave
ret
push 4
mov ecx, ebx
call fcn.0106da65
mov eax, dword [ebx + 0x440]
cmp eax, 0xffffffff
jne 0x106decd
movzx eax, word [ebx + 0x38]
push eax
lea eax, [ebx + 0x554]
push eax
lea ecx, [ebp - 0x10c]
call fcn.0106d9b8
jmp 0x106dede
movzx ecx, word [ebx + 0x38]
push ecx
push eax
lea ecx, [ebp - 0x10c]
call fcn.0106da11
lea ecx, [ebp - 0x10c]
call fcn.0106da46
push edi
push eax
mov dword [ebp - 0x318], eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebx + 0x2c]
call sub.WSOCK32.dll_send
mov dword [ebp - 0x314], eax
mov eax, dword [ebp - 0x314]
cmp eax, 0xffffffff
je 0x106de87
cmp dword [ebp - 0x318], eax
jne 0x106de87
add dword [ebx + 0xe6c], 0xfffffffe
push dword [ebx + 0xe6c]
add ebx, 0x66e
push ebx
push esi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
jmp 0x106de93