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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x8c]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
test edi, edi
jne 0x10003288
mov edi, dword [esi + 0x14]
test edi, edi
je 0x10003257
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10003164
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003150
sub eax, edx
sar eax, 1
lea ebx, [eax + 1]
jmp 0x10003166
xor ebx, ebx
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x10003175
mov eax, 0x10
jmp 0x10003183
cmp eax, 0x17
jne 0x10003242
mov eax, 0x1c
cmp dword [edi + 0x18], 0
mov dword [ebp - 8], eax
je 0x10003242
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x10003242
cmp ecx, eax
jb 0x10003242
add eax, 0x20
add eax, ebx
push eax
call dword [0x1006c318]
mov esi, eax
add esp, 4
test esi, esi
je 0x10003268
mov eax, dword [edi]
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x20]
push ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], eax
push dword [edi + 0x18]
push eax
call fcn.10053530
add esp, 0xc
test ebx, ebx
je 0x10003228
mov eax, dword [esi + 0x18]
xor edx, edx
add eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
test ebx, ebx
je 0x10003221
lea esp, [esp]
mov eax, dword [edi + 0x14]
mov ecx, dword [esi + 0x14]
mov al, byte [eax + edx*2]
mov byte [edx + ecx], al
inc edx
cmp edx, ebx
jb 0x10003210
mov eax, dword [esi + 0x14]
mov byte [ebx + eax], 0
mov ebx, dword [ebp - 4]
test ebx, ebx
mov eax, dword [ebp - 0xc]
cmove ebx, esi
mov dword [ebp - 4], ebx
test eax, eax
je 0x1000323d
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
jmp 0x10003245
mov ebx, dword [ebp - 4]
mov edi, dword [edi + 0x28]
test edi, edi
jne 0x10003143
test ebx, ebx
jne 0x1000327f
mov esi, dword [ebp + 0x10]
mov edi, 0x2af9
push edi
mov dword [ebp + 8], edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x10003285
push dword [ebp - 4]
mov edi, 8
mov dword [ebp + 8], edi
call fcn.1000d3e0
add esp, 4
xor ebx, ebx
jmp 0x10003282
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [esi + 0x68], ebx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000329d
push eax
call dword [0x1007fdc4]
mov dword [esi + 0x14], 0
test edi, edi
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
je 0x100032c1
call edi
test eax, eax
je 0x100032b1
call edi
jmp 0x100032b4
mov eax, dword [ebp + 8]
test eax, eax
mov ecx, 8
cmove eax, ecx
mov dword [esi + 0x64], eax
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x4c], 0
je 0x10003341
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x48]
test eax, eax
je 0x100032f3
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [esi + 0x48]
call dword [0x1006c31c]
add esp, 4
push dword [esi + 0x54]
call dword [0x1006c31c]
mov eax, dword [esi + 0x68]
add esp, 4
test eax, eax
je 0x1000330f
push eax
call fcn.1000d3e0
add esp, 4
mov eax, dword [esi + 0x60]
cmp eax, 0xffffffff
je 0x1000331e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x90
push 0
push esi
call fcn.10053b80
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x1006c31c]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x60]
cmp eax, 0xffffffff
je 0x10003365
push 0
push 1
lea ecx, [ebp + 0xb]
mov byte [ebp + 0xb], 1
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10003365
call edi
mov dword [esi + 0x64], eax
push dword [esi + 0x48]
mov dword [esi + 0x4c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
test eax, eax
je 0x10003385
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc