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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010cf65
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10163164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x40], esi
movups xmm1, xmmword [esi + 0x3c]
mov eax, dword [esi + 0x54]
movq xmm0, qword [esi + 0x4c]
mov cl, byte [esi]
mov dword [ebp - 0x48], eax
movd eax, xmm1
movups xmmword [ebp - 0x60], xmm1
mov byte [ebp - 0x29], cl
movq qword [ebp - 0x50], xmm0
cmp ax, 2
jne 0x100225c7
test cl, cl
je 0x100225c2
mov eax, dword [edi + 0x1c]
jmp 0x100225f5
mov eax, dword [edi + 0x20]
jmp 0x100225f5
cmp byte [ebp - 0x29], 0
lea edx, [edi + 0x20]
lea ecx, [edi + 0x1c]
je 0x100225d7
mov eax, dword [ecx]
jmp 0x100225d9
mov eax, dword [edx]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x100225f8
cmp byte [ebp - 0x29], 0
movups xmm0, xmmword [edi + 0x1d8]
cmove ecx, edx
mov eax, dword [ecx]
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x30], eax
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax]
cmp word [ebp - 0x60], 2
lea eax, [esi + 0x24]
push eax
movzx eax, byte [esi]
push eax
movzx eax, word [esi + 0x18]
push eax
sete al
movzx eax, al
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100236d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
inc eax
push eax
call fcn.100b88be
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov esi, eax
cmovae edx, dword [ebp - 0x28]
inc ecx
push ecx
push edx
push esi
call fcn.100c29f0
push 8
call fcn.100b88be
add esp, 0x14
mov dword [eax], edi
push 0
push eax
push 0x10023540
push 0
push 0xbb8
mov dword [eax + 4], esi
call dword [sym.imp.WINMM.dll_timeSetEvent]
lea esi, [edi + 0x164]
push esi
mov dword [ebp - 0x44], esi
call fcn.100b723b
add esp, 4
test eax, eax
jne 0x10022794
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x1002279b
lea ecx, [edi + 0x194]
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.10023a50
mov ecx, eax
call fcn.10023790
push esi
mov byte [ebp - 4], 0
call fcn.100b7260
movzx eax, byte [edi]
lea ecx, [ebp - 0x3c]
mov dx, word [edi + 0x18]
push eax
lea eax, [edi + 0x24]
push eax
call fcn.10026b10
add esp, 0xc
mov ecx, 0x10
cmp word [ebp - 0x60], 2
mov eax, 0x1c
cmove eax, ecx
mov ecx, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x38]
push 0
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x30]
call dword [sym.imp.WS2_32.dll_sendto]
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x10022747
mov ecx, dword [ebp - 0x34]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10022728
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100227a6
push ecx
push edx
call fcn.100b88b0
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x10022777
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002276d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100227a6
push ecx
push edx
call fcn.100b88b0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b8868
mov esp, ebp
pop ebp
ret 4
push 5
call fcn.100b6fbf
dec eax
push 6
mov dword [esi + 0x2c], eax
call fcn.100b6fbf
call fcn.100c9aa4
int3