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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d914e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x51093c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push dword [ebp + 8]
push str.__desc:
push dword [ebp + 0xc]
push str.Event:
push 0x5150c8
call fcn.004020e0
add esp, 8
mov ecx, eax
call fcn.00403c00
push eax
call fcn.004020e0
add esp, 8
mov ecx, eax
call fcn.00403c00
push eax
call fcn.004026f0
push 0x4c
call fcn.004a20f7
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x412258
push 0
push 0
lea ecx, [edi + 0xc]
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj_class_Packages::PackageHeader_.0
call fcn.0040d760
mov dword [edi + 0xc], vtable.Packages::PackageHeader.0
jmp 0x41225a
xor edi, edi
lea ebx, [edi + 0xc]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
or dword [edi + 0x14], 0x40
mov eax, dword [ebp + 8]
mov dword [edi + 0x34], 9
or dword [edi + 0x14], 0x80
mov dword [edi + 0x38], 0xffffffff
or dword [edi + 0x14], 0x100
push 0x28
mov dword [ebp - 4], 1
mov dword [edi + 0x3c], eax
call fcn.004a20f7
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x4122ba
push 0
push 0
mov ecx, esi
call fcn.0040d700
mov dword [esi], vtable.Packages::PackageData.0
jmp 0x4122bc
xor esi, esi
or dword [esi + 8], 4
mov eax, dword [ebp + 0xc]
cdq
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
or dword [esi + 8], 2
mov byte [esi + 0x14], 0
or dword [esi + 8], 1
mov dword [esi + 0x10], 0x8d
test byte [ebx + 4], 1
mov byte [ebp - 4], 1
je 0x4122f1
mov eax, dword [ebx + 4]
and eax, 0xfffffffc
mov edx, dword [eax]
jmp 0x4122f7
mov edx, dword [ebx + 4]
and edx, 0xfffffffc
mov dword [ebp + 8], edx
test edx, edx
jne 0x41231f
mov eax, dword [ebx + 0x10]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x41231f
mov ecx, eax
call fcn.0040da90
push 0x28
push dword [ebp + 0xc]
call fcn.004a2127
mov edx, dword [ebp + 8]
add esp, 8
mov ecx, dword [esi + 4]
mov eax, ecx
shr eax, 1
test al, 1
je 0x41232e
xor ecx, ecx
jmp 0x41233d
test cl, 1
je 0x41233a
and ecx, 0xfffffffc
mov ecx, dword [ecx]
jmp 0x41233d
and ecx, 0xfffffffc
cmp edx, ecx
je 0x41234e
push ecx
push esi
push edx
call fcn.004163a0
add esp, 0xc
mov esi, eax
or dword [ebx + 8], 1
lea eax, [edi + 4]
mov dword [ebx + 0x10], esi
lock inc dword [eax]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 3
cmp byte [eax + 0x50], 0
jne 0x41239f
mov eax, esi
lea ebx, [edi + 4]
lock xadd dword [ebx], eax
jne 0x412481
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x412481
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x412481
add eax, 0x64
push eax
call fcn.0049ebb2
add esp, 4
test eax, eax
je 0x4123b8
push eax
call fcn.0049ecab
add esp, 4
mov ecx, ebx
call fcn.0040e470
push eax
call fcn.004a2169
add esp, 4
mov dword [ebp + 0xc], eax
mov ecx, ebx
call fcn.0040e470
push eax
push dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp + 8], eax
call fcn.0041de00
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_htonl]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push dword [ebx + 0x18]
push 4
push eax
push dword [ebx + 0x14]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 4
je 0x41242c
lea eax, [ebx + 0x64]
mov byte [ebx + 0x50], 0
push eax
call fcn.0049ebd7
add esp, 4
test eax, eax
je 0x412371
push eax
call fcn.0049ecab
add esp, 4
jmp 0x412371
push dword [ebx + 0x18]
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebx + 0x14]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, dword [ebp + 8]
je 0x412455
lea eax, [ebx + 0x64]
mov byte [ebx + 0x50], 0
push eax
call fcn.0049ebd7
add esp, 4
jmp 0x412469
push dword [ebp + 0xc]
call fcn.004a2172
lea eax, [ebx + 0x64]
push eax
call fcn.0049ebd7
add esp, 8
test eax, eax
je 0x412476
push eax
call fcn.0049ecab
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.00401720
lea ebx, [edi + 4]
mov eax, esi
lock xadd dword [ebx], eax
jne 0x41249e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x41249e
mov eax, dword [edi]
mov ecx, edi
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