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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10006818
mov eax, dword fs:[0]
push eax
mov eax, 0x3104
call fcn.100065e0
mov eax, dword [0x10009034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov ebx, dword [edx - 0xc]
test ebx, ebx
je 0x10002a22
lea eax, [esi + 0x828]
mov dword [ebp - 0x3108], eax
mov ecx, dword [ebp - 0x3108]
mov eax, dword [ecx]
sub eax, 0x10
lea edi, [edx - 0x10]
mov dword [ebp - 0x3100], eax
cmp edi, eax
je 0x10002832
cmp dword [eax + 0xc], 0
jl 0x10002824
mov ecx, dword [edi]
cmp ecx, dword [eax]
jne 0x10002824
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x100027b6
cmp eax, dword [edi]
jne 0x100027b6
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x100027f2
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x10002a3e
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.MSVCR100.dll_memcpy_s]
add esp, 0x10
mov eax, dword [ebp - 0x3100]
add eax, 0xc
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10002817
mov eax, dword [ebp - 0x3100]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x3108]
add ebx, 0x10
mov dword [ecx], ebx
jmp 0x10002832
mov edi, ebx
mov ebx, dword [ebp - 0x3108]
push edx
call fcn.10001750
push 0x7f
lea edx, [ebp - 0x8f]
push 0
push edx
mov dword [esi + 0x820], 0
mov byte [ebp - 0x90], 0
call sub.MSVCR100.dll_memset
push 0x7ff
lea eax, [ebp - 0x18d7]
push 0
push eax
mov byte [ebp - 0x18d8], 0
call sub.MSVCR100.dll_memset
push 0x823
lea ecx, [ebp - 0x20fb]
push 0
push ecx
mov byte [ebp - 0x20fc], 0
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x3108]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
add esp, 0x24
push 0
push 0
push 0x824
lea edx, [ebp - 0x20fc]
push edx
push ecx
push eax
push 0
push 0
mov dword [ebp - 0x3100], 0x50
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x3100]
push eax
lea ecx, [ebp - 0x18d8]
push ecx
lea edx, [ebp - 0x90]
push edx
lea ebx, [ebp - 0x20fc]
call fcn.10002c80
test al, al
je 0x10002aac
mov eax, dword [ebp - 0x3100]
push eax
lea ecx, [ebp - 0x90]
call fcn.100025f0
xor ebx, ebx
cmp eax, ebx
je 0x10002aac
lea ecx, [ebp - 0x18d8]
push ecx
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0x3110]
mov edx, esi
call fcn.10002d80
cmp dword [esi + 0x808], ebx
je 0x10002962
lea ecx, [esi + 4]
mov eax, ecx
lea edi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10002930
push ebx
sub eax, edi
push eax
mov eax, dword [esi + 0x80c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10002962
lea ecx, [ebp - 0x310c]
push ecx
mov edi, esi
mov dword [esi + 0x818], ebx
call fcn.100030a0
cmp dword [esi + 0x818], ebx
je 0x10002a4a
mov dl, byte [esi + 0x40d]
mov al, byte [esi + 0x40e]
mov cl, byte [esi + 0x40f]
mov byte [ebp - 0x3104], dl
lea edx, [ebp - 0x3104]
push edx
mov byte [ebp - 0x3103], al
mov byte [ebp - 0x3102], cl
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
cmp eax, 0x12e
jl 0x10002a43
cmp eax, 0x194
jge 0x10002aac
push 0x1046
lea ecx, [ebp - 0x10d6]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x10d8], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [esi + 0x818], ebx
je 0x100029eb
lea edx, [ebp - 0x10d8]
push edx
push esi
call fcn.10003140
lea eax, [ebp - 0x10d8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100029f4
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x10d8]
push ecx
mov edi, eax
lea ebx, [ebp + 8]
call fcn.10001750
mov edx, dword [ebp + 8]
mov ebx, dword [edx - 0xc]
test ebx, ebx
jne 0x10002765
lea eax, [edx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x10002ac6
call fcn.10001740
cmp eax, 0x194
jge 0x10002aac
push 0xfff
lea ecx, [ebp - 0x30fb]
push ebx
push ecx
mov byte [ebp - 0x30fc], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x30fc]
push edx
call fcn.10003030
cmp eax, ebx
je 0x10002aac
lea ecx, [ebp - 0x30fc]
call fcn.10002b00
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10002aa8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x10002ad7
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10002ad2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10005c32
mov esp, ebp
pop ebp
ret 4