Function at 0x4221f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a383
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x570be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
push dword [esi]
lea eax, [ebp - 0x14]
push dword [edi]
push 0x54a5e8
push eax
call fcn.00421320
add esp, 0x10
lea ecx, [ebp - 0x18]
push str.SendToPixelServer
call fcn.004204a0
mov byte [ebp - 4], 1
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004215a0
add esp, 4
mov esi, eax
push 0x54a680
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004204a0
push 0
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call fcn.004216b0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4222cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4222ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42230c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42232c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
call fcn.004e7273
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x422355
lea ecx, [esi - 0x10]
call fcn.00420750
add eax, 0x10
mov dword [edi], eax
jmp 0x422357
xor edi, edi
lea eax, [ebp - 0x28]
push eax
push 0
push edi
push 0x422140
push 0
mov byte [ebp - 4], 0
push 0
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4224d6
mov edx, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, str.Failed_to_create_thread
mov byte [ebp - 4], 6
test eax, 0xffff0000
jne 0x4223c1
movzx edi, ax
mov ecx, edi
call fcn.0041fcd0
test eax, eax
je 0x4223ce
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.00420bb0
jmp 0x4223ce
push str.Failed_to_create_thread
lea ecx, [ebp - 0x10]
call fcn.00420650
push str.SendToPixelServer
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.004204a0
mov byte [ebp - 4], 8
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.004215a0
add esp, 4
mov edi, eax
push 0x54a680
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.004204a0
push 2
push edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xb
call fcn.004216b0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x422453
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x422473
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x422493
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4224b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4224d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4224fb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
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