Function at 0x50ef90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659ac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa70
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x298]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x29c]
or edi, 0xffffffff
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x29c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
lea eax, [esi + 0xb64]
push eax
lea ecx, [esi + 0xb54]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x66eba8
call fcn.0040bea0
mov dword [ebp - 4], 0
mov dword [ebp - 4], edi
mov ecx, esi
call fcn.0050d0e0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x27a]
push eax
mov word [ebp - 0x27c], dx
call fcn.006100a0
lea ecx, [ebp - 0x27c]
push 0x104
push ecx
call fcn.005bd730
add esp, 0x14
test eax, eax
je 0x50f114
lea edx, [ebp - 0x27c]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040bea0
mov dword [ebp - 4], 1
push 0x66f168
lea ecx, [ebp - 0x18]
call fcn.0040b4e0
push str.SCFNT.TTF
lea ecx, [ebp - 0x10]
call fcn.0040aab0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00428b00
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50f0b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x50f0c8
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401370
mov eax, dword [ebp - 0x14]
push 0
push 0x10
push eax
call dword [sym.imp.GDI32.dll_RemoveFontResourceExW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50f0f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x50f114
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x1fb0], 0
push 0
jle 0x50f158
push 0
push 0
push 0x5000b0
push 0
push 0
call fcn.00615455
add esp, 0x18
push eax
call ebx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 1
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [esi + 0x2c]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xeb01
push 0x410
push ebx
call edi
push 0x4c
lea edx, [ebp - 0x70]
push 0
push edx
mov dword [ebp - 0x10], eax
call fcn.006100a0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push ecx
push 0x41c
push ebx
mov dword [ebp - 0x74], 0x50
mov dword [ebp - 0x70], 0x10
call edi
push 0x67758c
lea edx, [ebp - 0xa7c]
push str.SOFTWARE_sToolbar
push edx
call fcn.004035d0
mov edx, dword [ebp - 0x54]
add esp, 0xc
lea ecx, [ebp - 0x24]
push ecx
xor eax, eax
push 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push 0x44c
lea eax, [ebp - 0xa7c]
push edx
mov dword [ebp - 0x24], connect
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], str.Toolbar
call edi
mov ecx, esi
call fcn.005003b0
mov ecx, esi
call fcn.00500450
push 0
lea ecx, [esi + 0x2a4]
call fcn.00500aa0
push 0
lea ecx, [esi + 0x2a4]
mov byte [esi + 0x3d8], 0
call fcn.00449650
lea ecx, [esi + 0x600]
call fcn.00509fa0
mov eax, dword [esi + 0x624]
push 0
push 0
push 0x10
push eax
call edi
mov ecx, dword [esi + 0xa88]
push 0
push 0
push 0x10
push ecx
call edi
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
push str.StaffCop_Help
push 0
call esi
test eax, eax
je 0x50f269
push 0
push 0
push 0x10
push eax
call edi
push str.StaffCop_Help
push 0
call esi
test eax, eax
jne 0x50f253
push str.StaffCop__
push 0
call esi
test eax, eax
je 0x50f28c
push 0
push 0
push 0x10
push eax
call edi
push str.StaffCop__
push 0
call esi
test eax, eax
jne 0x50f276
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword [edx], 0
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10