Function at 0x106dc07
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.0106dbb7
test eax, eax
je 0x106ddf5
cmp dword [ebx + 0xe6c], 2
jb 0x106ddf5
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 0x106de00
dec eax
je 0x106dddb
dec eax
jne 0x106dde7
push 6
mov ecx, ebx
call fcn.0106d9c5
push 0x20019
push edi
push reloc.WSOCK32.dll_accept
push 0x100c320
lea ecx, [ebp - 0x33c]
mov byte [ebp - 0x310], 1
call fcn.01064063
push 0x100c448
lea ecx, [ebp - 0x348]
call fcn.01064439
mov ecx, eax
call fcn.01064509
push eax
lea ecx, [ebp - 0x33c]
call fcn.0106415b
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x31c], eax
call fcn.01064479
push dword [ebp - 0x31c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0xff
cmp eax, ecx
mov dword [ebp - 0x318], eax
jb 0x106dcf5
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 0x100c468
lea ecx, [ebp - 0x33c]
call fcn.010641fd
cmp dword [ebp - 0x338], 0
jne 0x106ddc5
cmp dword [ebp - 0x31c], 0
je 0x106ddc5
push 0x100
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x31c]
call fcn.01064542
test eax, eax
jl 0x106ddc5
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 0x106dd87
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.0106409d
mov esi, dword [ebp - 0x320]
jmp 0x106de66
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.0105ec09
leave
ret
push 4
mov ecx, ebx
call fcn.0106d9c5
mov eax, dword [ebx + 0x440]
cmp eax, 0xffffffff
jne 0x106de2d
movzx eax, word [ebx + 0x38]
push eax
lea eax, [ebx + 0x554]
push eax
lea ecx, [ebp - 0x10c]
call fcn.0106d918
jmp 0x106de3e
movzx ecx, word [ebx + 0x38]
push ecx
push eax
lea ecx, [ebp - 0x10c]
call fcn.0106d971
lea ecx, [ebp - 0x10c]
call fcn.0106d9a6
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 0x106dde7
cmp dword [ebp - 0x318], eax
jne 0x106dde7
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 0x106ddf3