Function at 0x416810
Capabilities:
Get number of processors
Get process heap flags
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfd04
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5049c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push esi
push str.__desc:
push ebx
push str.Event:
push 0x507e68
call fcn.004044e0
add esp, 8
mov ecx, eax
call fcn.00408280
push eax
call fcn.004044e0
add esp, 8
mov ecx, eax
call fcn.00408280
push eax
call fcn.00405ac0
lea eax, [ebp - 0x24]
push eax
call fcn.00416390
mov edi, dword [ebp - 0x24]
push 0x28
mov dword [ebp - 4], 0
or dword [edi + 8], 0x40
mov eax, dword [edi + 8]
mov dword [edi + 0x28], 9
or eax, 0x80
mov dword [edi + 0x2c], 0xffffffff
or eax, 0x100
mov dword [edi + 8], eax
mov dword [edi + 0x30], esi
call fcn.004ab3b0
mov esi, eax
add esp, 0xc
mov dword [ebp + 8], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x4168d9
push 0
push 0
mov ecx, esi
call fcn.00415530
mov dword [esi], vtable.Packages::PackageData.0
jmp 0x4168db
xor esi, esi
or dword [esi + 8], 7
mov eax, ebx
cdq
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov byte [esi + 0x14], 0
mov dword [esi + 0x10], 0x8d
mov ebx, dword [edi + 4]
and ebx, 0xfffffffc
mov byte [ebp - 4], 0
test byte [edi + 4], 1
je 0x416905
mov ebx, dword [ebx]
test ebx, ebx
jne 0x416927
mov eax, dword [edi + 0x10]
mov dword [ebp + 8], eax
test eax, eax
je 0x416927
mov ecx, eax
call fcn.004159a0
push 0x28
push dword [ebp + 8]
call fcn.004ab3e0
add esp, 8
mov ecx, dword [esi + 4]
mov eax, ecx
shr eax, 1
test al, 1
je 0x416936
xor eax, eax
jmp 0x416942
mov eax, ecx
and eax, 0xfffffffc
test cl, 1
je 0x416942
mov eax, dword [eax]
cmp ebx, eax
je 0x416953
push eax
push esi
push ebx
call fcn.00419870
add esp, 0xc
mov esi, eax
or dword [edi + 8], 1
mov dword [edi + 0x10], esi
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x416965
lock inc dword [esi + 4]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 2
cmp byte [eax + 0x50], 0
jne 0x4169af
test esi, esi
je 0x416ab1
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x416a8f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x416a8f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x416a8f
add eax, 0x64
push eax
call fcn.004aae8a
add esp, 4
test eax, eax
jne 0x416ac5
mov ecx, edi
call fcn.004137f0
push eax
call fcn.004ab762
add esp, 4
mov dword [ebp + 0xc], eax
mov ecx, edi
call fcn.004137f0
push eax
push dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.00420420
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_htonl]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push dword [edi + 0x18]
push 4
push eax
push dword [edi + 0x14]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 4
je 0x416a4a
lea eax, [edi + 0x64]
mov byte [edi + 0x50], 0
push eax
call fcn.004aae9b
add esp, 4
test esi, esi
je 0x416ab1
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x416a8f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x416a8f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x416a8f
push dword [edi + 0x18]
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [edi + 0x14]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, dword [ebp + 8]
je 0x416a73
lea eax, [edi + 0x64]
mov byte [edi + 0x50], 0
push eax
call fcn.004aae9b
add esp, 4
jmp 0x416a87
push dword [ebp + 0xc]
call fcn.004ab76b
lea eax, [edi + 0x64]
push eax
call fcn.004aae9b
add esp, 8
lea ecx, [ebp - 0x1c]
call fcn.00401850
test esi, esi
je 0x416ab1
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x416ab1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x416ab1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call fcn.004aa27d
int3