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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x1005b1e8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
call fcn.10003003
pop ecx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp esi, ebx
je 0x100024fc
push esi
call fcn.10001158
test eax, eax
pop ecx
je 0x10002499
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
jle 0x100024fc
mov eax, dword [esi + 0x1c]
cmp eax, ebx
jl 0x100024fc
cmp ecx, eax
jle 0x100024fc
cmp dword [esi + 0xb0], ebx
jne 0x10002347
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0x2c]
jne 0x10002347
mov ax, word [esi + 0x3a]
cmp word [esi + 0x2a], ax
je 0x10002347
push 1
mov word [esi + 0x2a], ax
pop edi
mov dword [esi + 0xb0], edi
jmp 0x1000234a
push 1
pop edi
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0x2c]
jne 0x10002432
mov ax, word [esi + 0x3a]
cmp ax, word [esi + 0x2a]
jne 0x10002432
cmp dword [esi + 0xb0], ebx
jne 0x10002372
mov dword [esi + 0xb0], edi
mov eax, dword [esi + 0x10]
add eax, 0xa
push eax
call fcn.100033b9
mov edi, eax
pop ecx
cmp edi, ebx
jl 0x10002499
lea eax, [edi + 0xa]
cmp eax, dword [esi + 0x14]
jg 0x10002499
mov eax, dword [esi + 0x18]
cmp edi, eax
jg 0x10002499
cmp eax, ebx
jle 0x10002499
mov ecx, dword [esi + 0x10]
sub eax, edi
mov dword [esi + 0x78], eax
push ebx
lea ecx, [edi + ecx + 0xa]
push ebx
mov dword [esi + 0x7c], ecx
lea ecx, [esi + 0x78]
lea eax, [esi + 0x38]
push 0x10
push eax
lea eax, [ebp + 8]
push ebx
push eax
push 1
push ecx
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
je 0x1000248c
mov eax, dword [ebp + 8]
cmp eax, ebx
jbe 0x100023e6
add dword [esi + 0x1c], eax
mov eax, dword [esi + 0x18]
sub eax, edi
cmp dword [esi + 0x1c], eax
jne 0x100024fc
push dword [esi + 0x14]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
push ebx
push dword [esi + 0x10]
call fcn.10017bc0
mov ecx, dword [esi + 0x8c]
lea eax, [esi + 0x8c]
add esp, 0xc
cmp ecx, ebx
je 0x100024fc
test cl, 0x20
je 0x100024fc
add ecx, 0xffffffe0
push 1
mov dword [eax], ecx
jmp 0x100024e8
mov eax, dword [esi + 0x10]
push ebx
push ebx
push 0x10
mov byte [eax + 2], bl
mov eax, dword [esi + 0x10]
mov byte [eax + 1], bl
mov eax, dword [esi + 0x10]
mov byte [eax], bl
mov eax, dword [esi + 0x10]
mov byte [eax + 3], 1
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x3c]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x10]
mov cx, word [esi + 0x3a]
mov word [eax + 8], cx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x7c], eax
lea eax, [esi + 0x78]
add ecx, 0xa
mov dword [eax], ecx
lea ecx, [esi + 0x28]
push ecx
lea ecx, [ebp + 8]
push ebx
push ecx
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x100024a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x100024fc
push dword [esi]
call fcn.10003950
pop ecx
jmp 0x100024fc
mov eax, dword [ebp + 8]
cmp eax, ebx
jbe 0x100024ad
add dword [esi + 0x1c], eax
mov eax, dword [esi + 0x18]
add eax, 0xa
cmp dword [esi + 0x1c], eax
jne 0x100024fc
push dword [esi + 0x14]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
push ebx
push dword [esi + 0x10]
call fcn.10017bc0
mov ecx, dword [esi + 0x8c]
lea eax, [esi + 0x8c]
add esp, 0xc
cmp ecx, ebx
je 0x100024fc
test cl, 0x20
je 0x100024fc
add ecx, 0xffffffe0
push edi
mov dword [eax], ecx
push dword [esi + 4]
push 0x403
push dword [0x1005b218]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebx
pop ebp
ret